2015-06-18 12:36 PM
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 #stm32 #fatfs #sdio #sd2015-06-19 02:02 AM
2015-06-20 05:08 AM
Dobrý den pánové,
i had different problem with SD but if i change GPIO settings for SDIO to GPIO_InitStruct.Pull = GPIO_PULLUP than all problem solved2015-06-22 12:35 AM
Zdrav�ko, ve spolek. ;)
Hi, i have set SDIO outputs as PullUp & lines are short: GPIO_Init_Structure.Mode = GPIO_MODE_AF_PP; GPIO_Init_Structure.Pull = GPIO_PULLUP; GPIO_Init_Structure.Speed = GPIO_SPEED_HIGH; GPIO_Init_Structure.Alternate = GPIO_AF12_SDIO;...and what problem you had with SD? JS2015-06-22 05:53 AM
...and what problem you had with SD?