2022-02-06 03:29 PM
I cannot get interrupts to work and I found that NonHandledInterrupt is getting called. How do I find out what IRQ triggered a debug breakpoint at NonHandledInterrupt? I've stared at my code for hours and all it does is stare back.
2022-02-06 05:06 PM
I figured out one way to do it. I made a number of routines: NonHandledInterrupt1, NonHandledInterrupt2, NonHandledInterrupt3, etc. for sections of interrupt vectors. I was able to identify the guilty interrupt. It would be nice if there was an easier way but there probably isn't.
2022-02-10 08:15 AM
NonHandledInterrupt means that you enabled some interrupt (timer, uart...) but do not have the corresponding code to handle that interrupt. Just disable one interrupt in your code at a time and you'll see when the NonHandledInterrupts disappear.