Home arrow Support arrow Forums

Luminary Micro Forums

blechman

Senior Boarder

2008/08/12 13:46

stack pointer access?

I am have a bug that I'm trying to track down. I need to know the PC value at the point when an interrupt occurs. In the interrupt routine I need to get the return PC from the stack correct? I'm looking through the documentation and having trouble figuring out how to access the stack pointer to retrieve and send the interrupted PC value. I am using the IAR ARM C compiler, and the LM3s618. How do I get access to the stack pointer? Which offset from the SP will the PC address be?

thanks,

Brian

login or register to reply

      Topics Author Date
    thread link
stack pointer access?
blechman 2008/08/12 13:46
    thread link
thread linkthread link Re:stack pointer access?
ravaz 2008/08/13 11:27
    thread link
thread linkthread linkthread link Re:stack pointer access?
blechman 2008/08/13 12:54
    thread link
thread linkthread linkthread linkthread link Re:stack pointer access?
blechman 2008/08/13 16:53
    thread link
thread linkthread linkthread linkthread linkthread link Re:stack pointer access?
ravaz 2008/08/13 19:49
    thread link
thread linkthread linkthread linkthread linkthread link Re:stack pointer access?
joseph_yiu 2008/08/14 04:41
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:stack pointer access?
blechman 2008/08/14 12:00