#nxp #teensy-4 #usb-device #imxrt #rebootor

no-std teensy4-selfrebootor

A self-rebooting implementation of teensy's rebootor for teensy4

5 unstable releases

0.2.0 Mar 4, 2024
0.1.1 Sep 15, 2023
0.1.0 Sep 15, 2023
0.0.2 Aug 16, 2023
0.0.1 Aug 16, 2023

#1376 in Embedded development

Download history 4/week @ 2024-02-22 133/week @ 2024-02-29 28/week @ 2024-03-07 3/week @ 2024-03-14

166 downloads per month

MIT/Apache

14KB
77 lines

teensy4-selfrebootor

Crates.io Crates.io License Build Status docs.rs

This crate provides a USB device compatible with teensy_loader_cli -r to force the Teensy4 to reboot itself into bootloader.

This allows the board to be reprogrammed without having to press the Reset/Boot button.

A requirement of this crate is that there is no other use for the USB port, as it will fully consume it.

Examples

- examples are intended for the Teensy 4.0, Teensy 4.1 or Teensy MicroMod board -

Prerequisites

The following hardware is required for the examples:

The following software tools have to be installed:

Run

  • Connect the Teensy to PC via USB cable.
  • Press the Reset/Boot button on the Teensy.
  • Run:
    cargo run --release --example teensy4_selfrebootor
    
  • Run the previous command again. This time the command should not need the Reset/Boot button. The Teensy should switch to boot mode automatically.

Dependencies

~27MB
~734K SLoC