Skip to content

Error: espflash::connection_failed (ESP32 + ESP-Prog + JTAG) #450

@systec-ms

Description

@systec-ms

Good day, I got an ESP32 D1 MINI, which I can program via espflash over the serial (micro-usb).
Additionally, I can flash the esp blinky example via the VSCode extension over the ESP-Prog JTAG connection (⚡️ Flashed Successfully (JTag)).

However, if I try to flash my rust code via espflash over the EPS-Prog JTAG connection, I run into Error: espflash::connection_failed.

     Running `espflash flash --monitor target/xtensa-esp32-espidf/debug/blinky`
[2023-07-24T14:45:47Z INFO ] Detected 3 serial ports
[2023-07-24T14:45:47Z INFO ] Ports which match a known common dev board are highlighted
[2023-07-24T14:45:47Z INFO ] Please select a port
✔ Remember this serial port for future use? · no
[2023-07-24T14:45:50Z INFO ] Serial port: '/dev/ttyUSB0'
[2023-07-24T14:45:50Z INFO ] Connecting...
[2023-07-24T14:45:51Z INFO ] Unable to connect, retrying with extra delay...
[2023-07-24T14:45:52Z INFO ] Unable to connect, retrying with default delay...
[2023-07-24T14:45:53Z INFO ] Unable to connect, retrying with extra delay...
[2023-07-24T14:45:54Z INFO ] Unable to connect, retrying with default delay...
[2023-07-24T14:45:54Z INFO ] Unable to connect, retrying with extra delay...
[2023-07-24T14:45:56Z INFO ] Unable to connect, retrying with default delay...
[2023-07-24T14:45:56Z INFO ] Unable to connect, retrying with extra delay...
Error: espflash::connection_failed

I also tried #387 as mentioned by https://github.com/esp-rs/espflash/issues/394using
cargo install --git https://github.com/AVee/espflash --branch add_unix_tight_reset espflash with the same result.

    Finished dev [optimized + debuginfo] target(s) in 31.24s
     Running `espflash flash --monitor target/xtensa-esp32-espidf/debug/blinky`
[2023-07-24T14:32:58Z INFO ] 🚀 A new version of espflash is available: v2.0.1
[2023-07-24T14:32:58Z INFO ] Detected 2 serial ports
[2023-07-24T14:32:58Z INFO ] Ports which match a known common dev board are highlighted
[2023-07-24T14:32:58Z INFO ] Please select a port
✔ Remember this serial port for future use? · no
[2023-07-24T14:33:03Z INFO ] Serial port: '/dev/ttyUSB1'
[2023-07-24T14:33:03Z INFO ] Connecting...
[2023-07-24T14:33:03Z INFO ] Attempting UnixTight reset with default delay...
[2023-07-24T14:33:03Z INFO ] Attempting Classic reset with default delay...
[2023-07-24T14:33:04Z INFO ] Attempting UnixTight reset with extra delay...
[2023-07-24T14:33:05Z INFO ] Attempting Classic reset with extra delay...
[2023-07-24T14:33:06Z INFO ] Attempting UnixTight reset with default delay...
[2023-07-24T14:33:07Z INFO ] Attempting Classic reset with default delay...
[2023-07-24T14:33:08Z INFO ] Attempting UnixTight reset with extra delay...
[2023-07-24T14:33:09Z INFO ] Attempting Classic reset with extra delay...
[2023-07-24T14:33:10Z INFO ] Attempting UnixTight reset with default delay...
[2023-07-24T14:33:11Z INFO ] Attempting Classic reset with default delay...
[2023-07-24T14:33:11Z INFO ] Attempting UnixTight reset with extra delay...
[2023-07-24T14:33:12Z INFO ] Attempting Classic reset with extra delay...
[2023-07-24T14:33:14Z INFO ] Attempting UnixTight reset with default delay...
[2023-07-24T14:33:14Z INFO ] Attempting Classic reset with default delay...
Error: espflash::connection_failed

  × Error while connecting to device
  ╰─▶ Failed to connect to the device
  help: Ensure that the device is connected and the reset and boot pins are not being held down

I would appreciate any help, thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions