-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
ESP-prog with esp_tool protocol fails at upload or serial #4367
Comments
Ok, I did some testings and downgraded platformio to v6.0.2, thanks to the command : ConfigurationOperating system: PlatformIO Version (platformio --version): Description of problemAfter the v6.1.0 update, eep-prog (programmer tool from Espressif) won't upload any firmware or connect to an ESP32 dev module through serial. Quick workaround for those who can't wait for next version to solve this. Steps to Reproduce
Exemple of "platformio.ini" file content Expected resultLooking for upload port...
Actual ResultsConfiguring upload protocol... A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header |
2 different ports were used. Do you have a few boards connected to your machine? |
Thank you Ivan for transferring into the right place, sorry for that. Yes, as I said I tried to upload on 5 different boards, with the 4 ports available, with 3 different esp-prog tools and 3 different cables. All of this with 0% as a success rate. Of course, I did the tests with only one board connected at a time, and no other serial consuming software (such as cura for e.g.) was open and running. But once again, I could upload to dev board without changing anything. And when I went back to v6.0.2, everything went back to normal immediately. =>Sorry for changing the port used, my mistake I didn't pay attention to it, it was part of my process to ensure there was no HW problem involved. |
A lot of mixed things. Could you repeat again the testing procedure and back with test results?
Please ensure that your use PlatformIO Core CLI (terminal icon on the bottom status bar in VSCode) |
Sorry Ivan, for not being clear in my explanations. The "mixed things" were part of my debug process, and this was done before writing the first message here.
But whatever, I just did it all over again. First : upgrade to latest Dev stagepio upgrade --dev Upload result :Building .pio/build/esp32dev/firmware.bin A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header Get back to platformio-6.0.2pip install "platformio<6.1" Again, Upload results :Obsolete PIO Core v6.0.2 is used (previous was 6.1.4a1) Processing esp32dev (platform: espressif32; board: az-delivery-devkit-v4; framework: espidf) Leaving... IMPORTANTAll test were made with the same board, same cable, same port and same esp-prog. I confirm you, however, that latest versions won't work at all, whereas 6.0.2 works like a breeze. |
From this documentation : https://espressif-docs.readthedocs-hosted.com/projects/espressif-esp-iot-solution/en/latest/hw-reference/ESP-Prog_guide.html "the PC can identify the board’s downloading and JTAG interfaces (functions) by their port numbers." "The PC is able to identify the ESP-Prog’s two ports by their port numbers. The bigger port number represents the Program interface, while the other one represents the JTAG interface." I suspect that the port selection of esp-prog is not correctly done with esp-tool protocol in latest versions. Hope it helps. |
Could you provide a remote session to debug this issue? It would be great to fix for other people. Please contact to me@ikravets.com for further details. |
Mail sent ! |
Possibly i had the same "connecting..."-problem with the az-delivery-devkit-v4 board a few days ago. When i tried the use openocd directly to get a connection to the board and got a message like "the esp-wroom-32.cfg is obsolete". Then i modified the .platformio/platforms/espressif32/boards/az-delivery-devkit-v4.json - file and changed the If this is the solution, then please update/modify the az-delivery-devkit-v4.json here in github too! |
Thanks for the report! Please re-test with |
Hi Ivan, I just made the test ! Thank you for your work and time, and thank you for offering the opportunity to give a hand in the process. @Sinclair732, sorry for not answering earlier : you seem to face a different problem, here was a mis-selection of the port of the Program Interface (applies to esp-prog only). |
Great! Happy coding with PlatformIO! 🚀 |
Hi guys,
I use the esp-prog as serial firmware uploading tool, with esp_tool protocol, on custom boards of mine.
Yesterday, everything was working fine about uploading and monitoring through serial. However I had to reboot my Mac today, and I can't upload or connect to serial since the reboot.
I changed cables, usb ports and esp-progs (I have 3), rebooted my Mac 2 times. Nothing helped.
I checked with a standard dev_board connected with the same usb cable, it uploads flawlessly.
Both VScode and platformio are up-to-date.
The esp-prog itself is still detected by platformio, as it tries to reconnect when I unplug it, and self reconnects when I plug it back (nice feature btw).
I believe that one of the very last versions of platformio got effective with the reboot of VScode, and brought some novelties I wouldn't be aware of, or maybe it's just a bug hidden somewhere.
How to solve this, and if needed, how may I help ?
Thanks
The text was updated successfully, but these errors were encountered: