cancel
Showing results for 
Search instead for 
Did you mean: 

DMA does not go to the interrupt handler

zeros_and_ones1991
Associate III
Posted on March 07, 2014 at 23:41

I got my DMA working fine , and I can perform transfers successfully , but when i enabled the DMA Transfer complete interrupt , it does not go to the handler , ....... the transfer is done successfully and i can see (from the debugging session) that the interrupt is enabled , and i can also see that the Transfer Complete flag set , ....... and the DMA interrupt is enabled in the NVIC , ............. any suggestions? ........ or working codes?

2 REPLIES 2
Posted on March 08, 2014 at 01:01

Do other interrupts work?

Do you have the correct name for your DMA IRQ Handler?

Is it associated with the correct DMA controller/channel/stream?

Is the vector table correct?

Is the SCB->VTOR pointing at the correct table?

Does the debugger end up in a hard loop some where if you stop it?

I can write correct code all day, not sure it helps you, post a complete/concise example of what you're doing, and I might be able to better suggest why it doesn't work.

Couple of examples of DMA IRQ throughout this

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DMA%20Memory%20To%20UART5&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2580

.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
zeros_and_ones1991
Associate III
Posted on March 08, 2014 at 14:40

Thx Clive for ur reply , and I solved it , u were right , i had a priority problem that prevented the DMA from going to its handler .