From 41f7097bae0f9e6a60e9507aeb84291f8a823474 Mon Sep 17 00:00:00 2001 From: Mateusz Kapala Date: Tue, 18 Feb 2025 11:04:27 +0100 Subject: [PATCH] samples: bluetooth: hids: Enable TF-M profile small for /ns target Enabled the CONFIG_TFM_PROFILE_TYPE_SMALL for the nrf5340dk/nrf5340/cpuapp/ns as it is required for the Bluetooth stack to work properly as it now uses the PSA crypto API. Jira: NCSDK-31777 Signed-off-by: Mateusz Kapala --- .../releases/release-notes-changelog.rst | 9 +++++++++ .../boards/nrf5340dk_nrf5340_cpuapp_ns.conf | 10 ++++++++++ .../boards/nrf5340dk_nrf5340_cpuapp_ns.conf | 10 ++++++++++ .../boards/nrf5340dk_nrf5340_cpuapp_ns.conf | 10 ++++++++++ 4 files changed, 39 insertions(+) create mode 100644 samples/bluetooth/central_hids/boards/nrf5340dk_nrf5340_cpuapp_ns.conf create mode 100644 samples/bluetooth/peripheral_hids_keyboard/boards/nrf5340dk_nrf5340_cpuapp_ns.conf create mode 100644 samples/bluetooth/peripheral_hids_mouse/boards/nrf5340dk_nrf5340_cpuapp_ns.conf diff --git a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst index 2b656f125b3e..c7e10c3b42dd 100644 --- a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst +++ b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst @@ -286,6 +286,15 @@ Bluetooth samples * :ref:`bluetooth_central_hids` * :ref:`peripheral_hids_keyboard` +* Updated the non-secure target ``nrf5340dk/nrf5340/cpuapp/ns`` configurations of the following samples to properly configure the TF-M profile instead of using the predefined minimal TF-M profile: + + * :ref:`bluetooth_central_hids` + * :ref:`peripheral_hids_keyboard` + * :ref:`peripheral_hids_mouse` + + This change results from the Bluetooth subsystem transition to the PSA cryptographic standard. + The Bluetooth stack can now use the PSA crypto API in the non-secure domain as all necessary TF-M partitions are configured properly. + * :ref:`direct_test_mode` sample: * Added loading of radio trims and a fix of a hardware errata for the nRF54H20 SoC to improve the RF performance. diff --git a/samples/bluetooth/central_hids/boards/nrf5340dk_nrf5340_cpuapp_ns.conf b/samples/bluetooth/central_hids/boards/nrf5340dk_nrf5340_cpuapp_ns.conf new file mode 100644 index 000000000000..ee264cdf998d --- /dev/null +++ b/samples/bluetooth/central_hids/boards/nrf5340dk_nrf5340_cpuapp_ns.conf @@ -0,0 +1,10 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# TF-M profile has to be properly configured to be able to run +# the Bluetooth stack which uses PSA crypto API as minimal TF-M +# profile cannot be used. +CONFIG_TFM_PROFILE_TYPE_SMALL=y diff --git a/samples/bluetooth/peripheral_hids_keyboard/boards/nrf5340dk_nrf5340_cpuapp_ns.conf b/samples/bluetooth/peripheral_hids_keyboard/boards/nrf5340dk_nrf5340_cpuapp_ns.conf new file mode 100644 index 000000000000..ee264cdf998d --- /dev/null +++ b/samples/bluetooth/peripheral_hids_keyboard/boards/nrf5340dk_nrf5340_cpuapp_ns.conf @@ -0,0 +1,10 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# TF-M profile has to be properly configured to be able to run +# the Bluetooth stack which uses PSA crypto API as minimal TF-M +# profile cannot be used. +CONFIG_TFM_PROFILE_TYPE_SMALL=y diff --git a/samples/bluetooth/peripheral_hids_mouse/boards/nrf5340dk_nrf5340_cpuapp_ns.conf b/samples/bluetooth/peripheral_hids_mouse/boards/nrf5340dk_nrf5340_cpuapp_ns.conf new file mode 100644 index 000000000000..ee264cdf998d --- /dev/null +++ b/samples/bluetooth/peripheral_hids_mouse/boards/nrf5340dk_nrf5340_cpuapp_ns.conf @@ -0,0 +1,10 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# TF-M profile has to be properly configured to be able to run +# the Bluetooth stack which uses PSA crypto API as minimal TF-M +# profile cannot be used. +CONFIG_TFM_PROFILE_TYPE_SMALL=y