DMA interrupts, WFI and the debugger

Showing results for 
Search instead for 
Did you mean: 

DMA interrupts, WFI and the debugger

NXP Employee
NXP Employee
Content originally posted in LPCWare by skysat on Sun Jan 17 02:38:11 MST 2016
When I run my program on my LPC1769 with the debugger attached, all is well.  When I merely power the 1769 on, it doesn't.  The DMA interrupt is not called (it lights an LED) unless the debugger is running.

while (!dma_finished || Chip_GPDMA_IntGetStatus(LPC_GPDMA, GPDMA_STAT_INTTC, dma_channel) != 0)

OK, I get it.  It's the WFI (if I remove it, it works) - but why?  Apparently, the debugger can (and does) wake up a WFI but the DMA controller can't.  What am I missing?


p.s.  The DMA operation is from GPIO to ram (__DATA(RAM2)).

I've tried this:
NVIC_SetPriority(DMA_IRQn, 2);

And this:
NVIC_SetPriority(DMA_IRQn, 1);
Labels (1)
0 Kudos
0 Replies