Closed Barfell closed 8 months ago
set a break in the function void SDMMC1_IRQHandler(void),then full running,the sd init success.why?
I fixed it, must enable SD dma irq in main function, then init the SD IRQ in HAL_SD_MspInit function.
Hello @Barfell,
Thank you for your contribution. Regarding the point for which you opened the issue, as it is resolved, please allow me to close the issue.
With regards,
STM32L476RCT6, use CUBEMX generate the project, use FREERTOS ,SDIO 4bits, DMA, and Fatfs, the SD not work normally, the library is STM32Cube_FW_L4_V1.18.0, the question repetition on other library in fuction DRESULT SD_read(BYTE lun, BYTE *buff, DWORD sector, UINT count), event = osMessageGet(SDQueueID, SD_TIMEOUT);
can not receive message.
but use sdio 1bits,work normally.