STMicroelectronics / stm32l4xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32L4 series.
BSD 3-Clause "New" or "Revised" License
35 stars 15 forks source link

STM32L476RCT6 use freertos and sdio 4bits and dma,can not receive queue #10

Closed Barfell closed 8 months ago

Barfell commented 11 months ago

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 11 months ago

set a break in the function void SDMMC1_IRQHandler(void),then full running,the sd init success.why?

Barfell commented 11 months ago

I fixed it, must enable SD dma irq in main function, then init the SD IRQ in HAL_SD_MspInit function.

TOUNSTM commented 8 months ago

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,