Hi there,
We are currently developing the controller using F28335.
And I'm implementing the Watchdog ISR code.
In my WDT ISR code, I'd like to capture the address where the watchdog was occurred.
I'll show the example code for your better understanding.
Here is the test code that will trigger the watchdog timeout.
Now, program flow will jump to the WDT ISR from the address 0x33AAB4
And, here is my WDT ISR code.
Now, I'd like to store the address "0x33AAB4"
I found the fact that return address should be saved into XAR7 during interrupt handling process.
(Table 3-3(p.3-15) & Example3-1(p.3-16) from SPRU430E "TMS320C28x CPU and Instruction Set Reference Guide")
Is that always true? If yes, how can I copy the contents of XAR7 into my global variable?
Unfortunately, I don't know the first thing about the C28x asm code.
So, could you tell me the exact code?
Thanks.