esphome / esphome/issues

Cannot use ESPHome Web to flash Wemos ESP32-S2 Mini

Open
#5,767 5 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
No language data
Stars
313
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### 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

```yaml
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](https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf) 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/

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure in Chrome with the Wemos ESP32-S2 Mini and the provided ESPHome configuration, then inspect the ESPHome Web flasher entry point. Compare the failing web-flasher path with the documented successful flashing method and verify that the module can be flashed successfully through Chrome without the reported error.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.