Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4834

SDK • Re: DMA not fireing IRQ

$
0
0
Your problem is here:

Code:

dma_irqn_set_channel_enabled(LCD_DMA_IRQ, lcd_dma_chan_rx, true);  // PIO
the first parameter should be 0 or 1 for DMA_IRQ0 vs DMA_IRQ1, but the symbol DMA_IRQ_0 has the value 11 (and the function doesn't do any range checking, so you will end up poking some random register!).

You could use (LCD_DMA_IRQ - DMA_IRQ_0) to avoid hard-wiring the IRQ.

Statistics: Posted by arg001 — Fri Dec 06, 2024 12:33 pm



Viewing all articles
Browse latest Browse all 4834

Trending Articles