It's a related issue to my previous question Error set-value failure in a Nordic sample. "west flash --erase
" command solves the problem for one time. It erases all data, but after the following pairing and rebooting I had the same errors in UART logs. I built and run Bluetooth: Peripheral HIDS keyboard on nRF52840 DK both using nRF Connect SDK v1.3.0 and master branch. After it, I connected to my board and bond using nRF Connect for Mobile on Android. And after it, I taped "Delete bond information".
*** Booting Zephyr OS build v2.3.0-rc1-ncs1 *** Starting Bluetooth Peripheral HIDS keyboard example I: 8 Sectors of 4096 bytes I: alloc wra: 0, ff0 I: data wra: 0, 0 I: HW Platform: Nordic Semiconductor (0x0002) I: HW Variant: nRF52x (0x0002) I: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 0 I: No ID address. App must call settings_load() Bluetooth initialized I: Identity: d6:c4:f9:a2:02:ad (random) I: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1 I: LMP: version 5.2 (0x0b) subver 0xffff NFC configuration start NFC configuration done Advertising successfully started Advertising continued Connected 6a:f9:ac:1d:99:3a (random) Passkey for 6a:f9:ac:1d:99:3a (random): 894308 Press Button 1 to confirm, Button 2 to reject. Numeric Match, conn 0x2000177c Security changed: 6a:f9:ac:1d:99:3a (random) level 4 Pairing completed: f8:c3:9e:2f:98:21 (public), bonded: 1 Key report send error: -13 Disconnected from f8:c3:9e:2f:98:21 (public) (reason 19)
Then I reset my board by "nrfjprog -r
" command. And I saw the following log in UART:
*** Booting Zephyr OS build v2.3.0-rc1-ncs1 *** Starting Bluetooth Peripheral HIDS keyboard example I: 8 Sectors of 4096 bytes I: alloc wra: 0, fa8 I: data wra: 0, a8 I: HW Platform: Nordic Semiconductor (0x0002) I: HW Variant: nRF52x (0x0002) I: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 0 I: No ID address. App must call settings_load() Bluetooth initialized E: set-value failure. key: bt/ccc/f8c39e2f98210 error(-2) I: Identity: d6:c4:f9:a2:02:ad (random) I: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1 I: LMP: version 5.2 (0x0b) subver 0xffff NFC configuration start NFC configuration done
You can see this error:
E: set-value failure. key: bt/ccc/f8c39e2f98210 error(-2)
Can someone explain to me how to correctly handle this error or where I can read about it?