Skip to content

Fails to detect Flash size for ESP32-C5 DevkitC-1 N8R4, but esptool detects successfully. #217

@tyeth

Description

@tyeth

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

Expected behavior

Expected to detect an 8MB flash size.

Actual behavior (suspected bug)

Fails to detect flash size / communicate with flash chip.

Error logs or terminal output

esptool.js
Serial port WebSerial VendorID 0x10c4 ProductID 0xea60
Connecting...
Chip Magic: 0x5fd1406f
Detecting chip type... ESP32-C5
Chip is ESP32-C5 (revision v1.0)
Features: Wi-Fi 6 (dual-band),BT 5 (LE),IEEE802.15.4,Single Core + LP Core,240MHz
Crystal is 48MHz
MAC: 30:ed:a0:e4:2b:1c
Uploading stub...
Running stub...
Stub running...
Flash ID: 0
WARNING: Failed to communicate with the flash chip,
                                                   read/write operations will fail.
                                                                                   Try checking the chip connections or removing
        any other hardware connected to IOs.
Configuring flash size...
Could not auto-detect Flash size. defaulting detect
Detected flash size set to 4MB

Steps to reproduce the behavior

Connect official C5 devkit, 8mb flash 4mb psram (WROOM-1).
Notice message about failing to detect flash size, and that read/writes may fail.

Project release version

latest

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

11

Shell

PowerShell

Additional context

Running esptool locally with the flash-id command does show the flash size correctly.

 esptool flash-id
esptool v5.1.0
Connected to ESP32-C5 on COM82:
Chip type:          ESP32-C5 (revision v1.0)
Features:           Wi-Fi 6 (dual-band), BT 5 (LE), IEEE802.15.4, Single Core + LP Core, 240MHz
Crystal frequency:  48MHz
MAC:                30:ed:a0:ff:fe:e4:2b:1c
BASE MAC:           30:ed:a0:e4:2b:1c
MAC_EXT:            ff:fe

Stub flasher running.

Flash Memory Information:
=========================
Manufacturer: 20
Device: 4017
Detected flash size: 8MB

Hard resetting via RTS pin...

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