return address of isr
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-08-31 11:31 AM
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
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-08-31 4:40 PM
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
