cancel
Showing results for 
Search instead for 
Did you mean: 

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

V.Vuong
Associate II

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!

4 REPLIES 4

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
Up vote any posts that you find helpful, it shows what's working..
V.Vuong
Associate II

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
Associate II

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

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
Up vote any posts that you find helpful, it shows what's working..