I have a fault code where my micro jumps when something, well, fault.
It's a non exiting function, at the end of it there is a while (1) to just refresh the watchdog.
At the beginning of the function I read the stack to save the calling address of the fault function and in the function I just have a serial line to communicate with the PC to acquire the calling program counter which caused the fault.
While I was using the Studio 4 I used to just break, read the progem counter, write the number in the program counter in the Processor status window and press enter and the code jump to the caller of fault.
I tried to do the same in Studio 7 and the program counter changes, but the code won't, so it's really difficult to know where the program was before calling the fault function.
Any idea?