Menu

ISR breakpoints

Vanyamba Software

ISR breakpoints allow to debug Arduino interrupts. Add breakISR() function call with ISR identifier into ISR handler code. For example:

ISR(TIMER2_OVF_vect)
{
    breakISR(dumpmon::timer2_ovf);
}

Open the dumpmonISR sketch from DumpMon examples. Compile and upload the sketch. Open Serial Monitor, Timer2 overflow interrupt occured with message 'TIMER2_OVF interrupt'.

Send either N or G command to restart ISR debugging. Next Timer2 overflow interrupt occured.

Use * command to switch ISR debug state on and off.


Related

Wiki: Debug session with Simple Dumping Monitor