RE: How to obtain and save the return address inside an interrupt?
"Matthias Weingart [email protected] [msp430]" <[email protected]> Mon, 19 Jan 2015 13:06:17 +0000 (UTC)
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.discuss |
|---|---|
| Organization | private site |
| Message-ID | <[email protected]> |
"Mauro Zanin [email protected] [msp430]" <[email protected]>: > Hi > as far as I know the return address is pushed into stack. So if you pop > it and save in a register or memory you have done ! Don't forget to push > it again!!!!. Well, but it is not esy to do this in C. But it should be simple to add a small assembly routine just for the watchdog interrupt (using some examples). I do not know IAR Workbench, I am using Crossworks. In similar cases I put a breakpoint at the reset vector and then examine the "execution trace" and the "call stack" windows. Execution trace is a feature of the MSP430-EEM, maybe IAR also implemented this. M. ------------------------------------ Posted by: Matthias Weingart <[email protected]> ------------------------------------ To unsubscribe from the msp430 group, send an email to: [email protected]