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

General • Getting an interrupt storm on my PICO

$
0
0
Hi all

I have implemented a ring queue buffer for my irq handler but am unexpectly hitting an interrupt storm, and don't know why

Code:

 PRIVATE void irq_handler(void) {        uint16_t word = *spi_data_reg & 0xFFFF;        enqueue(word);   // simple, always add        spi_interrupt = true;         *spi_interrupt_clear |= 0b11<<0;}
I have tried to set the bit to clear the interrupt but its not working. This register is the one attached but for some reason the CPU is stuck over here and keeps on looping forever around her, how do I break out of this?
pio_interupt.png

Statistics: Posted by Maaz1 — Wed Feb 04, 2026 1:57 pm — Replies 1 — Views 56



Viewing all articles
Browse latest Browse all 7503

Trending Articles