Skip to content

espflash support for large flash sizes >16Mb? #810

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

Closed
AdamHeavens opened this issue Mar 20, 2025 · 3 comments
Closed

espflash support for large flash sizes >16Mb? #810

AdamHeavens opened this issue Mar 20, 2025 · 3 comments
Labels
bug Something isn't working status:awaiting-response Awaiting a response from the author status:needs-investigation Issue requires further investigation

Comments

@AdamHeavens
Copy link

Does espflash support larger then 16Mb flash sizes? I see parameters to specify 128Mb but I get the following and nothing over 16Mb will flash?

espflash flash --partition-table=partitions.csv --baud 921600 --chip esp32s3 --port /dev/ttyUSB1 --flash-size 128mb target/xtensa-esp32s3-espidf/release/app-name

[2025-03-20T20:28:57Z INFO ] Serial port: '/dev/ttyUSB1'
[2025-03-20T20:28:57Z INFO ] Connecting...
[2025-03-20T20:28:57Z INFO ] Using flash stub
[2025-03-20T20:28:59Z WARN ] Setting baud rate higher than 115,200 can cause issues
Chip type:         esp32s3 (revision v0.1)
Crystal frequency: 40 MHz
Flash size:        128MB
Features:          WiFi, BLE
MAC address:       70:04:1d:ae:cf:e4
Partition table:   partitions.csv
Error:   × Failed to parse partition table
  ╰─▶ The partition table is invalid
python3 $IDF_PATH/components/partition_table/gen_esp32part.py partitions.csv partitions.bin
Parsing CSV input...
Verifying table...
Partitions.csv
# Name,   Type, SubType,  Offset,   Size
nvs,data,nvs,0x9000,0x24000
otadata,data,ota,0x2d000,0x2000
factory,app,factory,0x30000,0x600000
app0,app,ota_0,0x630000,0x600000
app1,app,ota_1,0xC30000,0x600000
storage,data,spiffs,0x1230000,0x4000000
nvs_key,data,nvs_keys,0x5230000,0x400000

Thanks

Adam

@AdamHeavens AdamHeavens changed the title Espflash support for large flash sizes? espflash support for large flash sizes >16Mb? Mar 20, 2025
@SergioGasquez
Copy link
Member

Does espflash support larger then 16Mb flash sizes? I see parameters to specify 128Mb but I get the following and nothing over 16Mb will flash?

It should work, Id suggest updating to espflash@main : cargo install espflash --git https://github.com/esp-rs/espflash

python3 $IDF_PATH/components/partition_table/gen_esp32part.py partitions.csv partitions.bin
Parsing CSV input...
Verifying table...

Does this command finishes? Or it gets stuck?

@jessebraham jessebraham added bug Something isn't working status:needs-investigation Issue requires further investigation labels Mar 25, 2025
@MabezDev
Copy link
Member

MabezDev commented Apr 10, 2025

FYI I can flash and inspect my 32MB esp32s3 board I have here, so perhaps something else is going on here? Maybe it's just the partition part of espflash that can't handle larger sizes?

Edit: This is using espflash@main

@SergioGasquez SergioGasquez added the status:awaiting-response Awaiting a response from the author label Apr 25, 2025
@SergioGasquez
Copy link
Member

Hi! I’m closing this issue due to inactivity and because we haven’t been able to reproduce it. If the problem persists, feel free to reopen the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:awaiting-response Awaiting a response from the author status:needs-investigation Issue requires further investigation
Projects
Archived in project
Development

No branches or pull requests

4 participants