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

espressif32: incorrect offset calculation for spiffs #1178

Closed
EFeru opened this issue Aug 29, 2023 · 0 comments
Closed

espressif32: incorrect offset calculation for spiffs #1178

EFeru opened this issue Aug 29, 2023 · 0 comments

Comments

@EFeru
Copy link

EFeru commented Aug 29, 2023

Apparently if the Offset is left blank in partitions.csv, Platformio does not calculate corectly the offset making the ESP32 spiffs not possible to mount.

My platformio.ini

[env]
platform = espressif32@6.3.2
board = esp32dev
framework = espidf
platform_packages = framework-espidf
upload_speed = 921600
monitor_speed = 115200
monitor_raw = true
board_build.partitions = partitions.csv

partitions.csv

# Name,   Type, SubType, Offset, Size,    Flags
nvs,      data, nvs,     0x9000, 0x6000,
phy_init, data, phy,     0xf000, 0x1000,
factory,  app,  factory,       , 1500K,
storage,  data, spiffs,        , 2M,

Platformio decides to write to

Flash will be erased from 0x00190000 to 0x0038ffff...

However,

> hex(0xf000+0x1000 + (1500*1024))
0x187000

So, if I explicitly specify the offset, i.e.,:

# Name,   Type, SubType, Offset, Size,    Flags
nvs,      data, nvs,     0x9000, 0x6000,
phy_init, data, phy,     0xf000, 0x1000,
factory,  app,  factory,       , 1500K,
storage,  data, spiffs,  0x187000, 2M,

Then the spifss mounts successfuly. See more details on this topic at this link:
https://community.platformio.org/t/esp32-esp-idf-cannot-increase-spifss-and-app-memory/35496/7

Edit: I am not sure if there is an issue also for other offset calculations. Maybe is good to double check. Thanks for your efforts!

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

1 participant