SDK 14.2
i just added peer manager to an existing project, and peer manager seems to be working correctly. pm_peer_data_app_data_store() is successfully called to save addition info to bonds and all bonds persist as they should. however DFU no longer works.
After DFU completes and reboots into the app, fds_init() returns 11 FDS_ERR_NO_PAGES.
I have been using FDS to save data for some time and never had any issues with FDS before. Prior to adding peer manager the boot loader was working well.
Here are the FDS settings from sdkconfig.h
#define FDS_VIRTUAL_PAGES 50
#define FDS_VIRTUAL_PAGE_SIZE 1024
#define FDS_BACKEND 2
The boot loader is not using bonds.
It looks like calling both fds_init() and peer manger causes two FDS_EVT_INIT events to be sent to the fds_evt_handler() in the working case (before DFU).
After DFU FDS never gets that far.
Is there a preferred order of initialization for fds_init() and peer manger init?
Is there a graceful way to recover from FDS_ERR_NO_PAGES?
Why does FDS not work after a DFU?
Thanks