esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
285 stars 34 forks source link

Cannot use ESPHome Web to flash Wemos ESP32-S2 Mini #5767

Open poldim opened 2 weeks ago

poldim commented 2 weeks ago

The problem

When trying to flash the module, chrome recognizes the device, but the web flasher is unable to flash it

Chrome recognizes the module:

image

Selecting the file to install:

image

Error:

image

Which version of ESPHome has the issue?

2024.5.0-dev

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

2024.5.1

What platform are you using?

ESP32

Board

Wemos ESP32-S2 Mini

Component causing the issue

No response

Example YAML snippet

esphome:
  name: ${device_name}
  platformio_options:
    board_build.f_flash: 40000000L
    board_build.flash_mode: dio
    board_build.flash_size: 4MB
    upload_speed: 115200

esp32:
  board: esp32-s2-saola-1 
  ### https://github.com/platformio/platformio-docs/blob/develop/boards/espressif32/adafruit_magtag29_esp32s2.rst
  variant: ESP32S2
  framework:
    type: arduino
    version: recommended

logger:

Anything in the logs that might be useful for us?

No response

Additional information

Module schematic: https://www.wemos.cc/en/latest/_static/files/sch_s2_mini_v1.0.0.pdf

The module has no serial chip and the USB is connected to pins GPIO19 and GPIO20:

image

The ESP32-S2FH4 datasheet calls out the following UART pins:

image

Environment: Macbook accessing web flasher via Chrome with module connected via USB-C

I can succesfully flash the module using the following: https://khaz.me/flashing-an-esp32-s2-mini-on-a-mac/