-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: espflash::connection_failed (ESP32 + ESP-Prog + JTAG) #450
Comments
Could it be that it is not possible to flash Xtensa chips via espflash and jtag (#23)? If so, how do I extract the |
The following works for me: Flash via ESP-PROG (JTAG)Eraseopenocd-esp32openocd -f /usr/share/openocd-esp32/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f /usr/share/openocd-esp32/scripts/target/esp32.cfg -c "init; reset halt; flash erase_address 0x1000 16773120; exit" Flash BootloaderUse target/xtensa-esp32-espidf/debug/build/esp-idf-sys-5088a6f49af329e1/out/build/bootloader/bootloader.bin
target/xtensa-esp32-espidf/release/build/esp-idf-sys-0f6f63297e12c38d/out/build/bootloader/bootloader.bin openocd-esp32openocd -f /usr/share/openocd-esp32/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f /usr/share/openocd-esp32/scripts/target/esp32.cfg -c "program bootloader.bin 0x1000; exit" Flash Partition TableUse Typical locations are (note esp-rs/esp-idf-sys#97): target/xtensa-esp32-espidf/debug/build/esp-idf-sys-5088a6f49af329e1/out/build/partition_table/partition-table.bin
target/xtensa-esp32-espidf/release/build/esp-idf-sys-0f6f63297e12c38d/out/build/partition_table/partition-table.bin Export binary: espflash partition-table --to-binary --output partition-table.bin .embuild/espressif/esp-idf/release-v4.4/components/partition_table/partitions_singleapp.csv Flash binary: openocd-esp32openocd -f /usr/share/openocd-esp32/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f /usr/share/openocd-esp32/scripts/target/esp32.cfg -c "program partition-table.bin 0x8000; exit" Flash ApplicationExport binary (change espflash save-image --chip esp32 target/xtensa-esp32-espidf/release/app app.bin Flash binary: openocd-esp32openocd -f /usr/share/openocd-esp32/scripts/interface/ftdi/esp32_devkitj_v1.cfg -f /usr/share/openocd-esp32/scripts/target/esp32.cfg -c "program app.bin 0x10000 reset exit" Should be |
Hi! Sorry for the late reply, Can try using #487 and see if it solves the issue? You should be able to flash Xtensa via JTAG |
Hi! Would you mind verifying if the issue still persists with the changes on
|
Sorry for the late replay, sadly no luck: ❯ espflash -V
espflash 3.0.0-dev ❯ espflash board-info
[2023-11-16T10:11:46Z INFO ] Detected 2 serial ports
[2023-11-16T10:11:46Z INFO ] Ports which match a known common dev board are highlighted
[2023-11-16T10:11:46Z INFO ] Please select a port
✔ Remember this serial port for future use? · no
[2023-11-16T10:11:56Z INFO ] Serial port: '/dev/ttyUSB0'
[2023-11-16T10:11:56Z INFO ] Connecting...
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
❯ espflash board-info
[2023-11-16T10:12:05Z INFO ] Detected 2 serial ports
[2023-11-16T10:12:05Z INFO ] Ports which match a known common dev board are highlighted
[2023-11-16T10:12:05Z INFO ] Please select a port
✔ Remember this serial port for future use? · no
[2023-11-16T10:12:07Z INFO ] Serial port: '/dev/ttyUSB1'
[2023-11-16T10:12:07Z INFO ] Connecting...
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 Same result with
So unfortunately, the problem still exists. |
Have you tried to flash your application with |
#521 may fix this issue, mind testing again with
Sorry for the debugging procedure, but since I can't reproduce the issue, I would like to know if it's still there |
Sadly, same result as before. |
Hi! By any chance, did you try |
I tried it initially, and it worked, but never again since. |
Do you have anything connected into the strapping pins? |
Sorry again for the late reply, but I no longer have the hardware available, so feel free to close this issue. |
Good day, I got an
ESP32 D1 MINI
, which I can program viaespflash
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 intoError: 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.I would appreciate any help, thanks in advance.
The text was updated successfully, but these errors were encountered: