Hello,
I'm working with a nrf51822, SoftDevice S120 v2.0 and SDK v9.0 platform.
Specifically using it a Central role to connect to a Blood Pressure peripheral.
When my central connects to the peripheral, it requests a DM_EVT_SECURITY_SETUP.
I then call dm_security_setup_req() and within this device_instance_allocate() and initiate_security_request() are both a success and there are no err_codes in any steps.
After this I receive DM_EVT_SECURITY_SETUP_COMPLETE but the event_result of this event carries the erro_code 0x083 (MUTEX_UNLOCK_FAILED?)
I believe this is thrown due to some issue in the DM_MUTEX_UNLOCK(); line within dm_security_setup_req()
Because of the error I cant recall dm_security_setup_req() to encrypt the link.
Any reason this might be happening?
Thanks very much. Mark