I would appreciate the community's help with this pesky problem.
I have a Teensy 4.0 which is connected to a serial sensor. I am not sure why yet, but the Teensy was crashing after about 30 minutes of communicating with the sensor. Not knowing what was causing this, I added a watchdog which did succeed in restarting the Teensy. (my knowledge of how to debug micro crashes in non-existent).
The problem is that my Teensy needs to communicate with a PC (via USB) and when the watchdog restarts the Teensy, the PC never reconnects. Upon the Teensy restarting, I have to close the com port on the PC and then reopen it to strat communicating.
Is there a way around this?
I have a Teensy 4.0 which is connected to a serial sensor. I am not sure why yet, but the Teensy was crashing after about 30 minutes of communicating with the sensor. Not knowing what was causing this, I added a watchdog which did succeed in restarting the Teensy. (my knowledge of how to debug micro crashes in non-existent).
The problem is that my Teensy needs to communicate with a PC (via USB) and when the watchdog restarts the Teensy, the PC never reconnects. Upon the Teensy restarting, I have to close the com port on the PC and then reopen it to strat communicating.
Is there a way around this?