Description
When flashing an ESP32-C6 binary built with esp-generate (default Embassy template) using espflash flash --monitor --chip esp32c6 --log-format defmt, the flashing succeeds, but serial monitoring stops immediately after the ESP-IDF bootloader messages. No defmt (or any user) logs are printed.
Expected behavior
After flashing, espflash --monitor should:
Complete flashing.
Display defmt logs (e.g., [INFO ] Hello world!).
Actual behavior
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
I (191) boot: Disabling RNG early entropy source...
Monitor output stops here. No further logs, no defmt decoding.
Reproduction steps
Using esp-generate to generate project with necessary configs. And use cargo run to flash into board.
Contrast: The same binary works perfectly with probe-rs
Env:
espflash 4.2.0
rustc 1.91.0 (f8297e351 2025-10-28)
OS Windows11
rust toolchain
channel = "stable"
components = ["rust-src"]
targets = ["riscv32imac-unknown-none-elf"]