Forum Rule: Always post complete source code & details to reproduce any issue!
-
Teensy 4 / 4.1 error / fault handling routine
Is there a way to handle memory faults in code on Teensy 4.1? I'd love to just attach a global error handling routine and output feedback to the user via serial / oled display / etc.
thanks!
-
This should have most of the needed information: https://developer.arm.com/documentat...0489/f/preface
In addition, of course, the reference manual.
It would prefer if we had a good debug-print of exceptions / hard faults. It makes debugging so much easier, if they hit you...
Unfortunately, I doubt that we have something like this in the official Teeny core some time. Although the ESP32 has it, it is not very Arduino-like.
Last edited by Frank B; 12-06-2020 at 10:43 AM.
-
Also, some code that might be useful is here: https://github.com/PaulStoffregen/co...startup.c#L505 (line 505ff in startup.c)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules