Skip to content

1.0.0 fails to flash binary while esptool.py does #51

@sehraf

Description

@sehraf

I tried flashing it a few times but it always fails:

└──> % ~/.cargo/bin/espflash /dev/ttyUSB0 target/riscv32imc-esp-espidf/debug/esphome-rs
[00:00:01] ########################################      12/12      segment 0x0
[00:00:00] ########################################       1/1       segment 0x8000
Error: ────[espflash::timeout]───────────────────────────────────────────────────────────────────────

    × Communication error while flashing device
    ╰─▶ Timeout while running command

With esptool.py it works fine.
Using esptool.py --chip esp32c3 elf2image target/riscv32imc-esp-espidf/debug/esphome-rs && esptool.py --chip esp32c3 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x10000 target/riscv32imc-esp-espidf/debug/esphome-rs.bin

It's an ESP32-C3

~/.cargo/bin/espflash --board-info /dev/ttyUSB0 target/riscv32imc-esp-espidf/debug/esphome-rs
Chip type: ESP32-C3
Flash size: 4MB

I've previously used Arduino IDE to change the partition to "Huge App" (3MB No OTA, 1MB SPIFFS)
binary.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions