error: Aborting due to Kconfig warnings when adding CONFIG_SECURE_BOOT

Hi,

I'm encountering an issue when i want to add the immutable bootloader (CONFIG_SECURE_BOOT).

The error showed are KConfig warning (see below).

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/Users/julf1/Bureau/Workspace/KFIR-3004/Repeteur/project/project_nrf52833
-- CMake version: 3.20.5
-- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf52833_repet
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Users/julf1/Bureau/Workspace/KFIR-3004/Repeteur/boards/arm/nrf52833_repet/nrf52833_repet.dts
-- Generated zephyr.dts: C:/Users/julf1/Bureau/Workspace/KFIR-3004/Repeteur/project/project_nrf52833/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Users/julf1/Bureau/Workspace/KFIR-3004/Repeteur/project/project_nrf52833/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Users/julf1/Bureau/Workspace/KFIR-3004/Repeteur/project/project_nrf52833/build/zephyr/dts.cmake
warning: BT_SCAN_UUID_CNT (defined at C:/ncs/v2.4.1/nrf\subsys\bluetooth\Kconfig.scan:42,
C:/ncs/v2.4.1/nrf\subsys\bluetooth\Kconfig.scan:81) was assigned the value '8' but got the value
'0'. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_SCAN_UUID_CNT and/or look up
BT_SCAN_UUID_CNT in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

It seems to me the issue come from the UART are not enable, so i tried to enable it on my bord config but the issue still here.

See the board.defconfig

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52833_QIAA=y
CONFIG_BOARD_NRF52833_REPET=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# Enable RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

and the prj.conf

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# nothing here
CONFIG_RTT_CONSOLE=n
CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_NEWLIB_LIBC=y
# BLE definition
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_MAX_CONN=1
CONFIG_BT_L2CAP_TX_BUF_COUNT=5
CONFIG_BT_DEVICE_NAME="KRepet"
CONFIG_BT_DEVICE_APPEARANCE=962
CONFIG_HEAP_MEM_POOL_SIZE=2048
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I tried on a nordic course and it worked well, so i think it come from my configuration.

I'm new to this SDK, so I took the classes then started my custom board.

I am using VSC and zephyr v2.4.1.

Best regards,

Julien