Skip to main content
Echel.1
Associate II
June 30, 2022
Question

Hi there, I would like to know how to read the physical characteristics of an SDCard to format it automatically. I work on STM32U575 with STM32CubeIDE and FILEX Thanks

  • June 30, 2022
  • 5 replies
  • 1811 views

..

This topic has been closed for replies.

5 replies

ST Technical Moderator
August 11, 2022

Hi Echel,

can you please refer to the following projects: \Projects\STM32U575I-EV\Examples\SD and ~\Projects\STM32U575I-EV\Examples\SMARTCARD\SMARTCARD_ComDMA provided by STM32CubeU5-FW. It may help.

Best regards,

Younes

Echel.1
Echel.1Author
Associate II
August 12, 2022

Hi Younes,

Many thanks for your message, i will see those projects.

Thank you, bye

Tesla DeLorean
Guru
August 12, 2022

Cards report via CSD structure, or EXTCSD for eMMC

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Echel.1
Echel.1Author
Associate II
August 14, 2022

Hi Tesla Delorean,

Thank you very much, i see i can use the HAL_SD_GetCardCID and HAL_SD_GetCardCSD to get all the information i need.

Bye

ST Technical Moderator
August 14, 2022

Great Echel :)