Skip to content
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

Flash error with ESP32-C3 via USB_SERIAL_JTAG: Timeout #41

Closed
Jason2866 opened this issue Aug 11, 2022 · 13 comments
Closed

Flash error with ESP32-C3 via USB_SERIAL_JTAG: Timeout #41

Jason2866 opened this issue Aug 11, 2022 · 13 comments
Labels
bug Something isn't working

Comments

@Jason2866
Copy link
Contributor

Jason2866 commented Aug 11, 2022

esptool.js v0.1-dev
Serial port WebSerial VendorID 0x303a ProductID 0x1001
Connecting....
Detecting chip type... ESP32-C3
Chip is ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 84:f7:03:a0:ee:ec
Uploading stub...
Running stub...
Error: Timeout
Compressed 2209028 bytes to 1330626...

Screenshot from Chrome Console
Bildschirmfoto 2022-08-11 um 11 00 55

@balloob fyi

@Jason2866 Jason2866 changed the title Connect error with ESP32-C3 via CDC: Timeout Flash error with ESP32-C3 via CDC: Timeout Aug 11, 2022
@Jason2866
Copy link
Contributor Author

When using Tasmota WebInstaller which uses esp-web-flasher under the hood flashing does work.
Bildschirmfoto 2022-08-11 um 11 08 34

@balloob
Copy link
Contributor

balloob commented Aug 11, 2022

Maybe the C3 stub is incorrect and so gets stuck once written to RAM https://github.com/espressif/esptool-js/blob/main/targets/esp32c3.js

@brentru
Copy link

brentru commented Sep 14, 2022

Having the same issue with ESP32-C3. Bumping for visibility.

@liux-pro
Copy link
Contributor

liux-pro commented Dec 1, 2022

same issue

@TD-er
Copy link

TD-er commented Dec 2, 2022

Related? #54

@Jason2866
Copy link
Contributor Author

@brianignacio5 Can you implement in your PR?

@igrr igrr linked a pull request Dec 6, 2022 that will close this issue
@igrr igrr removed a link to a pull request Dec 6, 2022
@igrr
Copy link
Member

igrr commented Jan 12, 2023

This should be now fixed by #54, thanks @liux-pro!

@igrr igrr closed this as completed Jan 12, 2023
@liux-pro
Copy link
Contributor

liux-pro commented Jan 12, 2023

This should be now fixed by #54, thanks @liux-pro!

@igrr
still not fixed, exactly the same issue as @Jason2866
esp32c3 via build-in usb jtag
image

@igrr igrr reopened this Jan 12, 2023
@igrr
Copy link
Member

igrr commented Jan 12, 2023

I thought I tested the final merge commit on both C3 with USB_SERIAL_JTAG and CP2102, but looks like I didn't.

Updating the stub binary seems to solve the issue. I'll do more checks with different boards and open a PR.

@igrr
Copy link
Member

igrr commented Jan 12, 2023

@liux-pro may I ask you to try #65 and see if that fixes the issue on your end? I've only updated the stub binary for ESP32-C3 there.

@liux-pro
Copy link
Contributor

@liux-pro may I ask you to try #65 and see if that fixes the issue on your end? I've only updated the stub binary for ESP32-C3 there.

Fully functional !

@igrr igrr added the bug Something isn't working label Jan 12, 2023
@igrr igrr changed the title Flash error with ESP32-C3 via CDC: Timeout Flash error with ESP32-C3 via USB_SERIAL_JTAG: Timeout Jan 12, 2023
@Jason2866
Copy link
Contributor Author

Jason2866 commented Jan 13, 2023

Confirmed working with PR #65 Good for release when debugging Infos #63 are removed.

@igrr
Copy link
Member

igrr commented Jan 13, 2023

#65 has been merged, hopefully this is fixed for good!

@igrr igrr closed this as completed Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants