This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I see the system mode stack pointer in CCS?

Hi,

In my IRQ interrupt routine I use the "SRSFD  SP!,#31" instruction to store SPSR_irq and LR_irq to the system mode stack. (actually I use the "SRSFD  #31!" because of a compiler problem, but it should do the same). The problem is that I can not see the system mode stack. The SP (R13) register in the Core Registers list does not change its value when this instruction is execued. I think this is because SP reflects the irq stack pointer because the mode register indicates IRQ mode. Right? But when I change the mode temporary to system-mode in an attempt to see the system mode stack, the SP value also does seem to change.

When I use "SRSFD  SP!,#18" to store the SPSR_irq and LR_irq to the IRQ mode stack I see the IRQ mode stack pointer (R13_IRQ) change and also I see the SP in the Core Registers list change. This is way I assume thet the SP register shows the value of the stack pointer of the current mode.

So how can I see this system mode stack when I am in IRQ mode? And is it correct that the "SRSFD  SP!,#31" instruction should change the system mode stack?