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

Error set-value failure in a Nordic sample

When I built and run your example Bluetooth: Peripheral HIDS keyboard and I saw the following errors in logs:
E: set-value failure. key: bt/ccc/283926aaa86c0 error(-2)
E: set-value failure. key: bt/ccc/2047da12f4e80 error(-2)

*** Booting Zephyr OS build v2.3.0-rc1-ncs1-1437-g9c6523e0349e  ***
Starting Bluetooth Peripheral HIDS keyboard example
I: 8 Sectors of 4096 bytes
I: alloc wra: 0, cc0
I: data wra: 0, 8f4
I: HW Platform: Nordic Semiconductor (0x0002)
I: HW Variant: nRF52x (0x0002)
I: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 99
I: No ID address. App must call settings_load()
Bluetooth initialized
E: set-value failure. key: bt/ccc/283926aaa86c0 error(-2)
E: set-value failure. key: bt/ccc/2047da12f4e80 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

I haven't got any ideas about their meaning and I couldn't find them on the Internet, so I ask you to clarify their meaning and a way how to fix them. Though it seems that everything works properly despite these errors.

  • Hello, 

    What board are you testing the example on? And what version of NCS are you using?

    Kind regards,
    Øyvind

  • Thanks for your reply! It seems that I fixed this problem by erasing the flash storage on a board:

    west flash --erase

Related