2019-08-07 06:05 AM
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
2019-08-07 06:12 AM
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.
2019-08-11 11:40 PM
Hi Clive,
Thank you for your response. I will try it.
Regards
Jakob