Other Parts Discussed in Thread: HALCOGEN
Hi,
I am executing code to run the STC module self test based on the SafeTI library (based means technically the same here :)).
After encountering some issues to make the WFI instruction to reset the MCU, following this other thread solved the issue by clearing the A bit at begining of the program.
Now the problem is that after the CPU restarts ,and therefore the program starts executing from the entry point, that entry point's first instruction triggers a data abort exception.
So I have two main concerns here:
- Why the instruction is triggering a data abort after reset (caused by STC self test) and not triggering it in the first execution?
- I can force the PC (by manually editing it in the debug session) to execute the next instruction and then the program executes normally.
The entry point is shown in the next snapshot and the instruction in question can be seen in the disassembly with a breakpoint (the push instruction).
Any help is very appreciated.
Thanks in advance.