cancel
Showing results for 
Search instead for 
Did you mean: 

HAL API to format the contents of a SD card

Niyathi Shenoy
Associate II
Posted on June 06, 2018 at 07:41

I have a 32 gb sd card. I have interfaced it with STM32F407 Discovery board with 1 bit SDIO through Cubemx. When i use a formatted SD card i am able to write files into the card. Now, i want to format the card using some API and then write files into he card. I dont want to do the formatting manually. I have come across an API (HAL_SD_ERASE). However, I would like to know what should be the start address and end address of sd card to be used in this API.Are there any examples to use this API?  

0 REPLIES 0