Concurrent usage of NV and settings on the same partition

Hi,

Is it safe to use NVS and Settings on the same partition at the same time (the same application, BLE is running, NVS can be called concurrently to eg. pairing process)?

Assumptions:

  • Code that is using NVS performs nvs_init() on the settings_storage partition
  • Code that is using NVS is not exceeding  NVS_NAMECNT_ID  id

Dominik,

Parents Reply
  • I'm happy to help and glad it worked on your side.

    One thing to be aware of, I think you need to run bt_enable() before using the nvs_fs settings struct. This is because it will indirectly populate the struct through bt_enable()-->bt_settings_init()-->settings_subsys_init()-->settings_backend_init().

    Not sure if you can answer anymore here, since the status of the ticket is set to "Verified"

Children
Related