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

NRF52 PM_EVT_ERROR_UNEXPECTED problem with connection

hello,

I used nrf52 and softdevice 2.0.1 and i have a big problem.

For some times the BT works perfectly but after i connect more then 4 devices for some reason the device return PM_EVT_ERROR_UNEXPECTED end stop working. The reset do not help i used sd_nvic_SystemReset() and NVIC_SystemReset() even i trya power off the BT module, but this error still happens

i received this error(PM_EVT_ERROR_UNEXPECTED) every time when i want to connect to a BT module to a phone.

Any ideas what cause this.

  • Thank you very much for your support!

    I want the peer information for all phones being paired to the BT module to be preserved between DFU OTA updates and powering off the module. (On the next connection attempt by a phone which was paired before, no pairing/passkey request to be performed. I want the phones which were paired before the DFU/power off to connect without a pairing request as it was before the DFU/power off.)

    How this could be achieved?

    I added the (0x73000), 0x74000), (0x75000) to the DFU_APP_DATA_RESERVED, but this did not help - after the DFU/power off the phones which were paired before, now on the next connection attempt were requesting a pairing/passkey confirmation.

    Please comment. Thank you in advance!

  • I need to look into how to keep bond information when doing DFU, but the bond information should still be there if you do a reset (power off->power on), are you saying that it is not?

  • The information is still there in the flash, but the phone still want a pairing request. (after DFU/power off)

    Where the bond information is store? if it is stored in the FDS, why it is update every time when connect a phone?

  • I'm not sure. What smart phone are you connecting to? You said you were using the ble_app_multirole_lesc example. Are you using LE Secure Connections(LESC)? Or legacy passkey pairing?

  • I am using LE Secure Connections(LESC).

1 2 3 4 5