PIC24FJ64GA002 - program runs in debug mode, in production WDT triggered unexpectedly
I have a thing here going on I cannot get my head around.
I was investigation unexpected WDT events and set MPLABX IDE (5.35, XC16 v1.50) to break "when watchdog timer has expired".
Sure enough - when in debug mode, WDT does not expire and hence no pointers from debug where the issue may be.
Are they any 'clever' ways to investigate this further - other than writing a unique ID to non-volatile memory at the start of each function to see where the programs hangs when the WDT times out in production image?