Skip to content

"Flashing of firmware is completed" message appears even in case of failure #74

Description

@vanniaz

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

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

  1. Connect the target device, then click "Connect" in the webpage of ESP Launchpad
  2. After a few seconds, the connection is established and the Flash button is enabled
  3. Select one of the pre-built examples, such as RainMaker_fan
  4. Click Flash
  5. 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:

  1. The communication at baud rates higher than 115200 seems unreliable
  2. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions