This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK14: No longer get PM_EVT_PEER_DATA_UPDATE_SUCCEEDED

I'm upgrading an SDK13.1.0 project to SDK14.0.0. I'm using bonding and Peer Manager. nRF52832. Softdevice S132 5.0.0.

I no longer get any PM_EVT_PEER_DATA_UPDATE_SUCCEEDED events after creating a bond. I do get PM_EVT_CONN_SEC_SUCCEEDED events.

In my handler for PM_EVT_CONN_SEC_SUCCEEDED, I write some application-specific data for each bond. The call to pm_peer_data_app_data_store() succeeds.

I didn't register observers for Peer Manager or Flash Storage as it appears that those modules register themselves. Is there any additional configuration I need to do to FDS or Flash Storage in order to get them responding to events?

Parents
  • The pm_peer_data_app_data_store call is returning success. I'm actually getting a PM_EVT_PEER_DATA_UPDATE_SUCCEEDED event now. I may not have noticed before because my log buffer size was unintentionally reduced during the upgrade to SDK14. So the real reason my code isn't working is that the call to pm_peer_data_app_data_load() is returning all zeroes. So I'll make another question for that one.

Reply
  • The pm_peer_data_app_data_store call is returning success. I'm actually getting a PM_EVT_PEER_DATA_UPDATE_SUCCEEDED event now. I may not have noticed before because my log buffer size was unintentionally reduced during the upgrade to SDK14. So the real reason my code isn't working is that the call to pm_peer_data_app_data_load() is returning all zeroes. So I'll make another question for that one.

Children
No Data
Related