From 51c1f52fb498c7689dcebf51b289c7564fad2f36 Mon Sep 17 00:00:00 2001 From: Marcin Date: Tue, 25 Feb 2025 16:24:26 +0100 Subject: [PATCH 1/3] Kconfig: Set main stack for devices using OBERON_CTR_DRBG_DRIVE Set the size of the main stack to 2048 to avoid stack overflow. Ref: NCSDK-31791 Ref: NCSDK-31792 Signed-off-by: Marcin Jelinski --- Kconfig.nrf | 1 + 1 file changed, 1 insertion(+) diff --git a/Kconfig.nrf b/Kconfig.nrf index f6d27487f8c9..c5c135a9666c 100644 --- a/Kconfig.nrf +++ b/Kconfig.nrf @@ -62,6 +62,7 @@ config NET_SOCKETS_OFFLOAD_TLS config MAIN_STACK_SIZE default 3584 if PSA_NEED_CRACEN_CTR_DRBG_DRIVER && !BUILD_WITH_TFM default 3584 if (SOC_NRF54H20_CPUAPP || SOC_NRF54H20_CPURAD) + default 2048 if PSA_NEED_OBERON_CTR_DRBG_DRIVER && !BUILD_WITH_TFM default 2048 if ZTEST default 2048 if ENTROPY_CC3XX && !BUILD_WITH_TFM From beba36e6666f1cd9821cca79d2d576a2c737227b Mon Sep 17 00:00:00 2001 From: Marcin Date: Tue, 25 Feb 2025 16:44:44 +0100 Subject: [PATCH 2/3] samples: bluetooth: Remove the main stack configuration Removed main stack configurations to prevent overwriting by PSA crypto. Ref: NCSDK-31791 Ref: NCSDK-31792 Signed-off-by: Marcin Jelinski --- .../boards/nrf54l15dk_nrf54l15_cpuapp.conf | 7 ------- samples/bluetooth/central_and_peripheral_hr/prj.conf | 1 - samples/bluetooth/central_bas/prj.conf | 2 -- .../peripheral_bms/boards/nrf54l15dk_nrf54l15_cpuapp.conf | 7 ------- samples/bluetooth/peripheral_bms/prj.conf | 1 - .../peripheral_cgms/boards/nrf54l15dk_nrf54l15_cpuapp.conf | 7 ------- samples/bluetooth/peripheral_cgms/prj.conf | 1 - .../peripheral_lbs/boards/nrf54l15dk_nrf54l05_cpuapp.conf | 7 ------- .../peripheral_lbs/boards/nrf54l15dk_nrf54l10_cpuapp.conf | 7 ------- .../peripheral_lbs/boards/nrf54l15dk_nrf54l15_cpuapp.conf | 7 ------- samples/bluetooth/peripheral_lbs/prj.conf | 1 - .../boards/nrf54l15dk_nrf54l15_cpuapp.conf | 7 ------- samples/bluetooth/peripheral_status/prj.conf | 1 - 13 files changed, 56 deletions(-) delete mode 100644 samples/bluetooth/central_and_peripheral_hr/boards/nrf54l15dk_nrf54l15_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_bms/boards/nrf54l15dk_nrf54l15_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_cgms/boards/nrf54l15dk_nrf54l15_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l05_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l10_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l15_cpuapp.conf delete mode 100644 samples/bluetooth/peripheral_status/boards/nrf54l15dk_nrf54l15_cpuapp.conf diff --git a/samples/bluetooth/central_and_peripheral_hr/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/bluetooth/central_and_peripheral_hr/boards/nrf54l15dk_nrf54l15_cpuapp.conf deleted file mode 100644 index 06c0f94b6568..000000000000 --- a/samples/bluetooth/central_and_peripheral_hr/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=3584 diff --git a/samples/bluetooth/central_and_peripheral_hr/prj.conf b/samples/bluetooth/central_and_peripheral_hr/prj.conf index df8c2487680b..dbf14acc5645 100644 --- a/samples/bluetooth/central_and_peripheral_hr/prj.conf +++ b/samples/bluetooth/central_and_peripheral_hr/prj.conf @@ -34,6 +34,5 @@ CONFIG_FLASH_MAP=y CONFIG_SETTINGS=y CONFIG_HEAP_MEM_POOL_SIZE=1024 -CONFIG_MAIN_STACK_SIZE=2048 CONFIG_DK_LIBRARY=y diff --git a/samples/bluetooth/central_bas/prj.conf b/samples/bluetooth/central_bas/prj.conf index fb7ff8a6674e..3deae57b598a 100644 --- a/samples/bluetooth/central_bas/prj.conf +++ b/samples/bluetooth/central_bas/prj.conf @@ -24,5 +24,3 @@ CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_DK_LIBRARY=y - -CONFIG_MAIN_STACK_SIZE=2048 diff --git a/samples/bluetooth/peripheral_bms/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/bluetooth/peripheral_bms/boards/nrf54l15dk_nrf54l15_cpuapp.conf deleted file mode 100644 index 06c0f94b6568..000000000000 --- a/samples/bluetooth/peripheral_bms/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=3584 diff --git a/samples/bluetooth/peripheral_bms/prj.conf b/samples/bluetooth/peripheral_bms/prj.conf index 24ffebaf386d..3be4aafc12b5 100644 --- a/samples/bluetooth/peripheral_bms/prj.conf +++ b/samples/bluetooth/peripheral_bms/prj.conf @@ -6,7 +6,6 @@ CONFIG_NCS_SAMPLES_DEFAULTS=y CONFIG_DK_LIBRARY=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 -CONFIG_MAIN_STACK_SIZE=2048 CONFIG_BT=y CONFIG_BT_PERIPHERAL=y diff --git a/samples/bluetooth/peripheral_cgms/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/bluetooth/peripheral_cgms/boards/nrf54l15dk_nrf54l15_cpuapp.conf deleted file mode 100644 index 06c0f94b6568..000000000000 --- a/samples/bluetooth/peripheral_cgms/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=3584 diff --git a/samples/bluetooth/peripheral_cgms/prj.conf b/samples/bluetooth/peripheral_cgms/prj.conf index 603427cb8ece..e7ca20ca3101 100644 --- a/samples/bluetooth/peripheral_cgms/prj.conf +++ b/samples/bluetooth/peripheral_cgms/prj.conf @@ -23,4 +23,3 @@ CONFIG_LOG=y CONFIG_BT_CGMS_LOG_LEVEL_INF=y CONFIG_SFLOAT=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1280 -CONFIG_MAIN_STACK_SIZE=2048 diff --git a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l05_cpuapp.conf b/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l05_cpuapp.conf deleted file mode 100644 index 5b453c66f15c..000000000000 --- a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l05_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=4096 diff --git a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l10_cpuapp.conf b/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l10_cpuapp.conf deleted file mode 100644 index 5b453c66f15c..000000000000 --- a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l10_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=4096 diff --git a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l15_cpuapp.conf deleted file mode 100644 index 5b453c66f15c..000000000000 --- a/samples/bluetooth/peripheral_lbs/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=4096 diff --git a/samples/bluetooth/peripheral_lbs/prj.conf b/samples/bluetooth/peripheral_lbs/prj.conf index 15c07354db51..63a681872413 100644 --- a/samples/bluetooth/peripheral_lbs/prj.conf +++ b/samples/bluetooth/peripheral_lbs/prj.conf @@ -15,4 +15,3 @@ CONFIG_BT_LBS_POLL_BUTTON=y CONFIG_DK_LIBRARY=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 -CONFIG_MAIN_STACK_SIZE=2048 diff --git a/samples/bluetooth/peripheral_status/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/bluetooth/peripheral_status/boards/nrf54l15dk_nrf54l15_cpuapp.conf deleted file mode 100644 index 06c0f94b6568..000000000000 --- a/samples/bluetooth/peripheral_status/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_MAIN_STACK_SIZE=3584 diff --git a/samples/bluetooth/peripheral_status/prj.conf b/samples/bluetooth/peripheral_status/prj.conf index 2f7071373343..3602c3a22d43 100644 --- a/samples/bluetooth/peripheral_status/prj.conf +++ b/samples/bluetooth/peripheral_status/prj.conf @@ -14,4 +14,3 @@ CONFIG_BT_NSMS=y CONFIG_DK_LIBRARY=y CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 -CONFIG_MAIN_STACK_SIZE=2048 From 891e5ded58800bf6ab49cfedce1639c65fde24e0 Mon Sep 17 00:00:00 2001 From: Marcin Jelinski Date: Wed, 26 Feb 2025 13:14:15 +0100 Subject: [PATCH 3/3] scripts: quarantine: add sample.bluetooth.direction_finding_central_nrf sample.bluetooth.direction_finding_central_nrf Signed-off-by: Marcin Jelinski --- scripts/quarantine.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/quarantine.yaml b/scripts/quarantine.yaml index d2110ef40c23..77cbb1894e64 100644 --- a/scripts/quarantine.yaml +++ b/scripts/quarantine.yaml @@ -59,3 +59,9 @@ platforms: - nrf7002dk/nrf5340/cpuapp comment: "https://nordicsemi.atlassian.net/browse/NCSDK-31774" + +- scenarios: + - sample.bluetooth.direction_finding_central_nrf + platforms: + - nrf52833dk/nrf52820 + comment: "https://nordicsemi.atlassian.net/browse/NCSDK-32042"