Hi,
I'm currently using “light_switch” to enable BLE NUS, but every time the device reboots it needs to be re-paired, I checked the serial logs and found that the pairing information failed to be saved.The SDK is NCS2.8 add-on.Please help to see how I can solve this problem.Tanks.
The error log is as follows:
E: Failed to store CCCs (err -2)
E: Failed to save keys (err -2)
I: Pairing completed: 48:3F:E9:54:EF:AA (public), bonded: 1
E: Failed to store CCCs (err -2)
E: Failed to store Client Features (err -2)
E: failed to store SC (err -2)
E: Failed to store CCCs (err -2)
# # Copyright (c) 2024 Nordic Semiconductor ASA # # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause # # BLE configuration CONFIG_BT=y CONFIG_BT_SMP=y CONFIG_BT_PERIPHERAL=y CONFIG_BT_DEVICE_NAME="Zigbee_Switch" CONFIG_BT_DEVICE_APPEARANCE=833 CONFIG_BT_MAX_CONN=1 CONFIG_BT_MAX_PAIRED=1 CONFIG_BT_PHY_UPDATE=n # Enable the NUS service CONFIG_BT_NUS=y # Enable bonding CONFIG_SETTINGS=y CONFIG_BT_SETTINGS=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_SETTINGS_NVS=y CONFIG_PM=y CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x2000