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

Flash error with ESP32-S3: Timeout #47

Closed walchko closed 1 year ago

walchko commented 2 years ago

Appears to be the same with S2 and C3 ... there is a timeout error when trying to flash the chip.

esptool.js v0.1-dev
Serial port WebSerial VendorID 0x303a ProductID 0x1001
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3
Features: Wi-Fi,BLE
Crystal is 40MHz
MAC: f4:12:fa:44:1b:fc
Uploading stub...
Running stub...
Stub running...
Changing baudrate to 460800
Changed
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.082s
Compressed 4420676 bytes to 124923...
Writing at 0x0... (12%)
Writing at 0x4000... (25%)
Writing at 0x8000... (37%)
Error: Timeout
adetauriac commented 1 year ago

Hello

I ve the same error :-( no idea to fix it

nicpottier commented 1 year ago

Same problem here using this board: https://www.lilygo.cc/products/t-display-s3

igrr commented 1 year ago

Serial port WebSerial VendorID 0x303a ProductID 0x1001

Looks like you are flashing it via USB_SERIAL_JTAG. This should work after #54 and #65.

igrr commented 1 year ago

Both related PRs have been merged, I think this should be fixed now. Please reopen if the issue still exists.

makermelissa commented 1 year ago

It looks like this is still an issue. I am trying to flash an ESP32-S3 and still getting a timeout error:

Screen Shot 2023-01-26 at 10 37 11 AM

I'm trying to flash the combined.bin inside of https://github.com/adafruit/tinyuf2/releases/download/0.12.0/tinyuf2-adafruit_feather_esp32s3_tft-0.12.0.zip at address 0, which works fine on https://adafruit.github.io/Adafruit_WebSerial_ESPTool/. However, I'd love to retire that tool in favor of this one once it is reliable enough.

makermelissa commented 1 year ago

The board I'm testing with is https://www.adafruit.com/product/5483. However, there's a number of bootloaders for espboards at https://github.com/adafruit/tinyuf2/releases if you want to test with a similar one.

makermelissa commented 1 year ago

83 looks kind of promising for fixing the issue though.

igrr commented 1 year ago

@makermelissa I have tried the PR #83 with the linked tinyuf2 binary and flashing was successful. I've pushed this branch also to https://igrr.github.io/esptool-js/ for you to try.

makermelissa commented 1 year ago

Ok, I just tried it and it worked great. Thank you. It looks like this tool is getting very close now.

MichaelDu9226 commented 1 year ago

@igrr The timeout problem still seems to exist on ESP32 S3 USB JTAG/DEBUG mode. I have tested https://igrr.github.io/esptool-js/ and https://espressif.github.io/esptool-js/. image

image

curlyz commented 1 year ago

@igrr The timeout problem still seems to exist on ESP32 S3 USB JTAG/DEBUG mode. I have tested https://igrr.github.io/esptool-js/ and https://espressif.github.io/esptool-js/. image

image

Confirm this issue is also existing on C3, esptool-js keep timeout although python version work, but with --no-stub flag onl