-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
samples: nfc: writable_ndef_msg: Migrate from NVS to ZMS for nRF54 #18043
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 6a4d39d89a2cd45daf44eea63b3fd45bbae6e35d more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)
Outputs:ToolchainVersion: 3dd8985b56 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
#define NVS_SECTOR_SIZE (DT_PROP(DT_CHOSEN(zephyr_flash), erase_block_size)) | ||
#define NVS_SECTOR_COUNT 2 | ||
#define SECTOR_SIZE (DT_PROP(DT_CHOSEN(zephyr_flash), erase_block_size)) | ||
#define SECTOR_COUNT 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to check, erase_block_size in reality doesn't make sense for ZMS to choose the sector_size. And its value is 4K I guess for most of the boards.
Did you make the calculations to verify that 4000 bytes (4096 - header) are enough for your application ?
The recommended size should be at least double the size that you need for your data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sample stores a maximum of 1024 bytes.
7c1dc81
to
472df58
Compare
These changes introduce the use of the ZMS file system instead of NVS for the nRF54 series. Ref: NCSDK-29636 Signed-off-by: Marcin Jelinski <[email protected]>
Ready to merge |
These changes introduce the use of the ZMS file system instead of NVS for the nRF54 series.
Ref: NCSDK-29636