Peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102

SEGGER Embedded Studio v7.30
Nordic nRF52840 DK
nRF5 SDK 17.1
DWM3000EVB
Qorvo Nearby Interaction Software package v3.1
iPhone 11 Pro, iOS 16.4.1

I get this error message every time I try to connect the smartphone with the board through the Qorvo NI Background application.

At first I used JFlashLite to program the board with the .hex file. It was working back then.
I also slightly modified the code from the software package with SEGGER Embedded Studio and programmed the board with the .hex file from in the output folder. Still, everything was fine.

Then I decided to program the board using the IDE by doing Target → Connect J-Link and Target → Download nRF52840DK-QANI-FreeRTOS.
Since then I get this error.

I saw this post at the forum from Nordic Semi: peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102 - Nordic Q&A - Nordic DevZone - Nordic DevZone

I tried erasing the chip through JFLashLite, SEGGER Embedded Studio and the Nordic Command Line Tool command “nrfutil --eraseall”, and afterwards programming the board via JFlashLite and the “original” .hex file again, but nothing helped so far…

Thank you for your help.

On iPhone delete the device from paired BLE devices (settings ble) see the list of devices - delete which is associated to this accessory

1 Like

That solved my problem.

Thank you for your help. :slight_smile: