2023-03-14 11:58 PM
2023-03-15 12:33 AM
Hello @mrsmile,
You'll probably want to review IAP examples within STM32CubeF1:
STM32Cube_FW_F1_Vx.x.x\Projects\STM3210C_EVAL\Applications\IAP
Please have a look at this AN3990 it may be helpful to what you expect to do, and it's applicable for SD card using.
Imen
2023-03-15 02:09 AM
hello mam @Imen DAHMEN ,
ok mam, i'll refer this document. thank you for your response. its may be helpfull for me. once again thank you mam.
2023-03-15 02:20 AM
hello mam,
i'm need to erase the previous data in SD card(SPI communication) by using erase command in stm32f103c8(HAL library).
in this condition using to continuously erase the data.
uint8_t erase_cmd[6]={0x20, 0x00, 0x00, 0x00, 0x00, 0x95};
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); // Chip select pin
HAL_SPI_Transmit(&hspi1, erase_cmd, sizeof(erase_cmd), HAL_MAX_DELAY);
HAL_SPI_Receive(&hspi1, &status, 1, HAL_MAX_DELAY);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);.