Skip to main content
TDK
Jan 16, 2020 4:39 PM UTC
Solved

DMA transfer complete but interrupt never fires

STM32H745

I'm performing a DMA transfer, the TCIF gets correctly set, but the interrupt never fires. I've ensured the TCIE flag is enabled and interrupts are enabled. What am I missing? What else should I be checking?

Attached is a picture from debugging showing TCIE=1, TCIF=1, interrupts enabled, and yet the cpu is sitting in the main thread.

0690X00000Bw6cBQAR.png

This topic has been closed for replies.
David SIORPAES
David SIORPAESBest answer
ST Employee
Jan 16, 2020 4:51 PM UTC

Is the actual DMA interrupt enabled with NVIC_EnableIRQ() ?

2 replies

David SIORPAES
David SIORPAESBest answer
ST Employee
Jan 16, 2020 4:51 PM UTC

Is the actual DMA interrupt enabled with NVIC_EnableIRQ() ?

TDK
TDKAuthor
Jan 16, 2020 5:00 PM UTC

That's was the problem. I hadn't enabled the interrupt in NVIC. In my haste moving to the STM32H7 and LL, I missed that part of the initialization. Thanks.

"If you feel a post has answered your question, please click ""Accept as Solution""."