how 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 pinHAL_SPI_Transmit(&hspi1, erase_cmd, sizeof(erase_cmd), HAL_MAX_DE...