Crate teensy4_selfrebootor
source ·Expand description
§teensy4-selfrebootor
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:
- A Teensy 4.0/Teensy 4.1/Teensy MicroMod development board
The following software tools have to be installed:
- Python3 (as
python3
, or modifyrun.py
to use thepython
binary) cargo-binutils
teensy_loader_cli
§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.
Structs§
- The rebootor USB driver.
Functions§
- Reboots the device into the HalfKay bootloader, putting it into firmware flashing mode.