This issue is reported by users using an ESP32 module with a 26MHz crystal oscillator. The root cause of the issue is that the default bootloader flashed by espflash expects a 40MHz crystal.
Make sure your
is set up properly to use a 26MHz crystal. It needs to contain the following configuration option:
You should also prefer using
cargo-espflash integrates with your
project and it will flash the bootloader that is built next to your project instead of the default
If you want to use
espflash, you need to specify an appropriate bootloader image using
--bootloader. You can find the bootloader in
target/<your MCU's target folder>/<debug or release depending on your build>/build/esp-idf-sys-*/build/bootloader/bootloader.bin
When flashing, you need to specify an appropriate bootloader image using
you will need to build this bootloader using an
esp-idf based project (Rust or C based should work
equally, we recommend a project set up with esp-idf-template).