Question
STM32CubeMX SDIO F4
Posted on June 03, 2014 at 18:01
Hi, I've been trying to get SDIO working on the STM32F4 Discovery board. I've wired up the SD card and created a basic project using CubeMX.
The MX_SDIO_SD_Init() function completes successfully but I cannot get the HAL_SD_ReadBlocks function to work. I get SD_ILLEGAL_CMD when the SD_CMD_SET_BLOCKLEN command is sent. I've lowered the SDIO clock speed by setting the SDIO_TRANSFER_CLK_DIV define to 0x50 ( 0x76 is 400kHz ) but I'm still have issue. Anyone have this working?