2023-07-04 05:56 AM
I am using STM8AF62A9.
I reconfigured the interrupt vector table, unused interrupts and tests it with TRAP SW with function __trap();
Controller jumps into the unhandled interrupt ISR routine, as expected, but in there i doesn't clear the interrupt flag.
Expectation was that controller would remain stuck in ISR loop or continuously jump into the ISR routine and will not execute other part of code, but actually the controller jumps into ISR only one time and comes out immediately and executes other functionality.
Is flag should be reset? Can you please share the full datasheet pointing interrupt vector table?
Or did i missed something?
2023-07-05 07:06 AM
TRAP doesn't have interrupt clear flag.TRAP ISR is executed once for each TRAP instruction. After return from ISR program continues after the TRAP instruction.