Im currently trying to figure out why it seems like a MCU is crashing/freezing. I can recreate the crash/freezing almost everytime by doing the same procedure, and i have been looking through the code extensively, trying to find what could be the problem, but i can't seem to find the culprit.
A timer is running on the MCU with a interrupt every 10us. To try to debug it further, I added some code to toggle a diode(every 100ms) inside this interrupt, and suddenly this diode just stops blinking and the MCU is non-responsive. No USB/UART communication etc., everything seems dead. I have measured the VDD voltage and it seems to be fine, no glitches/voltage drops.
I did not write the code, but i have narrowed it down to a part which takes care of decoding a serial signal which is coming in through a pin interrupt. But not any further.
The MCU is a AT32UC3 and I have a ATMEL-ICE debugger on it, but i have not much experience with debugging on a live MCU.
I suspect it could be some part of the memory that is getting written and corrupted, but im not sure.
Any advice on how to proceed with this sort of problem?