I would like to debug a wdt reset.
I know that the wdt will fire when the watchdog isn't feed for some time because
CPU is occupied for >1s.
So I have to find out what the cpu is doing before the reset.
I assume the wdt reset is a hardware level reset but I cant't find more information.
Is it possible to catch that reset?
Is it possible to get a kind of warning interrup before?
I thought about a timer or instruction counting interrupt that stores some pc/sp/ps/... registers for reading
after reset.
Does RAM content survive a wdt reset caused reboot?
Do you have any information or experience?
Cal