We are getting a PIE interrupt and I would like to be able to dump the stack from C code. This is on CPU1/CPU2.
Everything I have read says that I cannot get access to the SP register. How would I do this from C code.
We have a .stack defined at 0x400 and we have access to that memory space but I need to know where the last know position is to dump the actually stack.
According to document spru430f.pdf Table 3-5 is shows how the registers are pushed onto the stack when an ISR Exception is called, how can I pop them off the stack so that we can dump them to a console?
Specifically we want the 7th byte in the push since this is the last known PC.
Dorion