I am using STM32F407 discovery board. I am using SD IO card with this board.
I tried configuring DMA for data transfer.
I observed that the interrupt (DMA interrupts) are not generated after Transfer complete evertime.
After fresh compilation in IAR workbench, the interrupt are generated correctly, but subsequent runs the DMA interrupt is not generated despite data transfer done.
I have a blocking condition check that wait for the completion of SDIO data transfer.
In most of the case it is waiting endlessly here because of no Transfer complete interrupt generation by DMA.
Sometimes if halt the controller and double click of register veiw of DMA2 (DMA2_S3M0AR), the interrupt is generated correctly!!
After this there are no more DMA interrupt issues.
//configure dma for rx
//flag to check transfer complete
DMAEndOfTransfer = 0;
//enable dma streaming
//enable dma in sdio
//dma disable rx
//enable sdio interrupt
No issues are observed in Non-DMA case
I am using Std Peripharal library
Could some one help me for this strange issue??