nrf_sdh_enable_request() fails with ERROR 8 [NRF_ERROR_INVALID_STATE]

Hi,


I tried to add a pairing PIN code feature for connection with a central device (based on the reference: Migrating to Peer Manager) in the ble_app_uart example of the nrf5_sdk_17.1.0_ddde560 SDK, using the nRF52840-DK.

However, the following error occurred. I have already set the following in sdk_config.h:

#define NRF_SDH_ENABLED 1
#define NRF_SDH_BLE_ENABLED 1

Error message from nrf_sdh_enable_request():

<info> app_timer: RTC: initialized. <error> app: ERROR 8 [NRF_ERROR_INVALID_STATE] at ...\nrf5_sdk_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart\main.c:473 PC at: 0x00027B41 <error> app: End of error report

Please help me understand and define the cause of this error. Thank you.

Related