XIAO SEEED NRF52840 nvs Access

Hello,

Are there any resources for accessing the XIAO NRF52’s NVS (non-volatile storage) in Nordic Connect SDK? I’ve tried to load Nordic’s NVS sample onto it but it makes the board unresponsive (it doesn’t show up in device manager anymore so I can’t access it in terminal to see if it is working or not). Reloading the blink sample fixes it so it isn’t detrimental.

I’ve just taken the sample and made a build configuration for the BLE SENSE board. I’m not sure if there’s anything extra I should be changing to make this work.

I’d just like to save ~8 hex digits across a power cycle if possible, nothing too fancy.

Thank you in advance!

Hi there,

Yes there is posts and examples here for things like the boot counter (saves the number in NVS and reads it on reboot) I think that’s what you want. I just posted and example in another thread that includes it, Have a look at that code and see if it’s a FIT! :+1:

HTH
GL :slight_smile: PJ :v:

What was the build configuration in NRF_SDK You can’t use the system build to make it , The bootloader in Not setup for it. :crossed_fingers:

Hi PJ,

I appreciate the reply.

Would you be able to link any examples? I can’t find them on your profile unfortunately.

The build config doesn’t use sysbuild

Is a devicetree overlay or any other changes to the zephyr/samples/subsys/nvs script needed?

Thanks

Hi there,

So the method is what matters with this , check out the video on Dev academy too,But you generate the config but not build it(check-mark)
Open the Kconfig and select the bootloader options and you still need to create a partition configuration . pm_static.yml file for the flash as it relates to the bootloader.If you have the DK board the examples lay it out and pretty sure there is a MCUBoot setting or demo too. Between the Kconfig and build config it just works…

The examples I was referring to , are the boot counter Examples where it takes advantage of the RTC NVM , use the search term "boot counter " to see those and others.:+1:

They are Arduino Examples but the principle is the same in NRF_SDK.

HTH
GL :slight_smile: PJ :v: