esptool-js icon indicating copy to clipboard operation
esptool-js copied to clipboard

Flash error with ESP32-C3 via CDC: Timeout

Open Jason2866 opened this issue 2 years ago • 3 comments

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 avatar Aug 11 '22 08:08 Jason2866

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

Jason2866 avatar Aug 11 '22 09:08 Jason2866

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

balloob avatar Aug 11 '22 13:08 balloob

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

brentru avatar Sep 14 '22 22:09 brentru

same issue

liux-pro avatar Dec 01 '22 23:12 liux-pro

Related? https://github.com/espressif/esptool-js/pull/54

TD-er avatar Dec 02 '22 06:12 TD-er

@brianignacio5 Can you implement in your PR?

Jason2866 avatar Dec 02 '22 10:12 Jason2866

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

igrr avatar Jan 12 '23 16:01 igrr

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

liux-pro avatar Jan 12 '23 17:01 liux-pro

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 avatar Jan 12 '23 17:01 igrr

@liux-pro may I ask you to try https://github.com/espressif/esptool-js/pull/65 and see if that fixes the issue on your end? I've only updated the stub binary for ESP32-C3 there.

igrr avatar Jan 12 '23 17:01 igrr

@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 !

liux-pro avatar Jan 12 '23 18:01 liux-pro

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

Jason2866 avatar Jan 13 '23 12:01 Jason2866

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

igrr avatar Jan 13 '23 13:01 igrr