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

samples: nfc: writable_ndef_msg: Migrate from NVS to ZMS for nRF54 #18043

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

maje-emb
Copy link
Contributor

These changes introduce the use of the ZMS file system instead of NVS for the nRF54 series.

Ref: NCSDK-29636

@maje-emb maje-emb requested a review from a team as a code owner October 21, 2024 12:20
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Oct 21, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Oct 21, 2024

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 6

Inputs:

Sources:

sdk-nrf: PR head: 6a4d39d89a2cd45daf44eea63b3fd45bbae6e35d

more details

sdk-nrf:

PR head: 6a4d39d89a2cd45daf44eea63b3fd45bbae6e35d
merge base: 214da5d26d11945473b56bf766e0854eb8ef3a63
target head (main): f332dfc0bd6cdd5f4e23f0ee71ed062f94593880
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (3)
samples
│  ├── nfc
│  │  ├── writable_ndef_msg
│  │  │  ├── boards
│  │  │  │  ├── nrf54h20dk_nrf54h20_cpuapp.conf
│  │  │  │  │ nrf54l15dk_nrf54l15_cpuapp.conf
│  │  │  ├── src
│  │  │  │  │ ndef_file_m.c

Outputs:

Toolchain

Version: 3dd8985b56
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:3dd8985b56_912848a074

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 66
  • ✅ Integration tests
    • ✅ test-fw-nrfconnect-nfc
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_nrf_provisioning
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

samples/nfc/writable_ndef_msg/src/ndef_file_m.c Outdated Show resolved Hide resolved
#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
Copy link
Contributor

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

Copy link
Contributor Author

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.

samples/nfc/writable_ndef_msg/src/ndef_file_m.c Outdated Show resolved Hide resolved
samples/nfc/writable_ndef_msg/src/ndef_file_m.c Outdated Show resolved Hide resolved
samples/nfc/writable_ndef_msg/src/ndef_file_m.c Outdated Show resolved Hide resolved
@miha-nordic miha-nordic added this to the 2.8.0 milestone Oct 22, 2024
@maje-emb maje-emb force-pushed the nfc_zms branch 3 times, most recently from 7c1dc81 to 472df58 Compare October 22, 2024 14:11
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]>
@miha-nordic
Copy link

Ready to merge

@rlubos rlubos merged commit e649abe into nrfconnect:main Oct 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants