-
Notifications
You must be signed in to change notification settings - Fork 112
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
Flashing S3 via CDC does not work reliable #96
Comments
@Jason2866 Do you have a binary which we can flash to reproduce this issue? |
Interesting, I am not yet able to reproduce the issue with this binary... Do you meet the issue with a board which doesn't yet have anything flashed to it, or with a board which is flashed with some specific application? From the logs in the linked issue (timeout well into the upload process) I think that this recent fix to the flasher stub might help: espressif/esptool@80dc210. |
@igrr I have the same problem with a "clean board" and with a board pre-flashed with a CDC firmware. |
After flashing the board with GlowWormLuciferinFULL_ESP32_S3_firmware-factory.bin and resetting the board, esptool.js can't put it into download mode:
I have also tried esptool.py, which can't connect either. Opening the serial terminal and toggling DTR/RTS signals I also couldn't make the board reset into the download mode, so I assume the issue here is that the application doesn't handle DTR/RTS to reset into download mode. This looks like the topic of the other issue you just opened (#97) so I'm not going to address it here. If I manually place the board into ROM download mode, it can be flashed. Also I haven't managed to reproduce the issue with flashing a board when flash is erased. I have erased flash using
I am thinking that perhaps I'm not able to reproduce the issue due to a somewhat different eFuse configuration. Could you please run |
if I put the board in CDC mode by pressing Boot, RST, leave RST, this is the output:
|
Thanks for trying this! The output does look pretty much the same as on the board I have here. One other thing to try, could you flash the same binary on your end using https://igrr.github.io/esptool-js/? I have just pushed a commit to that fork, updating esptool stubs to the latest v4.6 release which includes the fix for Super WDT triggering during the upload process. |
@igrr on an erased S3 this one fails to flash via CDC |
@Jason2866 I'm not sure if it fails for you with https://igrr.github.io/esptool-js/, as suggested in the last comment, or with https://espressif.github.io/esptool-js/, or with another flasher? I have just tried flashing this binary to an erased S3 (
Could you please clarify which tool it fails for you with, and post a log? (Was it a connection timeout, or failure when flashing was already underway?) |
@igrr esptool.py does work well. It fails when using https://github.com/esphome/esp-web-tools |
@Jason2866 Just to clarify my previous comment, I have successfully flashed the binary using https://igrr.github.io/esptool-js/, not esptool.py. I only mentioned esptool.py in relation to erasing the contents of flash prior to flashing with esptool-js. Could you please try flashing http://ota.tasmota.com/tasmota32/tasmota32s3cdc.bin using https://igrr.github.io/esptool-js/ and https://espressif.github.io/esptool-js/ ? |
@igrr your https://igrr.github.io/esptool-js/ is working!! :-) |
What about https://espressif.github.io/esptool-js/? If it didn't work, could you please attach the log output? |
Well, it works too. But when used with https://github.com/esphome/esp-web-tools it fails :-( |
@igrr I tried flashing my firmware with that tool, I see the devices continously connecting and disconnecting from Windows... weird. if I flash the same file with the web installer I linked previously it works ok. |
I tried flashing the tasmota firmware and same boot loop issues when using this tool: |
@sblantipodi You have to use the factory image and flash at address 0x0 |
oops, sorry, flashing at address 0x0 works with both firmware. |
Since https://espressif.github.io/esptool-js/ works I'm going to close this issue. The upload issue with https://github.com/esphome/esp-web-tools can be tracked in esp-web-tools repository. |
Most of the time a timeout happens. See issue in esp-web-tools where esptool.js is used.
There is an another unsolved issue in Arduino Github.
@igrr Can you help?
The text was updated successfully, but these errors were encountered: