I am looking for help in capturing and analyzing a C161 stack upon a watchdog trip. Since the watchdog trip resets the processor, I have been assuming I need to use assembly in my startup file which copies the stack to my desired location prior to initialization. Can anyone confirm this and does anyone have any samples of doing this? Also, does anyone know if I am able to determine what the stack pointer was when the watchdog trip occurred? Thanks.
I agree - I do not want the watchdog to trip. I am trying to find a clever way to determine why it is tripping.
An ICE or the simulator could be much better way of analysing that.