mjs513
Senior Member+
Paul - follow on to the above posting about not seeing crash report...
Here is a stupid simple sketch:
Compile it with MTP as USB type.Code:#include <LFS_MTP_Callback.h> #include <MTP.h> #include <SDMTPClass.h> #include <Storage.h> #include <USB_MSC_MTP.h> void setup() { while (!Serial && millis() < 5000) ; Serial.begin(115200); Serial.print(CrashReport); Serial.println("Enter something to go boom"); while (Serial.read() == -1); uint8_t *ptr = 0; *ptr = 99; } void loop() { }
Open up Serial Terminal... Nothing will display
Enter something... It will reboot after the 10 seconds... Again nothing shows up...
EDIT: Note I am running on Windows 10...
Have not tried on Ubuntu yet... Note: MTP code can run on Ubuntu... Will talk more about that on appropriate therad.
@KurtE - trying to catch up on things and since I have pretty much the same library configs as you do I ran your test sketch. Hit the enter and waited - closed the serial monitor and reopened it and
Code:
CrashReport:
A problem occurred at (system time) 19:55:16
Code was executing from address 0xF0
CFSR: 82
(DACCVIOL) Data Access Violation
(MMARVALID) Accessed Address: 0x0 (nullptr)
Check code at 0xF0 - very likely a bug!
Run "addr2line -e mysketch.ino.elf 0xF0" for filename & line number.
Temperature inside the chip was 47.69 °C
Startup CPU clock speed is 600MHz
Reboot was caused by auto reboot after fault or bad interrupt detected
Enter something to go boom
Using MTP Disk I get the same behavior that you describe in your post!!!