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

Fails to flash when partition size is 16M (ESPTOOL-586) #820

Closed
1 task done
robbietree8 opened this issue Jan 5, 2023 · 1 comment
Closed
1 task done

Fails to flash when partition size is 16M (ESPTOOL-586) #820

robbietree8 opened this issue Jan 5, 2023 · 1 comment

Comments

@robbietree8
Copy link

robbietree8 commented Jan 5, 2023

Operating System

macOS 12.6.2

Esptool Version

v4.5-dev/1d34837725d6be5e8ae32bbcd59982a7cc5fc857

Python Version

Python 3.10.3

Chip Description

esp32s3

Device Description

No response

Hardware Configuration

No response

How is Esptool Run

macOS iTerm2

Full Esptool Command Line that Was Run

esptool.py --chip esp32s3 --port ${port} --baud 460800 --no-stub --trace write_flash --flash_size=detect -fm dio 0 firmware.bin

Esptool Output

since the trace output is too large, I'm pasting last 20 lines of trace log:

    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffffffffffffffff | ................
    ffffffffffffffff ffc0             | ..........
TRACE +0.009 Read 1 bytes: c0
TRACE +0.000 Read 14 bytes: 0103040084dbdc067801050000c0
TRACE +0.000 Received full packet: 0103040084c0067801050000

A fatal error occurred: Failed to write to target Flash after seq 16384 (result was 01050000: Requested resource not found)

More Information

partitions.csv

# Name,   Type, SubType, Offset,  Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs,      data, nvs,     ,        0x4000,
otadata,  data, ota,     ,        0x2000,
phy_init, data, phy,     ,        0x1000,
ota_0,    app,  ota_0,   ,        1M,
ota_1,    app,  ota_1,   ,        1M,
storage,  data, spiffs,  ,          16M, 
storage2,  data, spiffs,  ,      1M, 

When I change size of storage from 16M to 10M, flash works fine.

Other Steps to Reproduce

No response

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.
@github-actions github-actions bot changed the title Fails to flash when partition size is 16M Fails to flash when partition size is 16M (ESPTOOL-586) Jan 5, 2023
@dobairoland
Copy link
Collaborator

Hi @robbietree8. Thanks, we are aware of this issue. Please follow #795 or #745 to get notified when this will be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants