AnsweredAssumed Answered

SDIO FatFs sometimes returns FR_DISK_ERR

Question asked by svabik.jiri.003 on Jun 18, 2015
Latest reply on Jun 22, 2015 by Clive One
Hi. I used HAL drive and example from STM32Cube_FW_F4_V1.6.0 on Open429I HW. 
FatFs reading file from SD card via SDIO sometimes returns FR_DISK_ERR. After the reset program reads four files. Usually it finish OK. Sometimes first or second or third ... returns error. The MCU is to 168MHz clocked. PullUp rezistor 10k are connect on all lines. I tried SDIO_TRANSFER_CLK_DIV set from 0x00 to 0x01 or 0x02. Without result. I use 4GB or 16GB microSD card. When I set 1 bit transfer, program works 100% correctly. Thank you for all stimulating ideas.
(For interest reading 4 files from SD card to SDRAM with the total size 1 105 kB persist 0.451s (1 wire) or 0.162s (4 wire).) JS

Outcomes