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.

Parents
  • I spend some more time investigating the code and I noticed strange data in the flash area protected by the bootloader (DFU_APP_DATA_RESERVED(0x76000)). I see that every time when I try to connect a phone, starting from address 0x76C00 strange records appear. These records are about 32 bytes long, look very similar and 1byte of them seems to be incremented. When these records reach address 0x77C00 the errors DB_EVT_RAW_STORE_FAILED and PM_EVT_PEER_DATA_UPDATE_FAILED are triggered.

    I have also noticed that the module pstorage is using this flash area(based on the macros in pstorage_platform.h). Please explain what is this data and why it is written there?

    How we can solve this issue, because I can not recover the BT module after these errors appear?

Reply
  • I spend some more time investigating the code and I noticed strange data in the flash area protected by the bootloader (DFU_APP_DATA_RESERVED(0x76000)). I see that every time when I try to connect a phone, starting from address 0x76C00 strange records appear. These records are about 32 bytes long, look very similar and 1byte of them seems to be incremented. When these records reach address 0x77C00 the errors DB_EVT_RAW_STORE_FAILED and PM_EVT_PEER_DATA_UPDATE_FAILED are triggered.

    I have also noticed that the module pstorage is using this flash area(based on the macros in pstorage_platform.h). Please explain what is this data and why it is written there?

    How we can solve this issue, because I can not recover the BT module after these errors appear?

Children
No Data
Related