Seems that the trying to print out CrashReport crashes my T4 right on startup (I can see it appear as serial device briefly but then it directly disconnects):
Not sure if this directly related with CrashReport. I often get really weird crashes when trying to call certain functions from LVGL. For example having a call to (not even calling it yet) lv_spangroup_create in my code causes the T4 to crash instantly. I was trying to narrow down the issue by commenting parts of the function until I reached some utf8 handling code where it did a bunch of bit shifting. Uncommenting that part fixed the crash. This seems really weird and my intuition tells me there's certainly some other problem at play here. Honestly have no idea how I can even properly diagnose this though.
I am using Teensyduino 1.57 (via PlaformIO). Also have dual serial enabled for TeensyDebug (which doesn't seem to work, but that's a different issue I guess).
Code:
if (CrashReport) {
Serial.print(CrashReport);
}
Not sure if this directly related with CrashReport. I often get really weird crashes when trying to call certain functions from LVGL. For example having a call to (not even calling it yet) lv_spangroup_create in my code causes the T4 to crash instantly. I was trying to narrow down the issue by commenting parts of the function until I reached some utf8 handling code where it did a bunch of bit shifting. Uncommenting that part fixed the crash. This seems really weird and my intuition tells me there's certainly some other problem at play here. Honestly have no idea how I can even properly diagnose this though.
I am using Teensyduino 1.57 (via PlaformIO). Also have dual serial enabled for TeensyDebug (which doesn't seem to work, but that's a different issue I guess).