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

Thread: T4.1 software reset?

  1. #1
    Junior Member
    Join Date
    Apr 2021
    Posts
    6

    T4.1 software reset?

    Howdy forum,

    Looking to perform software reset of Teensy 4.1. Looking in the forums, I've seen examples using
    Code:
     _reboot_Teensyduino_()
    and also incorporating into a macro, but in both cases I get undefined reference to `_reboot_Teensyduino_'.

    Thoughts?

    Much appreciated!
    Jim

  2. #2
    Senior Member
    Join Date
    Oct 2019
    Location
    Calgary
    Posts
    124
    Try this:
    Code:
    void doReboot() {
      SCB_AIRCR = 0x05FA0004;
    }

  3. #3
    Junior Member
    Join Date
    Apr 2021
    Posts
    6
    Excellent, is there an equivalent for resetting or restarting?

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,831
    Quote Originally Posted by JSch View Post
    Excellent, is there an equivalent for resetting or restarting?
    That's what the write to SCB_AIRCR does.

  5. #5
    Junior Member
    Join Date
    Apr 2021
    Posts
    6
    Quote Originally Posted by PaulStoffregen View Post
    That's what the write to SCB_AIRCR does.
    Much appreciated!

  6. #6
    Trying to catch the ball in the air ... does it work for teensy 4?

  7. #7
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    9,058
    Quote Originally Posted by TFTLCDCyg View Post
    Trying to catch the ball in the air ... does it work for teensy 4?
    It works for all ARM Teensys.
    Not for 1.x or 2.x

Posting Permissions

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