-
Notifications
You must be signed in to change notification settings - Fork 119
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 #615
Comments
I don't usually use Windows, but just tried reproducing your issue, and I was able to flash my ESP32:
It has an FTDI USB to UART bridge |
I think this is all due to the waiting time for a response? Since in version 2.1.0 everything is ok. Is it possible to somehow increase the time based on version 2.1.0. |
Can you enable
Sorry, what time are you referring to? Timeouts diff between 3.0.0 and 2.1.0: https://github.com/esp-rs/espflash/compare/v2.1.0..v3.0.0#diff-6da039671d40a74ed662a6c7179f47cf6cebb08f9111e54629b3b87b37b5dd12 |
Also, mind sharing the devkit that you are using? |
I have my own board based on the ESP32 Wroom 32 chip |
Can you answer this? |
I think it's here |
Can you try increasing that timeout and see if it solves the issue? I could create a quick branch with the timeout increased if you prefer. Also, could you post the output of |
I can’t start logging and I don’t understand why it crashes. I think we should set it to 3 seconds instead of 10 |
What do you mean?
But that would make it timeout even earlier. Anyway, I just made a branch with your suggested change to see if it solves the issue, mind installing espflash from it and see if it solves it:
|
No it didn't help |
To be honest, I don't have much information right now and can't reproduce the issue, I would need you to share with me debug logs ( |
} |
The initial sync might be failing, it tires 5 times (the maximum) and also bootmode is not right. Few tests:
|
I do everything according to the instructions. But as I said earlier, everything works well with version 2.1.0. The monitor loads and works. I tried to check on the M5 Atom, and I also got a loading error. on mac m1 version 3.0.0 works |
Just to confirm: Have you also tried using |
doesn't work either |
Maybe we can try connecting without resetting: Can you try using |
I think there is a reason that it does not load in version 3, on the M5 atom there is an automatic reset and boot pull, but the time is probably different compared to version 2.1 - default-reset: Uses DTR & RTS serial control lines to try to reset the chip into. Although on the M1 Mac, version 3 loads normally with default downloads. |
Error
Finished dev [optimized + debuginfo] target(s) in 0.30s
Running espflash flash --monitor target\xtensa-esp32-none-elf\debug\esp32v1
[2024-03-13T20:22:15Z INFO ] Serial port: 'COM7'
[2024-03-13T20:22:15Z INFO ] Connecting...
Error: espflash::connection_failed
Version
PS C:\esp32v1> espflash -V
espflash 3.0.0
Windows
Windows 10 Pro 22H2
Driver UART
Silicon Labs CP210x USB to UART Bridge
esptool work
Serial port COM7
Connecting.......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c8:c9:a3:c3:73:fc
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.0s
Hard resetting via RTS pin...
Version 2.1.0 work
The text was updated successfully, but these errors were encountered: