Skip to main content
bilal
Associate II
August 31, 2013
Question

return address of isr

  • August 31, 2013
  • 1 reply
  • 673 views
Posted on August 31, 2013 at 20:31

hi 

i am working on stm32f4. i am having a small programming issue, while my code is executing, ISR comes, i want to change the return address of ISR, i.e it does not goes back from where the processor left the code. i searched, and found that i have to change instruction pointer, using PUSH n POP. but did not succeeded. 

hope to listen soon.

regards
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 31, 2013
    Posted on September 01, 2013 at 01:40

    I suspect you're going to want to examine LR to determine which stack it's using and then access the stack frame. Not sure I'd be using push/pop. I'd definitely recommend a review of the Cortex M3/M4 Technical Reference Manual.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..