keep Settings Data and existing bonds during OTA update - nRF Connect SDK

Hi,

SoC: nrf52840
Environment: nRF Connect SDK v2.4.1

When performing OTA app upgrade all settings and bonds are gone.
Settings subsystem seems to be working fine. Settings are corrently loaded at startup and data is preserved during MCU reboot. Data is also preserved when flashing app via SWD.
Is there any configuration that I am missing, which can preserve at least Settings during OTA?

prj.conf:
# Settings
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y

#MCUMGR
CONFIG_MCUMGR=y
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_SECURE_BOOT=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y

code:
settings_subsys_init();
settings_load();

Regards,
Simon

Related