Associate
Mar 23, 2023 3:59 PM UTC
Question
STM32L476JEY generates RX overrun error when using DMA to read from SD card
- 2 replies
- 1113 views
I am using STM32L476JEY MCU. SDMMC works fine at 4 MHz clock speed with interrupt enabled and DMA disabled. However when I use DMA to read a block it generates Rx overrun error. When I checked the output buffer it read 4 bytes instead of 512 bytes.
I turned on DMA on SDMMC_Tx and SDMMC_Rx. I also turned on NVIC interrupt for SDMMC1. DMA runs from AHB bus whose speed is 80 MHz.
I wanted to use DMA as 4 MHz is not enough clock speed.
I have used STM32L4+ mcu which has internal DMA for SDMMC and it works fine.
Thank you in advance.
