Skip to content

Cannot do flash read reliably (EUB-95) #38

@ammaree

Description

@ammaree

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

I expect to be able to read the flash from the target device back back into a file but cannot.

Actual behavior (suspected bug)

Instead it starts and read <5% of a 4MB flash before failing

Error logs or terminal output

esptool.py v4.10.0
Found 2 serial ports
Serial port /dev/cu.usbmodem94A990397EE81
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDR2-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 8c:4f:00:a5:0b:0c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
4096 (0 %)
A fatal error occurred: Corrupt data, expected 0x1000 bytes but received 0xf08 bytes

Steps to reproduce the behavior

Build latest version 1.2.0 and flash to latest hardware ESP-Prog-2
Connect ESP32 WROOM based target device with 4MB flash

execute correct command:
esptool.py read_flash 0 0x400000 output.bin

Have tried with --no-stub option; and
At speeds 115200, 230400, 256000, 512000, 460800 and 921600;
Fails at all speeds, with or without --no-stub

Commands write_flash works perfectly at all speeds up to 921600

Commands erase_flash, flash_id, flash_status and monitor works perfectly

Any suggestions?

Project release version

v1.2.0

System architecture

ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)

Operating system

MacOS

Operating system version

macOS Tahoe 26.1

Shell

ZSH

Additional context

No response

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