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

Thread: Best way to reboot Teensy 4.x?

  1. #1
    Senior Member
    Join Date
    Jul 2020
    Posts
    174

    Best way to reboot Teensy 4.x?

    I read in this thread that you can reboot a Teensy 3.2 by writing something to a register. Is that still the right way to do it for the 4.x series? If so, what's the code to do that?

    I also saw a post claiming that you could reset "an Arduino" by jumping to address 0. This would not be sensible on x86. Maybe it's sensible on AVR. Would it work on the i.MXRT?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,380
    The indicated thread mentions :: SCB_AIRCR

    A quick forum search on that shows links to a few discussions of that including :: pjrc.com/threads/60696-Teensy-4-software-reset?highlight=SCB_AIRCR

    The ARM Teensy's have that mechanism in common.

    That post links to this : pjrc.com/threads/59935-Reboot-Teensy-programmatically

    There was a time with other old posts when that went not-working on T_4's - but that was resolved and noted some time back.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,688
    Yup, use SCB_AIRCR to cause a reboot from software.

    And in Arduino, click Help > About to check which version of Teensyduino you have. 1.53 is the latest. Some old versions had a bug impacting software reboot on Teensy 4.0.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •