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
  • Hi,

    Sorry for long idle time but we had to consider other options that could replace NVS. The discussion ends up with a statement that NV + Settings is what we really need to have in product. Please find attached reproduction app.


    Application flow is:
    - Initialize NV, do some read/write

    - Pair

    -Read/Write

    -Reboot

    After reboot there is no bounded device found.

    I wonder if NVS+Settings shopuld work using theirs own APIs or if I should provide custorm load/save implementation for settings that will use NVS that is initialized in sope of my application.

    Dominik,

    settings_nvs_ble.7z

Children
Related