STM32L476RCT6 use freertos and sdio 4bits and dma,can not receive queue
Barfell opened this issue · 3 comments
Barfell commented
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.
Barfell commented
set a break in the function void SDMMC1_IRQHandler(void),then full running,the sd init success.why?
Barfell commented
I fixed it, must enable SD dma irq in main function, then init the SD IRQ in HAL_SD_MspInit function.