2014-12-01 01:45 PM
STM32F4CUBEMX 4.5.0
FIRmware 1.3.0in the mode hsd.Init.BusWide = SDIO_BUS_WIDE_1B; everything works well but in mode hsd.Init.BusWide = SDIO_BUS_WIDE_4B;retSD = FATFS_LinkDriver(&SD_Driver, SD_Path); - RES_OK = 0retSD = f_mount(&diskF, (TCHAR const*)SD_Path, 0); - RES_OK = 0 retSD = f_open(&MyFile, ''STM32.TXT'', FA_CREATE_ALWAYS | FA_WRITE); - RES_NOTRDY = 3did anybody faced such problem before??Any help is greatly appreciated!2014-12-10 09:44 AM
Hi,
The 4-bit SD Data Transfer Mode is Mandatory for High-Speed Cards, Optional forLow-Speed ones, so it depends on the used uSD card type. Otherwise, it's better to configure first the 1-bit SD Data Transfer Mode:hsd.Init.BusWide = SDIO_BUS_WIDE_1B;
And then, justenable wide operation, for the4-bit SD Data Transfer Mode:
HAL_SD_WideBusOperation_Config(&hsd, SDIO_BUS_WIDE_4B);
PS: You can refer to thestm324x9i_eval_sd.c/stm324xg_eval_sd.c BSP drivers, that may help you!
Regards,
Heisenberg.
2014-12-11 06:04 AM
Here below some screen captures from the RM0090 reference manual:
Regards,Heisenberg.