cancel
Showing results for 
Search instead for 
Did you mean: 

SDMMC1 and SD Card

jakob.brunhart
Associate III

Hi

We use the NUCLEO-H743ZI. In addition, we use a self-created adapter board on which the SD card is located. The SD card is connected via "SD 4 bits Wide bus". Internal pull-up is configured except for the CLK line.

The application records data and stores it on the SD card in a CSV file. The file is opened, the record is written and the file is closed again. Sometimes corrupt folders are created in addition to the file. The folder name then consists of a part of the contents of a record. The folder cannot be deleted or opened. Only formatting can affect it. Sometimes a file is also deleted.

If the application writes to a USB stick instead of an SD card, the effects described above do not occur!!!

Any idea is welcome.

STM32H7xx HAL Drivers: V1.5.0 / 05-April-2019

Regards

Jakob

2 REPLIES 2

Validate the read/write routines in DISKIO layer of FATFS.

If the read isn't recovering the correct data from the media it is apt to get trashed.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jakob.brunhart
Associate III

Hi Clive,

Thank you for your response. I will try it.

Regards

Jakob