Skip to main content
V.Vuong
Associate
June 24, 2019
Question

Issues with ST-micromicro SD/uSD driver? causing card failure/corruption?

  • June 24, 2019
  • 4 replies
  • 1105 views

Reaching out to see if anyone have experienced microSD card failure/corruption from using the provided ST-micro driver with ST32 MCUs?

1) Erratas available?

2) Solutions?

Thanks in advance!

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
June 24, 2019

Definitely issues and expectations with the provided code, and CubeMX output.

Needs a more considered approach, and perhaps, retry/error recovery at all levels for a robust system.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
V.Vuong
V.VuongAuthor
Associate
June 24, 2019

Clive,

In your opinion, if the microSD card think's it full and no longer can be written to, what do you think? can the ST Micro SDIO drive confuse the card...in some way...???

Thanks

V.Vuong
V.VuongAuthor
Associate
June 24, 2019

...to clarify, the card is NOT full, I've gone through and looked at all the contents on the card.

Tesla DeLorean
Guru
June 24, 2019

The file system on the cards is not difficult to corrupt. The version of FATFS shipped by ST is known to have issues with larger MicroSD cards. I've filled 200 and 400GB cards with FatFS R13.

You might want to run CHKDSK (or equivalent) on a PC to see if any of the internal structures are broken/recoverable.

I would tend to instrument the read/write routines in DISKIO, and see if they flag any kind of failure.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..