Checklist
How often does this bug occurs?
always on a board with CP2014 USB/serial bridge, often on other boards with CP2102 and CH340
Expected behavior
Show the flashing progress in the terminal window, then show the message "flashing complete" after having correctly flashed the firmware
Actual behavior (suspected bug)
After the image compression, the "flashing complete" message appears immediately, but no firmware has been actually written
Error logs or terminal output
esptool.js
Serial port WebSerial VendorID 0x10c4 ProductID 0xea60
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:67:b2:77:be:2c
Uploading stub...
Running stub...
Stub running...
Changing baudrate to 921600
Changed
Compressed 1620704 bytes to 922388...
Steps to reproduce the behavior
- Connect the target device, then click "Connect" in the webpage of ESP Launchpad
- After a few seconds, the connection is established and the Flash button is enabled
- Select one of the pre-built examples, such as RainMaker_fan
- Click Flash
- Everything works normally until the image compression is completed, then the "flashing complete" message is displayed but nothing has been written (if Reset is clicked, the ESP32 reboots with the previous firmware)
Project release version
Current version on https://espressif.github.io/esp-launchpad/
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
Windows 10
Shell
CMD
Additional context
I tried with both Chrome and Edge, same behaviour.
EDIT: I tried different baudrates, and when I went down to 115200 it started working. However, with esptool.py the same firmware on the same board is flashed at 460800 or 921600 without any problem (already used hundreds of times)
After further testing, I found that this problem seems to affect ALL boards, although the one with CP2104 exhibits it regularly.
Moreover, I repeated the test using Chrome on a Mac Mini and I saw the same behaviour. Therefore I removed the reference to CP2104 (sorry for the repeated edits).
So there are actually 2 issues:
- The communication at baud rates higher than 115200 seems unreliable
- The error is not handled in ESP-Launchpad, and the message "flashing complete" is displayed even when no firmware is flashed.
Anyone else experiencing these problems?
Checklist
How often does this bug occurs?
always on a board with CP2014 USB/serial bridge, often on other boards with CP2102 and CH340
Expected behavior
Show the flashing progress in the terminal window, then show the message "flashing complete" after having correctly flashed the firmware
Actual behavior (suspected bug)
After the image compression, the "flashing complete" message appears immediately, but no firmware has been actually written
Error logs or terminal output
esptool.js Serial port WebSerial VendorID 0x10c4 ProductID 0xea60 Connecting.... Detecting chip type... ESP32 Chip is ESP32-D0WD-V3 (revision 3) Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: ac:67:b2:77:be:2c Uploading stub... Running stub... Stub running... Changing baudrate to 921600 Changed Compressed 1620704 bytes to 922388...Steps to reproduce the behavior
Project release version
Current version on https://espressif.github.io/esp-launchpad/
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
Windows 10
Shell
CMD
Additional context
I tried with both Chrome and Edge, same behaviour.
EDIT: I tried different baudrates, and when I went down to 115200 it started working. However, with esptool.py the same firmware on the same board is flashed at 460800 or 921600 without any problem (already used hundreds of times)
After further testing, I found that this problem seems to affect ALL boards, although the one with CP2104 exhibits it regularly.
Moreover, I repeated the test using Chrome on a Mac Mini and I saw the same behaviour. Therefore I removed the reference to CP2104 (sorry for the repeated edits).
So there are actually 2 issues:
Anyone else experiencing these problems?