Skip to main content
Niyathi Shenoy
Associate III
June 6, 2018
Question

HAL API to format the contents of a SD card

  • June 6, 2018
  • 0 replies
  • 507 views
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?  

    This topic has been closed for replies.