bmackdbacks
Member
I have a Teensy (4.1) application that will periodically reset and I'm trying to figure out what might be causing the reset. However when I attempt to use code that includes CrashReport the Teensy's associated serial port on my computer never becomes available (as if it's not connected). Immediately after I upload an application to Teensy that uses CrashReport I lose serial comm and it won't reappear until I "hard" reset the board (hold pin down for 16sec) and then load code that doesn't contain CrashReport.
I have tried a few different iterations of the following in the setup() function, for example I have tried removing the while loop as it appears to be stuck in an infinite loop or I have it wait less time etc..
Serial.begin(115200);
while (!Serial); // wait for serial monitor open
if (CrashReport) {
Serial.print(CrashReport);
delay(5000);
}
For the environment I'm using Visual Micro/Visual Studio on a Windows 11 Pro VM (MAC w/Parallels), to date I haven't had any issues using this environment.
I must be missing/misunderstanding something, any ideas?
I have tried a few different iterations of the following in the setup() function, for example I have tried removing the while loop as it appears to be stuck in an infinite loop or I have it wait less time etc..
Serial.begin(115200);
while (!Serial); // wait for serial monitor open
if (CrashReport) {
Serial.print(CrashReport);
delay(5000);
}
For the environment I'm using Visual Micro/Visual Studio on a Windows 11 Pro VM (MAC w/Parallels), to date I haven't had any issues using this environment.
I must be missing/misunderstanding something, any ideas?