Content originally posted in LPCWare by ArneB on Fri May 18 04:38:57 MST 2012
How can I modify the return address of a Cortex M0 Interrupt Service Routine ?
I know, it's a very ugly and not recommended programming style (shame on me... ;)), nevertheless due to very tight timing and other special requirements in my application I would like to jump to a different program location and not to the originating program counter.
As far as I understand the ISR push its program counter (PC) onto the stack. After the ISR finishes, it pops it back to the PC. Does anybody know, how i can modify this sequence in LPCXpresso ?