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

Crash after calling pm_conn_secure()

I want to add ANCS client to my code. Like in the ble_app_ancs_c example, I start a timer after BLE_GAP_EVT_CONNECTED. The timer handler calls pm_conn_secure() if the connection is not secured. The pm_conn_secure() function returns NRF_SUCCESS but there is a crash just after that. There is SIGTRAP break at address 0x24356, previous address on call stack is 0xffffffe0 (Eclipse shows this, on the other hand the value of link register LR is 0xffffffe1 - Return to Handler mode, exception return uses floating-point-state from MSP and execution uses MSP after return). It happens every time a connection is made. Why? How can I debug it? Is this softdevice crashing?

Related