Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy 4 / 4.1 error / fault handling routine

  1. #1
    Junior Member
    Join Date
    Aug 2020
    Posts
    6

    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!

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    -
    Posts
    9,756
    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.

  3. #3
    Senior Member
    Join Date
    Apr 2014
    Location
    -
    Posts
    9,756
    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
  •