Skip to content

Cannot connect to esp32s3 without --no-stub #914

@skibon02

Description

@skibon02

Information

Board: YD-ESP32-23 (https://github.com/rtek1000/YD-ESP32-23?tab=readme-ov-file)
Connection: both type-c ports were tested with the same problem

Problem

Running esptool.py --port /dev/ttyACM1 flash_id or esptool.py --port /dev/ttyACM1 chip_id works fine, but if i use espflash board-info --port /dev/ttyACM1 or any other espflash subcommands i got an error:

[2025-06-30T14:50:34Z INFO ] Serial port: '/dev/ttyACM1'
[2025-06-30T14:50:34Z INFO ] Connecting...
[2025-06-30T14:50:35Z INFO ] Using flash stub
Error: espflash::timeout

  × Error while connecting to device
  ╰─▶ Timeout while running command


But when I add flag --no-stub, all commands work and communicate with the board

espflash board-info --port /dev/ttyACM1 --no-stub
[2025-06-30T14:55:56Z INFO ] Serial port: '/dev/ttyACM1'
[2025-06-30T14:55:56Z INFO ] Connecting...
Chip type:         esp32s3 (revision v0.1)
Crystal frequency: 40 MHz
Flash size:        16MB
Features:          WiFi, BLE
MAC address:       34:85:18:93:52:e8

Other information

Communication dump during espflash command execution:

Image

Communication dump during espflash command execution (with --no-stub):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions