espressif / esptool-js

Javascript implementation of flasher tool for Espressif chips, running in web browser using WebSerial.
https://espressif.github.io/esptool-js/
Apache License 2.0
276 stars 108 forks source link

support build-in USB-JTAG-Serial #54

Closed liux-pro closed 1 year ago

liux-pro commented 1 year ago

esp32c3 esp32s3 have a built-in USB serial. When connect them direct by usb, without external usb-serial-bridge(ch340 etc.), send correct sequence of handshake signals can put the chip into download mode. The specific sequence can be found from esp32s3 datasheet 33.4.2 Runtime operation.

igrr commented 1 year ago

@liux-pro Thank you very much for this useful PR! We have just merged #53 which was a big refactoring that moved all the code to Typescript. Would you mind rebasing or reapplying your changes? Sorry for the hassle!

liux-pro commented 1 year ago

Hi @igrr I apply changes to typescript. Besides,I think this PR is not related to #41. This PR focus on reboot device and enter flash mode, however, #41 is already in download mode, and uploaded stub successfully.

robert-alfaro commented 1 year ago

@igrr / @ameyinamdar Is this clear to merge now?

igrr commented 1 year ago

Thanks for the PR @liux-pro, and sorry to keep you waiting.

I have rebased and force-pushed to the branch of this PR, getting rid of the merge commit and adding a small fix related to the previous PR. Have tested this on ESP32-C3 and ESP32-S3 and both work fine!