Unable to flash esp32 firmware in 1.2.89 webapp

Issue #540 resolved
Wenjie Wu created an issue

https://microblocks.fun/run-pilot/microblocks.html

It is always in the connecting state. Refreshing the page multiple times and plugging and unplugging the device does not work.

It works in 1.2.87 webapp

Comments (9)

  1. John Maloney repo owner

    Hmm. Updating the generic ESP32 vm on my ESP32-S board is working for me using webapp 1.2.89. (MacOS 14.5, M1 Mac PowerBook).

    However, on that board I always need to hold the BOOT button to make it go into bootloader mode when MicroBlocks tries to connect.

    I will test a few other ESP boards.

  2. Wenjie Wu reporter

    Hmm. Updating the generic ESP32 vm on my ESP32-S board is working for me using webapp 1.2.89. (MacOS 14.5, M1 Mac PowerBook).

    I have tested two boards so far, their chips are:

    • ESP32-D0WDQ6-V3
    • ESP32-D0WD-V3

    I use this command to read their chip: esptool.py read_mac

    The symptoms of both boards are the same, always in the connecting state.

    And they work fine in 1.2.87 (https://microblocksfun.cn/run/microblocks.html)

  3. John Maloney repo owner

    I'm investigating.

    So far, I've discovered that installing the firmware seems to work if you start the process before you connected to the board but not if the IDE is already connected. Are you seeing that?

    My Chrome just updated from 126 to 127. I wonder if that will change things?

  4. John Maloney repo owner

    While I don't understand why it stopped working between 1.2.88 and 1.2.89 (seems to be something subtle about WebSerial, possibly a race condition), I've found a workaround.

    I've pushed a new version of the webapp, 1.2.90, that is able to install firmware on my M5 Stack Core both when the board is connect to the IDE and when it is not. It will always prompt you to select the serial port even you were already connected to the IDE.

  5. Log in to comment