Any suggestions for troubleshooting missed interrupts?
Hey guys, a friend of mine is currently working on AT91SAM9M10-EKES. The Code registers IRQ for 2 GPIO pins (PA20 & PA21) but only receives 22/26 expected interrupts (random). Could there be an issue in this IRQ handling code?
Any suggestions for troubleshooting missed interrupts? @Middleware & OS
Solution:Jump to solution
Yup, I had to define separate interrupt handler functions for each IRQ line. I also found this stuff helpful too
https://linux-kernel-labs.github.io/refs/heads/master/labs/interrupts.html...
4 Replies
@Sterling From what I see so far 🫠.. I don't think you should be requesting the same interrupt handler
wiegand_interrupt
for both IRQ lines PA20 and PA21. Interrupt handlers are to be unique for each IRQ lineSo could this be the reason for the missing interrupts ? 🤔 @Dtynin
Yh , @Sterling , where you able to fix it?
Solution
Yup, I had to define separate interrupt handler functions for each IRQ line. I also found this stuff helpful too
https://linux-kernel-labs.github.io/refs/heads/master/labs/interrupts.html