I need to test how my system responds to various interrupt nesting scenarios. Usually, I test this by triggering a specifically designed test interrupt at will from the debugger. This allows me to test scenarios that happen very infrequently.
My question is what is the easiest interrupt to use for such testing? How would you set it up and how would I trigger it from the debugger?
I've been experimenting with TC0, which was set up to compare after one tick. I tried writing 5 to TC0.CCR (at address 0xFFFF3800) to start the timer, but this does not trigger the interrupt and is also quite involved to set up.
I'd greatly appreciate any better recommendations. The exact device I'm using is AT32UC3A3256 (UC2-A3-Xplained board).