Repository navigation
v0.2.1
Prerequisites
Install Rust/Cargo and Git. Make sure Cargo-installed binaries are on your PATH (normally via ~/.cargo/bin). On Linux, installing the ESP tool also requires libudev-dev and pkg-config.
Install the flashing tool for your board directly from this release's tag; no repository checkout is needed. The commands in the published release notes already use the correct tag.
ESP32-C3 SuperMini and ESP32-C5-DevKitC-1:
cargo install --locked --git https://github.com/microtun/microtun-boot.git \
--tag "v0.2.1" microtun-boot-tools-espRP2350 Pico 2:
cargo install --locked --git https://github.com/microtun/microtun-boot.git \
--tag "v0.2.1" microtun-boot-tools-rpYou only need to install the tool for the board you want to flash.
Flash the bootloaders
Download the attached .bin files. Choose dev or release to match the device's secure-boot key (key provisioning is irreversible).
ESP32-C3 SuperMini — Connect the board over USB-Serial-JTAG and set your serial port:
PROFILE=dev # or release
export ESPPORT=/dev/ttyACM0 # change to your serial port
export MICROTUN_BOOT_OTP_BURN=YES
microtun-boot-tools-esp --board esp32c3-supermini flash-bootloader --signed-bin \
"esp32c3-supermini-${PROFILE}-boot-chain.sbv2.bin"The complete signed image (ESP-IDF second stage, partition table, and signed microtun boot) is verified and written at 0x0. It does not re-sign or rebuild anything.
ESP32-C5-DevKitC-1 — Each flash size has its own board and boot chain: esp32c5-devkitc-1-n4 (4 MiB, …-N4 modules), esp32c5-devkitc-1-n8 (8 MiB, e.g. …-N8R8) or esp32c5-devkitc-1-n16 (16 MiB, e.g. …-N16R8). Pick the one that matches the module's flash, connect the board through its ESP32-C5 USB connector (USB-Serial-JTAG, not the UART one) and set your serial port:
PROFILE=dev # or release
BOARD=esp32c5-devkitc-1-n8 # or esp32c5-devkitc-1-n4 / esp32c5-devkitc-1-n16
export ESPPORT=/dev/ttyACM0 # change to your serial port
export MICROTUN_BOOT_OTP_BURN=YES
microtun-boot-tools-esp --board "$BOARD" flash-bootloader --signed-bin \
"${BOARD}-${PROFILE}-boot-chain.sbv2.bin"The complete signed image is verified (including its partition table and flash size against the board) and written at 0x2000, where the ESP32-C5 ROM loads the second stage. It does not re-sign or rebuild anything. Use the same board for every application you flash afterwards.
ESP32 chips in Secure Download Mode (a manually burned ENABLE_SECURITY_DOWNLOAD eFuse; neither profile sets it): flash through a USB-to-UART connection instead of USB-Serial-JTAG, and set ESPPORT to it explicitly (for example /dev/ttyUSB0). On the ESP32-C5-DevKitC-1 that is the board's USB-to-UART port. The ESP32-C3 SuperMini needs an external adapter on GPIO20/GPIO21. Over USB-Serial-JTAG, the RTC watchdog left armed by microtun boot can't be disabled in this mode and may reset the chip mid-write. See the board README's Secure Download Mode section.
RP2350 Pico 2 — Connect an SWD probe:
PROFILE=dev # or release
export MICROTUN_BOOT_OTP_BURN=YES
microtun-boot-tools-rp flash-bootloader --signed-bin \
"rp2350-pico2-${PROFILE}-microtun-boot.signed.bin"The ROM-sealed binary is verified and downloaded at 0x10000000, then the board is reset, without generating a new signature. PROBE_RS_PROBE, PROBE_RS_SPEED_KHZ, and PROBE_RS_CHIP work as usual.
Full Changelog: v0.2.0...v0.2.1