Altera_Forum
Honored Contributor
15 years agouClinux Interrupt issues
I have a custom component that I'm connecting to the nios2 with a PIO bridge. The component is essentially a selectable timer that I'm using as a trigger throughout the whole device, the same trigger is also used as the Interrupt for the cpu (to capture all the other registers I have wired up).
I register the irq fine, (it shows up in proc/interrupts), but when I unmask the interrupt by writing to the pio. The whole system hangs. Well actually, when I request the IRQ as IRQF_SHARED, the system doesnt hang, but it is interrupting about 1000 times more often than expected (i.e. if the timer is set to 100ms, you would expect ~10 interrupts a second, I'm getting thousands). If I throw in an IRQF_POSEDGE and set the timer to something long(like 5 seconds), it hangs on the first interrupt. I have commented out the entire interrupt handler, so all it does is return a IRQ_HANDLED . and it still hangs. Thanks for the help,