Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read-flash doenst work with some lengths #787

Open
SergioGasquez opened this issue Feb 26, 2025 · 0 comments
Open

read-flash doenst work with some lengths #787

SergioGasquez opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SergioGasquez
Copy link
Member

espflash read-flash times out with some lengths:

❯ espflash  read-flash 0 4 out.bin
[2025-02-26T12:19:03Z INFO ] Serial port: '/dev/ttyUSB0'
[2025-02-26T12:19:03Z INFO ] Connecting...
[2025-02-26T12:19:03Z INFO ] Using flash stub
[2025-02-26T12:19:04Z WARN ] Setting baud rate higher than 115,200 can cause issues
Chip type:         esp32c6 (revision v0.0)
Crystal frequency: 40 MHz
Flash size:        8MB
Features:          WiFi 6, BT 5
MAC address:       60:55:f9:f7:1b:6c
Error: espflash::timeout

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

Not sure why, 11 works fine, but 12 fails. I tried a few different number (not with much detail), but looks like it only happens with low numbers

While esptool:

❯ esptools tool --chip esp32c6 read_flash  0 4 out.bin
Tool esptool mounted as `/home/sergio/.cache/esptools/78c195b08bd57bf27167b323600d417a546d3393/esptool`
Executing `esptool`
esptool.py v4.8.1
Found 33 serial ports
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-C6 (QFN40) (revision v0.0)
Features: WiFi 6, BT 5, IEEE802.15.4
Crystal is 40MHz
MAC: 60:55:f9:00:00:f7:1b:6c
BASE MAC: 60:55:f9:f7:1b:6c
MAC_EXT: 00:00
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
4 (100 %)
4 (100 %)
Read 4 bytes at 0x00000000 in 0.0 seconds (3.1 kbit/s)...
Hard resetting via RTS pin...
Status Ok(ExitStatus(unix_wait_status(0)))
@SergioGasquez SergioGasquez added this to the v4 milestone Feb 26, 2025
@jessebraham jessebraham added the bug Something isn't working label Feb 26, 2025
@playfulFence playfulFence self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants