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.

F28335 Manual context save/restore question: how to access DBGSTAT

Hi there,

I am using F28335.

Upon an interrupt, whether it be from a peripheral or a software trap, the processor automatically pushes the following information onto the stack in the following order (32-bit words)(automatic context save):

1) T: ST0 – Temporary register and Status Register 0

2) ACC – Accumulator

3) P – Product Register

4) AR1:AR0 – Auxilary registers

5) DP:ST1 – Data point and Status Register 1

6) DBGSTAT:IER – Debug status register and interrupt enable register

7) Return Address

Regarding the last 2 items I would like to know what shall the code be like.

I am having problem of accessing DBGSTAT and I am not sure how to push the return address here either.

It would be great if there is a code example.

 

Regards,

Leon