-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
littlefs and coredump partition write erase issue (IDFGH-5572) #7295
Comments
if i put the coredump in the last partition i will have this issue:
|
Partitions have to be sector aligned (0x1000) |
i have figure out workaround for this issue:
@negativekelvin , not sure if i miss the alignment. it should show compilation error somehow if that was the issue. if i understand correctly alignment offset only applied to nvs and app partition only. thanks! |
No, anything you want to be able to erase has to be aligned to sector erase boundaries After you get the coredump you should be able to check it's actual binary size |
sorry, I couldn't get what you mean. the fs get the erase address automatically and try to perform erase to that address. not sure if sector boundaries alignment needed for that. the issue is:
|
Think about it. If you tried to erase the coredump sector at 0x23f000-0x23ffff you would also erase the first part of the spiffs partition. So it will fail. |
ESP-IDF v4.3.0
issue:
littlefs stop working when coredump partition added in csv. littlefs not able to erase and write if coredump partition added in csv.
how to replicate:
add coredump partition details in csv.
details:
littlefs not able to do write and erase operation as below api return error if coredump partition added in csv
example api:
sample sketch:
error:
E (00:00:00.654) esp_littlefs_api: int_storage,
E (00:00:00.706) esp_littlefs_api: failed to erase addr 0009b000, size 00001000, err 258
[ 730][E][vfs_api.cpp:270] VFSFileImpl(): fopen(/spiffs/data/fs.txt) failed
partition:
thanks!
The text was updated successfully, but these errors were encountered: