cancel
Showing results for 
Search instead for 
Did you mean: 

The controller jumps into ISR only one time and comes out immediately and executes other functionali

deeyes73
Associate

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?

  

1 REPLY 1
AA1
Senior III

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.