Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Half size of flash #2

Answered by khoih-prog
robzed asked this question in Q&A
Jan 15, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @robzed

Thanks for your interest in the library and your discussion, which help me to recheck the library using the latest ArduinoCore-mbed core v2.6.1.

The mentioned crash issue has been somehow fixed by the core (I don't have time to check how and where) and now I can use the correct Flash Address start without wasting any flash space.

For example

#define NANO33BLE_FLASH_SIZE         (1 * 1024 * 1024)
...
#define NANO33BLE_FS_START           (NANO33BLE_FLASH_SIZE - (NANO33BLE_FS_SIZE_KB * 1024))
...
static FlashIAPBlockDevice bd(NANO33BLE_FS_START, (NANO33BLE_FS_SIZE_KB * 1024));

That means if you're using only 64KB of Flash for LittleFS, the reserved flash will be only the last 64K…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@robzed
Comment options

@khoih-prog
Comment options

@khoih-prog
Comment options

Answer selected by robzed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants