esp-launchpad icon indicating copy to clipboard operation
esp-launchpad copied to clipboard

[IDF-6907] 7. Firmware burning fails on ESP32-S2

Open ustccw opened this issue 3 years ago • 18 comments

The test found that the ESP32-S2 can only burn at a baud rate lower than 921600, otherwise it will fail (the default baud rate of esp-launchpad is 921600, that is, it will fail to burn by default).

p7

ustccw avatar Feb 16 '23 10:02 ustccw

Not 100% sure, but this might be fixed by https://github.com/espressif/esptool-js/pull/83. @ustccw could you please go to https://espressif.github.io/esptool-js/ and try to flash the same binary to the same board? If that works, it mean that we will have a fix in esp-launchpad once the new esptool-js version is released.

igrr avatar Feb 16 '23 10:02 igrr

@igrr it works every time! Just a little bit weird, it always blocks about 6 - 9 seconds when arrived the 7% progress, and then flash all the firmware smoothly. At first, I thought that the flash sector had reached its end of life, but I tried another two boards, all like this.

ustccw avatar Feb 16 '23 12:02 ustccw

Not 100% sure, but this might be fixed by espressif/esptool-js#83. @ustccw could you please go to https://espressif.github.io/esptool-js/ and try to flash the same binary to the same board? If that works, it mean that we will have a fix in esp-launchpad once the new esptool-js version is released.

Hi @igrr , Can we trigger the deployment of the new version? since esptool-js v0.2.1 released 😃

leeebo avatar Mar 02 '23 04:03 leeebo

@RushikeshPatange Has the issue been fixed? From my test, the issue still exists. You can reproduce it using the link . Would you help to figure out the problem

leeebo avatar May 29 '23 07:05 leeebo

Hi @leeebo I have tested on my side using your link.

  • Used Devkit : ESP32-S3-WROOM-1 (as you mentioned ESP32-S3 Chip-typeset in your toml )

  • It has been successfully flashed your binary for application type : usb_otg_fac_1_0_2 on the same and I am not getting error of Timeout.
  • If you still face issue regarding it, please raise issue on esptool.js (ESPLaunchpad is using esptool.js as library for flashing)

RushikeshPatange avatar Jun 01 '23 13:06 RushikeshPatange

Hi @RushikeshPatange , Which OS are you using? we found it can work on Ubuntu and MacOS, but not work for Windows. (I am using Windows 11 Education 22H2).

Link #20

leeebo avatar Jun 28 '23 06:06 leeebo

Hi @leeebo, I had tried it on macOS. Regarding the Windows OS, I found an issue on esptool-js here. Is it relevant to this situation? Please check it out once 😄

RushikeshPatange avatar Jun 28 '23 13:06 RushikeshPatange

@RushikeshPatange Seems Yes! on Windows for esp32s3 through usb-serial-jtag it works OK, but will block until timeout when through CP210x !

leeebo avatar Jun 29 '23 02:06 leeebo

@leeebo Let's wait for an update regarding this issue on the esptool-js side in their future release 😄

RushikeshPatange avatar Jun 30 '23 12:06 RushikeshPatange

image @RushikeshPatange When I flash the ESP32-S3-BOX with USB, it blocked too, here is the log. I manually enter boot mode before flashing. OS: window 10 Education WEB: chrome latest 114.0.5735.199(64 bit)

espressif2022 avatar Jul 12 '23 13:07 espressif2022

OS: window 10 Education WEB: chrome latest 114.0.5735.199(64 bit) edge: latest 114.0.1823.79 (64 bit)

I found that I was unsuccessful every time, on the old version of the box, I changed the edeg explorer and google explorer, neither of them could burn, this is the error message image

lijunru-hub avatar Jul 12 '23 13:07 lijunru-hub

I've pushed an update of esptool.js from 0.2.1 to 0.2.2 to https://igrr.github.io/esp-launchpad/, could you please check if it helps anyhow? If yes, I'll open a PR.

igrr avatar Jul 13 '23 09:07 igrr

@igrr I have a same issue with ESP32S3 (devkitC) on public launchpad and it is working on yours updated clone.

espzav avatar Jul 13 '23 10:07 espzav

Nice to hear that @espzav, thanks for trying! @lijunru-hub @espressif2022 could you please give it a try, as well?

igrr avatar Jul 13 '23 10:07 igrr

LGTM! All done

lijunru-hub avatar Jul 13 '23 12:07 lijunru-hub

Have created a PR: https://github.com/espressif/esp-launchpad/pull/28

igrr avatar Jul 16 '23 19:07 igrr

Excuse me, does it support s3 / h2. launchpad?

solomondong avatar Jan 12 '24 06:01 solomondong

@solomondong Yes, any chips that support esptool burning, should support launchpad burning also

leeebo avatar Jan 13 '24 13:01 leeebo