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

pm_peer_new() causing "PM_EVT_ERROR_UNEXPECTED"

Hi,

I want to add new peer to peer manager using pm_peer_new().

pm_peer_id_t p1 = 0;

pm_peer_new(&p1,&bond_info,NULL);

there are no peers, so trying to add as peer_id 0. but this causing "PM_EVT_ERROR_UNEXPECTED" error in pm_evt_handler() function.

bond_info is filled with information.

Parents Reply
  • same log is coming. no <debug> information is printing even after setting PM_LOG_LEVEL  to 4

    <info> app_timer: RTC: initialized.
    <error> peer_manager_pds: Could not write data to flash. fds_record_{write|update}() returned 0x8601. peer_id: 0
    <error> peer_manager_pds: Could not delete peer data. fds_file_delete() returned 0x8601 for peer_id: 0
    <error> peer_manager_handler: Unexpected fatal error occurred: error: Unknown error code
    <error> peer_manager_handler: Asserting.
    <error> app: Fatal error

Children
Related