diff --git a/CMakeLists.txt b/CMakeLists.txt index a656e53089d7..aa5535e553a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,9 +35,3 @@ add_subdirectory(subsys) add_subdirectory(modules) add_subdirectory(drivers) add_subdirectory(tests) - -# TEMPHACK: Add a source file generated by cmake/sysbuild/periphconf_migrate.cmake -if(SYSBUILD AND CONFIG_NRF_HALTIUM_GENERATE_UICR) - file(TOUCH ${APPLICATION_BINARY_DIR}/../periphconf_migrated.c) - zephyr_sources(${APPLICATION_BINARY_DIR}/../periphconf_migrated.c) -endif() diff --git a/applications/connectivity_bridge/prj.conf b/applications/connectivity_bridge/prj.conf index 0690f08e09e9..c53cf031329b 100644 --- a/applications/connectivity_bridge/prj.conf +++ b/applications/connectivity_bridge/prj.conf @@ -22,6 +22,8 @@ CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor" CONFIG_USB_DEVICE_SN="THINGY91 12PLACEHLDRS" # This is overridden at runtime CONFIG_USB_COMPOSITE_DEVICE=y CONFIG_USB_CDC_ACM_RINGBUF_SIZE=16384 +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y # Disk and file system CONFIG_DISK_ACCESS=y diff --git a/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91_nrf52840.conf b/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91_nrf52840.conf index c0d18340141e..632db7c1c51a 100644 --- a/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91_nrf52840.conf +++ b/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91_nrf52840.conf @@ -32,3 +32,5 @@ CONFIG_USB_MASS_STORAGE=n CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor" CONFIG_USB_DEVICE_VID=0x1915 CONFIG_USB_DEVICE_PID=0x520F +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf b/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf index b2d427d17a8b..4f4c1cf03c5a 100644 --- a/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf +++ b/applications/connectivity_bridge/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf @@ -33,6 +33,8 @@ CONFIG_USB_MASS_STORAGE=n CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor" CONFIG_USB_DEVICE_VID=0x1915 CONFIG_USB_DEVICE_PID=0x910A +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_BOOT_MODE=y diff --git a/applications/connectivity_bridge/sysbuild/mcuboot/prj.conf b/applications/connectivity_bridge/sysbuild/mcuboot/prj.conf index de88dbd229eb..500ba4225452 100644 --- a/applications/connectivity_bridge/sysbuild/mcuboot/prj.conf +++ b/applications/connectivity_bridge/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/applications/machine_learning/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/applications/machine_learning/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index ead9d77c741c..f19e2762bade 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -12,7 +12,6 @@ CONFIG_BT_BUF_ACL_RX_SIZE=502 CONFIG_BT_MAX_CONN=6 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y # Improve debugging experience by disabling reset on fatal error diff --git a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf index 3da9ff366580..673b8b98e4d9 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf @@ -5,7 +5,6 @@ # CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y # Improve debugging experience by disabling reset on fatal error diff --git a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns.conf b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns.conf index 3da9ff366580..673b8b98e4d9 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns.conf @@ -5,7 +5,6 @@ # CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y # Improve debugging experience by disabling reset on fatal error diff --git a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns_rtt.conf b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns_rtt.conf index 3da9ff366580..673b8b98e4d9 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns_rtt.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_ns_rtt.conf @@ -5,7 +5,6 @@ # CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y # Improve debugging experience by disabling reset on fatal error diff --git a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_rtt.conf b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_rtt.conf index 3da9ff366580..673b8b98e4d9 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_rtt.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet_rtt.conf @@ -5,7 +5,6 @@ # CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y # Improve debugging experience by disabling reset on fatal error diff --git a/applications/machine_learning/sysbuild/ipc_radio/prj.conf b/applications/machine_learning/sysbuild/ipc_radio/prj.conf index 2a081a6896e0..a57e1eccccb2 100644 --- a/applications/machine_learning/sysbuild/ipc_radio/prj.conf +++ b/applications/machine_learning/sysbuild/ipc_radio/prj.conf @@ -16,7 +16,6 @@ CONFIG_BT_HCI_RAW=y CONFIG_BT_CTLR_ASSERT_HANDLER=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/applications/machine_learning/sysbuild/mcuboot/prj.conf b/applications/machine_learning/sysbuild/mcuboot/prj.conf index 1bdee3845ce4..49069c128766 100644 --- a/applications/machine_learning/sysbuild/mcuboot/prj.conf +++ b/applications/machine_learning/sysbuild/mcuboot/prj.conf @@ -18,18 +18,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/applications/matter_bridge/sysbuild/ipc_radio/prj.conf b/applications/matter_bridge/sysbuild/ipc_radio/prj.conf index dedd0c2f61a6..f73b695a909a 100644 --- a/applications/matter_bridge/sysbuild/ipc_radio/prj.conf +++ b/applications/matter_bridge/sysbuild/ipc_radio/prj.conf @@ -29,7 +29,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/applications/matter_weather_station/prj.conf b/applications/matter_weather_station/prj.conf index 9a1e8eba45be..20230ea30763 100644 --- a/applications/matter_weather_station/prj.conf +++ b/applications/matter_weather_station/prj.conf @@ -73,10 +73,11 @@ CONFIG_SHELL=y CONFIG_SHELL_LOG_BACKEND=y # Configure USB CDC ACM -CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n -CONFIG_USB_DEVICE_PRODUCT="Thingy:53 Matter Weather" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x530D +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Thingy:53 Matter Weather" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x530D CONFIG_UART_LINE_CTRL=y CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51 diff --git a/applications/matter_weather_station/sysbuild/ipc_radio/prj.conf b/applications/matter_weather_station/sysbuild/ipc_radio/prj.conf index cd698e9029a5..92716ca1df9e 100644 --- a/applications/matter_weather_station/sysbuild/ipc_radio/prj.conf +++ b/applications/matter_weather_station/sysbuild/ipc_radio/prj.conf @@ -35,7 +35,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/applications/nrf5340_audio/prj.conf b/applications/nrf5340_audio/prj.conf index 627d25ffa1a1..b4b6d7bcc7e0 100644 --- a/applications/nrf5340_audio/prj.conf +++ b/applications/nrf5340_audio/prj.conf @@ -11,7 +11,6 @@ CONFIG_SAMPLE_RATE_CONVERTER_FILTER_SIMPLE=y # General CONFIG_DEBUG=y -CONFIG_DEBUG_INFO=y CONFIG_ASSERT=y CONFIG_STACK_USAGE=y CONFIG_THREAD_RUNTIME_STATS=y @@ -76,3 +75,6 @@ CONFIG_BT_HCI_CORE_LOG_LEVEL_WRN=y CONFIG_BT_ISO_TX_BUF_COUNT=3 CONFIG_BT_BUF_ACL_TX_COUNT=3 CONFIG_BT_ATT_TX_COUNT=12 + +# Suppress the USB deprecation warning +CONFIG_DEPRECATION_TEST=y diff --git a/applications/nrf5340_audio/prj_fota.conf b/applications/nrf5340_audio/prj_fota.conf index db5980075acf..4a6b322fb485 100644 --- a/applications/nrf5340_audio/prj_fota.conf +++ b/applications/nrf5340_audio/prj_fota.conf @@ -12,7 +12,6 @@ CONFIG_SAMPLE_RATE_CONVERTER_FILTER_SIMPLE=y # General CONFIG_DEBUG=y -CONFIG_DEBUG_INFO=y CONFIG_ASSERT=y CONFIG_STACK_USAGE=y CONFIG_THREAD_RUNTIME_STATS=y @@ -87,3 +86,7 @@ CONFIG_SPI_NOR_SFDP_DEVICETREE=y CONFIG_BT_ISO_TX_BUF_COUNT=3 CONFIG_BT_BUF_ACL_TX_COUNT=3 CONFIG_BT_ATT_TX_COUNT=12 + + +# Suppress the USB deprecation warning +CONFIG_DEPRECATION_TEST=y diff --git a/applications/nrf5340_audio/prj_release.conf b/applications/nrf5340_audio/prj_release.conf index 9065eedef8cd..5685125f9d68 100644 --- a/applications/nrf5340_audio/prj_release.conf +++ b/applications/nrf5340_audio/prj_release.conf @@ -38,3 +38,7 @@ CONFIG_BT_ATT_TX_COUNT=12 # USB VID and PID must be changed before production. # CONFIG_USB_DEVICE_VID=0x1915 # CONFIG_USB_DEVICE_PID=0x530A + + +# Suppress the USB deprecation warning +CONFIG_DEPRECATION_TEST=y diff --git a/applications/nrf5340_audio/src/bluetooth/bt_stream/broadcast/broadcast_sink.c b/applications/nrf5340_audio/src/bluetooth/bt_stream/broadcast/broadcast_sink.c index c4df01001148..ff05dee870c9 100644 --- a/applications/nrf5340_audio/src/bluetooth/bt_stream/broadcast/broadcast_sink.c +++ b/applications/nrf5340_audio/src/bluetooth/bt_stream/broadcast/broadcast_sink.c @@ -562,7 +562,7 @@ static bool is_any_active_streams(void) { for (int i = 0; i < ARRAY_SIZE(audio_streams); i++) { if (audio_streams[i].ep != NULL && - audio_streams[i].ep->status.state == BT_BAP_EP_STATE_STREAMING) { + audio_streams[i].ep->state == BT_BAP_EP_STATE_STREAMING) { return true; } } diff --git a/applications/nrf5340_audio/sysbuild/mcuboot/prj_fota.conf b/applications/nrf5340_audio/sysbuild/mcuboot/prj_fota.conf index ac2e241ee039..fa7c7c8d30c7 100644 --- a/applications/nrf5340_audio/sysbuild/mcuboot/prj_fota.conf +++ b/applications/nrf5340_audio/sysbuild/mcuboot/prj_fota.conf @@ -16,18 +16,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/applications/nrf_desktop/board_configuration.rst b/applications/nrf_desktop/board_configuration.rst index 350630123471..a9a6834f7803 100644 --- a/applications/nrf_desktop/board_configuration.rst +++ b/applications/nrf_desktop/board_configuration.rst @@ -93,6 +93,9 @@ nRF52840 USB Dongle (``nrf52840dongle/nrf52840``) and nRF52833 USB Dongle (``nrf * Bluetooth uses Nordic Semiconductor's SoftDevice link layer and is configured to act as a central. Input data comes from Bluetooth and is retransmitted to USB. * The configuration with the B0 bootloader is set as default for the ``nrf52840dongle/nrf52840`` board and with the MCUboot bootloader is set as default for the ``nrf52833dongle`` board. + * The nRF5 MBR partition (``nrf5_mbr``) added by the ``nrf52840dongle/nrf52840`` board is not used. + It is statically defined with address and size both set to zero to prevent Partition Manager from trying to place it dynamically. + The application did not switch to the ``bare`` board variant to keep backwards compatibility. nRF52820 USB Dongle (``nrf52820dongle``) * The application is configured to act as a dongle that forwards data from both mouse and keyboard. diff --git a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/images/mcuboot/prj_release.conf b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/images/mcuboot/prj_release.conf index e16b53d51af4..dec1e07e75ad 100644 --- a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/images/mcuboot/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/images/mcuboot/prj_release.conf @@ -28,6 +28,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj.conf b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj.conf index 83178bc5fb80..a88c80af742e 100644 --- a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj_release.conf b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj_release.conf index 9666cae293b0..b6690c803b2c 100644 --- a/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52820dongle_nrf52820/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/images/mcuboot/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/images/mcuboot/prj_release.conf index 39f005410814..4dbbd9f04dd8 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/images/mcuboot/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/images/mcuboot/prj_release.conf @@ -28,6 +28,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj.conf index 44b835e9dd86..19f98af6ed06 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj_release.conf index 887ba5276915..715df297c3ab 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52820/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj.conf index 06a1943837ef..83c2bdf94ea0 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj.conf @@ -30,6 +30,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_dongle_small.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_dongle_small.conf index 2d34d45633e8..fdde332d894f 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_dongle_small.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_dongle_small.conf @@ -32,6 +32,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_release.conf index c3eb39e83b74..1d6b40690b8d 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/images/mcuboot/prj_release.conf @@ -32,6 +32,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj.conf index 17361fb23b3b..914f7350b58e 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_dongle_small.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_dongle_small.conf index 4992e79e6737..50ab448d962b 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_dongle_small.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_dongle_small.conf @@ -25,6 +25,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_release.conf index cd8f188732e1..b098a6d326ec 100644 --- a/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dk_nrf52833/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj.conf b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj.conf index 06a1943837ef..83c2bdf94ea0 100644 --- a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj.conf @@ -30,6 +30,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj_release.conf index 26ebe2e7da69..2a846e3a3ea0 100644 --- a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/images/mcuboot/prj_release.conf @@ -30,6 +30,9 @@ CONFIG_GPIO=y CONFIG_GPIO_NRFX_INTERRUPT=n CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y +# The MCUboot serial recovery over USB CDC ACM still uses USB legacy stack. +# Disable deprecation warnings to workaround build failures in CI. +CONFIG_DEPRECATION_TEST=y CONFIG_BOOT_SERIAL_UART=n # Required by USB diff --git a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj.conf b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj.conf index 283a59cefe05..055949a7f8de 100644 --- a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj_release.conf b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj_release.conf index 5b53e2af9529..1c0391c3ec75 100644 --- a/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52833dongle_nrf52833/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52E1 CONFIG_DESKTOP_BLE_PEER_CONTROL=y diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf index b75d1cf51894..9f5646173785 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf @@ -34,6 +34,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_dongle.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_dongle.conf index cadc50aea5d2..52f707e7fb47 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_dongle.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_dongle.conf @@ -24,6 +24,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_BOOT_INTERFACE_KEYBOARD=y diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_fast_pair.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_fast_pair.conf index 5549bd9816c0..caa9ce34f619 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_fast_pair.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_fast_pair.conf @@ -43,6 +43,8 @@ CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y CONFIG_CAF_INIT_LOG_BLE_SMP_TRANSFER_EVENTS=n CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y # Align advertising intervals with Fast Pair specification. CONFIG_CAF_BLE_ADV_FAST_INT_MIN=0x0040 diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_keyboard.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_keyboard.conf index 49355389ea0a..6a8dc518aeed 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_keyboard.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_keyboard.conf @@ -41,6 +41,8 @@ CONFIG_DESKTOP_BUTTONS_SIM_LOOP_FOREVER=y CONFIG_DESKTOP_BUTTONS_SIM_TRIGGER_KEY_ID=0x03 CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_PEER_CONTROL=y CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000 diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_qspi.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_qspi.conf index 40c2047dd968..8835ba7f2fd4 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_qspi.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_qspi.conf @@ -38,6 +38,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_smp.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_smp.conf index 90c65926c8c2..56ee0ce196ad 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_smp.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_smp.conf @@ -42,6 +42,8 @@ CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y CONFIG_CAF_INIT_LOG_BLE_SMP_TRANSFER_EVENTS=n CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_release.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_release.conf index 32fdf8ae7113..75c60a9910ee 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_release.conf @@ -29,6 +29,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_PEER_CONTROL=y CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000 diff --git a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_wwcb.conf b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_wwcb.conf index 14901f70967b..8755a78d2686 100644 --- a/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_wwcb.conf +++ b/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_wwcb.conf @@ -40,6 +40,8 @@ CONFIG_CAF_BLE_ADV_SLOW_INT_MIN=0x0070 CONFIG_CAF_BLE_ADV_SLOW_INT_MAX=0x00a0 CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj.conf index 24e531697d56..8064623bb2bd 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj.conf @@ -40,8 +40,6 @@ CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_ASSERT=n -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - # Use minimal C library instead of the Picolib CONFIG_MINIMAL_LIBC=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_3bleconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_3bleconn.conf index 24e531697d56..8064623bb2bd 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_3bleconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_3bleconn.conf @@ -40,8 +40,6 @@ CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_ASSERT=n -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - # Use minimal C library instead of the Picolib CONFIG_MINIMAL_LIBC=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_4llpmconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_4llpmconn.conf index 24e531697d56..8064623bb2bd 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_4llpmconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_4llpmconn.conf @@ -40,8 +40,6 @@ CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_ASSERT=n -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - # Use minimal C library instead of the Picolib CONFIG_MINIMAL_LIBC=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release.conf index 57988ce9b55e..2aec5cc33de1 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release.conf @@ -40,8 +40,6 @@ CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_ASSERT=n -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - # Use minimal C library instead of the Picolib CONFIG_MINIMAL_LIBC=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release_4llpmconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release_4llpmconn.conf index 57988ce9b55e..2aec5cc33de1 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release_4llpmconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/images/b0/prj_release_4llpmconn.conf @@ -40,8 +40,6 @@ CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n CONFIG_UART_INTERRUPT_DRIVEN=n CONFIG_ASSERT=n -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - # Use minimal C library instead of the Picolib CONFIG_MINIMAL_LIBC=y diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static.yml b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static.yml index 161188eeac70..da460342ddfa 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static.yml +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static.yml @@ -38,3 +38,6 @@ s1_image: settings_storage: address: 0xfe000 size: 0x2000 +nrf5_mbr: + address: 0x0 + size: 0x0 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_3bleconn.yml b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_3bleconn.yml index 161188eeac70..da460342ddfa 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_3bleconn.yml +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_3bleconn.yml @@ -38,3 +38,6 @@ s1_image: settings_storage: address: 0xfe000 size: 0x2000 +nrf5_mbr: + address: 0x0 + size: 0x0 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_4llpmconn.yml b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_4llpmconn.yml index 161188eeac70..da460342ddfa 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_4llpmconn.yml +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_4llpmconn.yml @@ -38,3 +38,6 @@ s1_image: settings_storage: address: 0xfe000 size: 0x2000 +nrf5_mbr: + address: 0x0 + size: 0x0 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release.yml b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release.yml index 161188eeac70..da460342ddfa 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release.yml +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release.yml @@ -38,3 +38,6 @@ s1_image: settings_storage: address: 0xfe000 size: 0x2000 +nrf5_mbr: + address: 0x0 + size: 0x0 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release_4llpmconn.yml b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release_4llpmconn.yml index 161188eeac70..da460342ddfa 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release_4llpmconn.yml +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/pm_static_release_4llpmconn.yml @@ -38,3 +38,6 @@ s1_image: settings_storage: address: 0xfe000 size: 0x2000 +nrf5_mbr: + address: 0x0 + size: 0x0 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj.conf index c8a9b6d961d4..80a9a646a86d 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_BLE_PEER_CONTROL=y @@ -36,9 +38,6 @@ CONFIG_DESKTOP_BLE_QOS_ENABLE=y ################################################################################ # Zephyr Configuration -CONFIG_ROM_START_OFFSET=0 -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_ISR_STACK_SIZE=1280 CONFIG_MAIN_STACK_SIZE=840 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_3bleconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_3bleconn.conf index 12910a637cee..2b6c21060772 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_3bleconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_3bleconn.conf @@ -26,6 +26,8 @@ CONFIG_CAF_LEDS=y CONFIG_CAF_BLE_USE_LLPM=n CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_DONGLE_CONN_COUNT=3 CONFIG_DESKTOP_HID_DONGLE_BOND_COUNT=6 @@ -47,9 +49,6 @@ CONFIG_DESKTOP_BLE_QOS_ENABLE=y ################################################################################ # Zephyr Configuration -CONFIG_ROM_START_OFFSET=0 -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_ISR_STACK_SIZE=1280 CONFIG_MAIN_STACK_SIZE=840 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_4llpmconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_4llpmconn.conf index a77fd9f7282c..ed64345d450c 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_4llpmconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_4llpmconn.conf @@ -25,6 +25,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_DONGLE_CONN_COUNT=4 CONFIG_DESKTOP_HID_DONGLE_BOND_COUNT=6 @@ -46,9 +48,6 @@ CONFIG_DESKTOP_BLE_QOS_ENABLE=y ################################################################################ # Zephyr Configuration -CONFIG_ROM_START_OFFSET=0 -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_ISR_STACK_SIZE=1280 CONFIG_MAIN_STACK_SIZE=840 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release.conf index 5c90497718a8..e82232b5135e 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_BLE_PEER_CONTROL=y @@ -34,9 +36,6 @@ CONFIG_DESKTOP_BLE_QOS_ENABLE=y ################################################################################ # Zephyr Configuration -CONFIG_ROM_START_OFFSET=0 -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_ISR_STACK_SIZE=1280 CONFIG_MAIN_STACK_SIZE=840 diff --git a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release_4llpmconn.conf b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release_4llpmconn.conf index 1bb1bd7684e0..c6561a7877c2 100644 --- a/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release_4llpmconn.conf +++ b/applications/nrf_desktop/configuration/nrf52840dongle_nrf52840/prj_release_4llpmconn.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_DONGLE_CONN_COUNT=4 CONFIG_DESKTOP_HID_DONGLE_BOND_COUNT=6 @@ -44,9 +46,6 @@ CONFIG_DESKTOP_BLE_QOS_ENABLE=y ################################################################################ # Zephyr Configuration -CONFIG_ROM_START_OFFSET=0 -CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n - CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536 CONFIG_ISR_STACK_SIZE=1280 CONFIG_MAIN_STACK_SIZE=840 diff --git a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj.conf b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj.conf index d91b20404ae1..f9cd8c0fe9c8 100644 --- a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj.conf +++ b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj.conf @@ -59,6 +59,8 @@ CONFIG_DESKTOP_BATTERY_MEAS_VOLTAGE_DIVIDER_LOWER=180 CONFIG_DESKTOP_VOLTAGE_TO_SOC_DELTA=10 CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_fast_pair.conf b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_fast_pair.conf index 2cba02f9b1f6..8c9d430f8091 100644 --- a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_fast_pair.conf +++ b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_fast_pair.conf @@ -69,6 +69,8 @@ CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y CONFIG_CAF_INIT_LOG_BLE_SMP_TRANSFER_EVENTS=n CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y # Align advertising intervals with Fast Pair specification. CONFIG_CAF_BLE_ADV_FAST_INT_MIN=0x0040 diff --git a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_mcuboot_smp.conf b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_mcuboot_smp.conf index 646fcd01556b..4dce56158089 100644 --- a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_mcuboot_smp.conf +++ b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_mcuboot_smp.conf @@ -67,6 +67,8 @@ CONFIG_DESKTOP_BATTERY_MEAS_VOLTAGE_DIVIDER_LOWER=180 CONFIG_DESKTOP_VOLTAGE_TO_SOC_DELTA=10 CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y diff --git a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release.conf b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release.conf index fe6c25e7cea9..916ffb23d984 100644 --- a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release.conf @@ -53,6 +53,8 @@ CONFIG_DESKTOP_BATTERY_MEAS_VOLTAGE_DIVIDER_LOWER=180 CONFIG_DESKTOP_VOLTAGE_TO_SOC_DELTA=10 CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_BLE_PEER_CONTROL=y CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0007 diff --git a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release_fast_pair.conf b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release_fast_pair.conf index 8dfbf943b476..896d9479be36 100644 --- a/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release_fast_pair.conf +++ b/applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release_fast_pair.conf @@ -62,6 +62,8 @@ CONFIG_DESKTOP_VOLTAGE_TO_SOC_DELTA=10 CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y CONFIG_DESKTOP_USB_ENABLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y # Align advertising intervals with Fast Pair specification. CONFIG_CAF_BLE_ADV_FAST_INT_MIN=0x0040 diff --git a/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj.conf b/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj.conf index 2bea7a9d9d18..8bf3166fd3cd 100644 --- a/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj.conf +++ b/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj.conf @@ -20,6 +20,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_BOOT_INTERFACE_KEYBOARD=y diff --git a/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj_release.conf b/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj_release.conf index a80574e01189..fc6e5a55f7b0 100644 --- a/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj_release.conf +++ b/applications/nrf_desktop/configuration/nrf5340dk_nrf5340_cpuapp/prj_release.conf @@ -15,6 +15,8 @@ CONFIG_CAF_CLICK_DETECTOR=y CONFIG_CAF_LEDS=y CONFIG_DESKTOP_ROLE_HID_DONGLE=y +# Disable deprecation warnings to workaround build failures in CI if USB legacy stack is used. +CONFIG_DEPRECATION_TEST=y CONFIG_DESKTOP_DEVICE_PID=0x52DC CONFIG_DESKTOP_HID_BOOT_INTERFACE_KEYBOARD=y diff --git a/applications/nrf_desktop/src/modules/usb_state.c b/applications/nrf_desktop/src/modules/usb_state.c index 07249f210df0..32ed8f492357 100644 --- a/applications/nrf_desktop/src/modules/usb_state.c +++ b/applications/nrf_desktop/src/modules/usb_state.c @@ -142,6 +142,45 @@ static struct config_channel_transport cfg_chan_transport; static void report_sent(struct usb_hid_device *usb_hid, struct usb_hid_buf *buf, bool error); +/* Start - wrappers used to suppress deprecation warnings (`sdw_`) for USB legacy stack APIs. */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +static int sdw_usb_enable(usb_dc_status_callback status_cb) +{ + return usb_enable(status_cb); +} + +static int sdw_usb_wakeup_request(void) +{ + return usb_wakeup_request(); +} + +static int sdw_usb_hid_init(const struct device *dev) +{ + return usb_hid_init(dev); +} + +static void sdw_usb_hid_register_device(const struct device *dev, const uint8_t *desc, + size_t size, const struct hid_ops *op) +{ + usb_hid_register_device(dev, desc, size, op); +} + +static int sdw_usb_hid_set_proto_code(const struct device *dev, uint8_t proto_code) +{ + return usb_hid_set_proto_code(dev, proto_code); +} + +static int sdw_hid_int_ep_write(const struct device *dev, const uint8_t *data, + uint32_t data_len, uint32_t *bytes_ret) +{ + return hid_int_ep_write(dev, data, data_len, bytes_ret); +} + +#pragma GCC diagnostic pop +/* End - wrappers used to suppress deprecation warnings (`sdw_`) for USB legacy stack APIs. */ + static uint8_t usb_hid_buf_get_report_id(struct usb_hid_buf *buf) { __ASSERT_NO_MSG(buf->status_bm & USB_HID_BUF_ALLOCATED); @@ -273,7 +312,7 @@ static void usb_hid_buf_send(struct usb_hid_device *usb_hid, struct usb_hid_buf err = hid_device_submit_report(usb_hid->dev, size, data); } else { __ASSERT_NO_MSG(IS_ENABLED(CONFIG_DESKTOP_USB_STACK_LEGACY)); - err = hid_int_ep_write(usb_hid->dev, data, size, NULL); + err = sdw_hid_int_ep_write(usb_hid->dev, data, size, NULL); } if (err) { @@ -697,7 +736,7 @@ static void usb_wakeup(void) } } else { __ASSERT_NO_MSG(IS_ENABLED(CONFIG_DESKTOP_USB_STACK_LEGACY)); - err = usb_wakeup_request(); + err = sdw_usb_wakeup_request(); } if (!err) { @@ -854,13 +893,13 @@ static int usb_init_legacy_hid_device_init(struct usb_hid_device *usb_hid_dev, usb_hid_dev->hid_protocol = HID_PROTOCOL_REPORT; usb_hid_dev->report_bm = report_bm; - usb_hid_register_device(dev, hid_report_desc, hid_report_desc_size, &hid_ops); + sdw_usb_hid_register_device(dev, hid_report_desc, hid_report_desc_size, &hid_ops); int err = 0; /* Legacy way of setting HID boot protocol requires an additional API call. */ if (IS_ENABLED(CONFIG_USB_HID_BOOT_PROTOCOL)) { - err = usb_hid_set_proto_code(dev, CONFIG_DESKTOP_USB_HID_PROTOCOL_CODE); + err = sdw_usb_hid_set_proto_code(dev, CONFIG_DESKTOP_USB_HID_PROTOCOL_CODE); if (err) { LOG_ERR("usb_hid_set_proto_code failed for dev: %p (err: %d)", (void *)dev, err); @@ -868,7 +907,7 @@ static int usb_init_legacy_hid_device_init(struct usb_hid_device *usb_hid_dev, } } - err = usb_hid_init(dev); + err = sdw_usb_hid_init(dev); if (err) { LOG_ERR("usb_hid_init failed for dev: %p (err: %d)", (void *)dev, err); return err; @@ -1013,7 +1052,7 @@ static int usb_init_legacy(void) return err; } - err = usb_enable(usb_init_legacy_status_cb); + err = sdw_usb_enable(usb_init_legacy_status_cb); if (err) { LOG_ERR("usb_enable failed (err: %d)", err); return err; diff --git a/applications/serial_lte_modem/src/slm_ctrl_pin.c b/applications/serial_lte_modem/src/slm_ctrl_pin.c index 6195199d6c1a..d762bee13ecc 100644 --- a/applications/serial_lte_modem/src/slm_ctrl_pin.c +++ b/applications/serial_lte_modem/src/slm_ctrl_pin.c @@ -99,7 +99,7 @@ static int configure_power_pin_interrupt(gpio_callback_handler_t handler, gpio_f */ err = gpio_pin_interrupt_configure(gpio_dev, pin, GPIO_INT_DISABLE); if (err) { - LOG_ERR("Failed to configure %s (0x%x) on power pin. (%d)", + LOG_ERR("Failed to configure %s (0x%lx) on power pin. (%d)", "interrupt", GPIO_INT_DISABLE, err); } diff --git a/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf b/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf index 1c0a3bc2438f..0820098ad277 100644 --- a/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf +++ b/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/boards/nordic/nrf54lv10dk/Kconfig.defconfig b/boards/nordic/nrf54lv10dk/Kconfig.defconfig index 2b34c4881afc..f8264c25282e 100644 --- a/boards/nordic/nrf54lv10dk/Kconfig.defconfig +++ b/boards/nordic/nrf54lv10dk/Kconfig.defconfig @@ -5,7 +5,7 @@ DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition DT_CHOSEN_Z_SRAM_PARTITION := zephyr,sram-secure-partition -config BT_CTLR +config HAS_BT_CTLR default BT config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE diff --git a/boards/nordic/nrf7120pdk/Kconfig.defconfig b/boards/nordic/nrf7120pdk/Kconfig.defconfig index 8d0e2a796283..e472f4f0b5cf 100644 --- a/boards/nordic/nrf7120pdk/Kconfig.defconfig +++ b/boards/nordic/nrf7120pdk/Kconfig.defconfig @@ -3,7 +3,7 @@ if BOARD_NRF7120PDK_NRF7120_CPUAPP -config BT_CTLR +config HAS_BT_CTLR default BT config ROM_START_OFFSET @@ -14,7 +14,7 @@ endif # BOARD_NRF7120PDK_NRF7120_CPUAPP if BOARD_NRF7120PDK_NRF7120_CPUAPP_NS -config BT_CTLR +config HAS_BT_CTLR default BT # By default, if we build for a Non-Secure version of the board, diff --git a/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340 b/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340 index d03191722bd4..db0280497a86 100644 --- a/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340 +++ b/boards/nordic/thingy91x/Kconfig.defconfig.nrf5340 @@ -48,9 +48,6 @@ endif # BUILD_WITH_TFM DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition DT_CHOSEN_Z_SRAM_PARTITION := zephyr,sram-secure-partition -config NFCT_PINS_AS_GPIOS - default y - if BOARD_THINGY91X_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE config FLASH_LOAD_SIZE diff --git a/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi b/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi index b2ac367de398..2e9a90b5594a 100644 --- a/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi +++ b/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi @@ -129,6 +129,10 @@ pinctrl-names = "default", "sleep"; }; +&uicr { + nfct-pins-as-gpios; +}; + /* Include default memory partition configuration file. */ /* This is not the layout that's actually used! It's overridden by Partition Manager. */ #include diff --git a/cmake/sysbuild/periphconf_migrate.cmake b/cmake/sysbuild/periphconf_migrate.cmake deleted file mode 100644 index e1b43ddbe957..000000000000 --- a/cmake/sysbuild/periphconf_migrate.cmake +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright (c) 2025 Nordic Semiconductor ASA -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause - -# This file includes extra sysbuild POST_CMAKE logic to assist with -# autogenerating an IronSide SE compatible UICR. -# -# It is enabled when SB_CONFIG_NRF_PERIPHCONF_MIGRATE=y is set and -# one of the sysbuild images has CONFIG_NRF_HALTIUM_GENERATE_UICR=y. -# It uses nrf-regtool to produce an extra source file for that image -# (periphconf_migrated.c) based on multiple image devicetrees. -# -# NOTE: This is a temporary solution for NCS. The planned solution -# for upstream Zephyr will not require nrf-regtool. - -set(ironside_uicr_images "") -set(ironside_uicr_main_image) -foreach(image ${POST_CMAKE_IMAGES}) - sysbuild_get(${image}_54h20_app IMAGE ${image} VAR CONFIG_SOC_NRF54H20_CPUAPP KCONFIG) - sysbuild_get(${image}_54h20_rad IMAGE ${image} VAR CONFIG_SOC_NRF54H20_CPURAD KCONFIG) - if(${image}_54h20_app OR ${image}_54h20_rad) - list(APPEND ironside_uicr_images ${image}) - if(NOT DEFINED ironside_uicr_main_image) - sysbuild_get(image_generates_uicr IMAGE ${image} VAR CONFIG_NRF_HALTIUM_GENERATE_UICR KCONFIG) - if(image_generates_uicr) - set(ironside_uicr_main_image ${image}) - endif() - endif() - endif() -endforeach() -if(DEFINED ironside_uicr_main_image) - find_program(NRF_REGTOOL nrf-regtool REQUIRED) - set(nrf_regtool_cmd - COMMAND - ${CMAKE_COMMAND} -E env PYTHONPATH=${ZEPHYR_BASE}/scripts/dts/python-devicetree/src - ${NRF_REGTOOL} - ) - ExternalProject_Get_Property(${ironside_uicr_main_image} BINARY_DIR) - set(nrf_regtool_migrate_cmd - ${nrf_regtool_cmd} - uicr-migrate - --edt-pickle-file ${BINARY_DIR}/zephyr/edt.pickle - --output-periphconf-file ${APPLICATION_BINARY_DIR}/periphconf_migrated.c - ) - foreach(image ${ironside_uicr_images}) - ExternalProject_Get_Property(${image} BINARY_DIR) - sysbuild_get(image_soc IMAGE ${image} VAR CONFIG_SOC KCONFIG) - set(image_uicr_hex ${PROJECT_BINARY_DIR}/uicr_${image}.hex) - message(STATUS "Running nrf-regtool uicr-compile for ${image}") - execute_process( - ${nrf_regtool_cmd} - uicr-compile - --edt-pickle-file ${BINARY_DIR}/zephyr/edt.pickle - --product-name ${image_soc} - --output-file ${image_uicr_hex} - WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR} - COMMAND_ERROR_IS_FATAL ANY - ) - list(APPEND nrf_regtool_migrate_cmd --uicr-hex-file ${image_uicr_hex}) - endforeach() - message(STATUS "Running nrf-regtool uicr-migrate for ${ironside_uicr_main_image}") - execute_process( - ${nrf_regtool_migrate_cmd} - WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR} - COMMAND_ERROR_IS_FATAL ANY - ) -endif() diff --git a/doc/nrf/conf.py b/doc/nrf/conf.py index 6e9f5b7a56e6..80a72d9d90b9 100644 --- a/doc/nrf/conf.py +++ b/doc/nrf/conf.py @@ -57,6 +57,7 @@ "ncs_tool_versions", "page_filter", "sphinxcontrib.plantuml", + "sphinxcontrib.programoutput", ] linkcheck_ignore = [ diff --git a/doc/nrf/libraries/bluetooth/services/fast_pair/core.rst b/doc/nrf/libraries/bluetooth/services/fast_pair/core.rst index c643fac9417d..459d10be1351 100644 --- a/doc/nrf/libraries/bluetooth/services/fast_pair/core.rst +++ b/doc/nrf/libraries/bluetooth/services/fast_pair/core.rst @@ -43,7 +43,7 @@ With the :kconfig:option:`CONFIG_BT_FAST_PAIR` Kconfig option enabled, the follo * :kconfig:option:`CONFIG_BT_FAST_PAIR_STORAGE_USER_RESET_ACTION` - The option enables user reset action that is executed together with the Fast Pair factory reset operation. See the :ref:`ug_bt_fast_pair_factory_reset_custom_user_reset_action` for more details. * :kconfig:option:`CONFIG_BT_FAST_PAIR_STORAGE_ACCOUNT_KEY_MAX` - The option configures maximum number of stored Account Keys. -* :kconfig:option:`CONFIG_BT_FAST_PAIR_CRYPTO_TINYCRYPT`, :kconfig:option:`CONFIG_BT_FAST_PAIR_CRYPTO_OBERON`, and :kconfig:option:`CONFIG_BT_FAST_PAIR_CRYPTO_PSA` - These options are used to select the cryptographic backend for Fast Pair. +* :kconfig:option:`CONFIG_BT_FAST_PAIR_CRYPTO_OBERON`, and :kconfig:option:`CONFIG_BT_FAST_PAIR_CRYPTO_PSA` - These options are used to select the cryptographic backend for Fast Pair. The Oberon backend is used by default. * :kconfig:option:`CONFIG_BT_FAST_PAIR_BOND_MANAGER` - The option enables the Fast Pair bond management functionality. See :ref:`ug_bt_fast_pair_gatt_service_bond_management` for more details. diff --git a/doc/requirements.txt b/doc/requirements.txt index a8473506b343..91b6ebed058f 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -26,5 +26,7 @@ sphinx-togglebutton # | X | | | | | sphinx_markdown_tables # | | | X | | | | | sphinxcontrib-mscgen # | X | | | | X | | | sphinxcontrib-plantuml>=0.27 # | | | | | | X | | +sphinxcontrib-programoutput # | X | | | | | | X | west>=1.0.0 # | | | | | | | X | python-dotenv # | | X | | | | | | +tabulate # | | | | | | | X | diff --git a/drivers/mspi/mspi_sqspi.c b/drivers/mspi/mspi_sqspi.c index 84998fcc8ab1..f349d03e771a 100644 --- a/drivers/mspi/mspi_sqspi.c +++ b/drivers/mspi/mspi_sqspi.c @@ -21,9 +21,6 @@ #include #include #endif -#if defined(CONFIG_SOC_NRF54H20_GPD) -#include -#endif #include LOG_MODULE_REGISTER(mspi_sqspi, CONFIG_MSPI_LOG_LEVEL); @@ -432,13 +429,6 @@ static int dev_pm_action_cb(const struct device *dev, return rc; } -#if defined(CONFIG_SOC_NRF54H20_GPD) - rc = nrf_gpd_retain_pins_set(dev_config->pcfg, false); - if (rc < 0) { - LOG_ERR("Cannot clear RETAIN for pins (%d)", rc); - return rc; - } -#endif nrf_sqspi_activate(&dev_config->sqspi); #if defined(CONFIG_SOC_SERIES_NRF54LX) nrf_memconf_ramblock_ret_enable_set(NRF_MEMCONF, @@ -452,13 +442,6 @@ static int dev_pm_action_cb(const struct device *dev, if (IS_ENABLED(CONFIG_PM_DEVICE) && action == PM_DEVICE_ACTION_SUSPEND) { -#if defined(CONFIG_SOC_NRF54H20_GPD) - rc = nrf_gpd_retain_pins_set(dev_config->pcfg, true); - if (rc < 0) { - LOG_ERR("Cannot set RETAIN for pins (%d)", rc); - return rc; - } -#endif rc = pinctrl_apply_state(dev_config->pcfg, PINCTRL_STATE_SLEEP); if (rc < 0) { diff --git a/modules/memfault-firmware-sdk/memfault_lte_coredump.c b/modules/memfault-firmware-sdk/memfault_lte_coredump.c index afab39903f47..128099626942 100644 --- a/modules/memfault-firmware-sdk/memfault_lte_coredump.c +++ b/modules/memfault-firmware-sdk/memfault_lte_coredump.c @@ -83,17 +83,17 @@ static void schedule_send_backoff(struct fsm_state_object *state_object); /* Forward declarations: State Machine Functions */ static void state_running_entry(void *o); -static void state_running_run(void *o); +static enum smf_state_result state_running_run(void *o); static void state_running_exit(void *o); static void state_waiting_for_nrf_modem_lib_init_entry(void *o); -static void state_waiting_for_nrf_modem_lib_init_run(void *o); -static void state_waiting_for_network_connection_run(void *o); +static enum smf_state_result state_waiting_for_nrf_modem_lib_init_run(void *o); +static enum smf_state_result state_waiting_for_network_connection_run(void *o); static void state_network_connected_entry(void *o); -static void state_network_connected_run(void *o); +static enum smf_state_result state_network_connected_run(void *o); static void state_coredump_send_attempt_entry(void *o); -static void state_coredump_send_attempt_run(void *o); +static enum smf_state_result state_coredump_send_attempt_run(void *o); static void state_coredump_send_backoff_entry(void *o); -static void state_coredump_send_backoff_run(void *o); +static enum smf_state_result state_coredump_send_backoff_run(void *o); static void state_finished_entry(void *o); static void state_error_entry(void *o); @@ -232,7 +232,7 @@ static void state_waiting_for_nrf_modem_lib_init_entry(void *o) state_object->retry_count = 0; } -static void state_waiting_for_nrf_modem_lib_init_run(void *o) +static enum smf_state_result state_waiting_for_nrf_modem_lib_init_run(void *o) { struct fsm_state_object *state_object = o; @@ -240,7 +240,10 @@ static void state_waiting_for_nrf_modem_lib_init_run(void *o) if (state_object->event == EVENT_NRF_MODEM_LIB_INITED) { smf_set_state(SMF_CTX(state_object), &states[STATE_RUNNING]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_running_entry(void *o) @@ -269,7 +272,7 @@ static void state_running_entry(void *o) } } -static void state_running_run(void *o) +static enum smf_state_result state_running_run(void *o) { struct fsm_state_object *state_object = o; @@ -277,9 +280,13 @@ static void state_running_run(void *o) if (state_object->event == EVENT_NRF_MODEM_LIB_SHUTDOWN) { smf_set_state(SMF_CTX(state_object), &states[STATE_WAITING_FOR_NRF_MODEM_LIB_INIT]); + return SMF_EVENT_HANDLED; } else if (state_object->event == EVENT_ERROR) { smf_set_state(SMF_CTX(state_object), &states[STATE_ERROR]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_running_exit(void *o) @@ -307,7 +314,7 @@ static void state_running_exit(void *o) (void)k_work_cancel_delayable(&state_object->backoff_work); } -static void state_waiting_for_network_connection_run(void *o) +static enum smf_state_result state_waiting_for_network_connection_run(void *o) { struct fsm_state_object *state_object = o; @@ -333,7 +340,10 @@ static void state_waiting_for_network_connection_run(void *o) if (state_object->lte_registered && state_object->pdn_active) { smf_set_state(SMF_CTX(state_object), &states[STATE_NETWORK_CONNECTED]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_network_connected_entry(void *o) @@ -345,7 +355,7 @@ static void state_network_connected_entry(void *o) state_object->retry_count = 0; } -static void state_network_connected_run(void *o) +static enum smf_state_result state_network_connected_run(void *o) { struct fsm_state_object *state_object = o; @@ -355,11 +365,15 @@ static void state_network_connected_run(void *o) state_object->lte_registered = false; smf_set_state(SMF_CTX(state_object), &states[STATE_WAITING_FOR_NETWORK_CONNECTION]); + return SMF_EVENT_HANDLED; } else if (state_object->event == EVENT_PDN_DEACTIVATED) { state_object->pdn_active = false; smf_set_state(SMF_CTX(state_object), &states[STATE_WAITING_FOR_NETWORK_CONNECTION]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_coredump_send_attempt_entry(void *o) @@ -399,7 +413,7 @@ static void state_coredump_send_attempt_entry(void *o) } } -static void state_coredump_send_attempt_run(void *o) +static enum smf_state_result state_coredump_send_attempt_run(void *o) { struct fsm_state_object *state_object = o; @@ -407,9 +421,13 @@ static void state_coredump_send_attempt_run(void *o) if (state_object->event == EVENT_COREDUMP_SEND_FAIL) { smf_set_state(SMF_CTX(state_object), &states[STATE_COREDUMP_SEND_BACKOFF]); + return SMF_EVENT_HANDLED; } else if (state_object->event == EVENT_COREDUMP_SEND_SUCCESS) { smf_set_state(SMF_CTX(state_object), &states[STATE_FINISHED]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_coredump_send_backoff_entry(void *o) @@ -421,7 +439,7 @@ static void state_coredump_send_backoff_entry(void *o) schedule_send_backoff(state_object); } -static void state_coredump_send_backoff_run(void *o) +static enum smf_state_result state_coredump_send_backoff_run(void *o) { struct fsm_state_object *state_object = o; @@ -429,7 +447,10 @@ static void state_coredump_send_backoff_run(void *o) if (state_object->event == EVENT_BACKOFF_TIMER_EXPIRED) { smf_set_state(SMF_CTX(state_object), &states[STATE_COREDUMP_SEND_ATTEMPT]); + return SMF_EVENT_HANDLED; } + + return SMF_EVENT_PROPAGATE; } static void state_finished_entry(void *o) diff --git a/samples/bluetooth/central_hr_coded/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/central_hr_coded/sysbuild/ipc_radio/prj.conf index 97c2ce32264a..389ad37e59f8 100644 --- a/samples/bluetooth/central_hr_coded/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/central_hr_coded/sysbuild/ipc_radio/prj.conf @@ -22,7 +22,6 @@ CONFIG_BT_CTLR_PHY_CODED=y CONFIG_BT_EXT_ADV_CODING_SELECTION=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/channel_sounding_ras_initiator/src/main.c b/samples/bluetooth/channel_sounding_ras_initiator/src/main.c index b61da7357b92..2c93393421d1 100644 --- a/samples/bluetooth/channel_sounding_ras_initiator/src/main.c +++ b/samples/bluetooth/channel_sounding_ras_initiator/src/main.c @@ -415,10 +415,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, const char *chsel_type_str[3] = {"Algorithm #3b", "Algorithm #3c", "Invalid"}; const char *ch3c_shape_str[3] = {"Hat shape", "X shape", "Invalid"}; - uint8_t main_mode_idx = config->main_mode_type > 0 && config->main_mode_type < 4 - ? config->main_mode_type - : 4; - uint8_t sub_mode_idx = config->sub_mode_type < 4 ? config->sub_mode_type : 0; + uint8_t mode_idx = config->mode > 0 && config->mode < 4 ? config->mode : 4; uint8_t role_idx = MIN(config->role, 2); uint8_t rtt_type_idx = MIN(config->rtt_type, 7); uint8_t phy_idx = config->cs_sync_phy > 0 && config->cs_sync_phy < 4 @@ -429,8 +426,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, LOG_INF("CS config creation complete.\n" " - id: %u\n" - " - main_mode_type: %s\n" - " - sub_mode_type: %s\n" + " - mode: %s\n" " - min_main_mode_steps: %u\n" " - max_main_mode_steps: %u\n" " - main_mode_repetition: %u\n" @@ -447,7 +443,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, " - t_fcs_time_us: %u\n" " - t_pm_time_us: %u\n" " - channel_map: 0x%08X%08X%04X\n", - config->id, mode_str[main_mode_idx], mode_str[sub_mode_idx], + config->id, mode_str[mode_idx], config->min_main_mode_steps, config->max_main_mode_steps, config->main_mode_repetition, config->mode_0_steps, role_str[role_idx], rtt_type_str[rtt_type_idx], phy_str[phy_idx], @@ -706,8 +702,7 @@ int main(void) struct bt_le_cs_create_config_params config_params = { .id = CS_CONFIG_ID, - .main_mode_type = BT_CONN_LE_CS_MAIN_MODE_2, - .sub_mode_type = BT_CONN_LE_CS_SUB_MODE_1, + .mode = BT_CONN_LE_CS_MAIN_MODE_2_SUB_MODE_1, .min_main_mode_steps = 2, .max_main_mode_steps = 5, .main_mode_repetition = 0, diff --git a/samples/bluetooth/channel_sounding_ras_reflector/src/main.c b/samples/bluetooth/channel_sounding_ras_reflector/src/main.c index 3b3b2b57a51a..0331bbaaf8eb 100644 --- a/samples/bluetooth/channel_sounding_ras_reflector/src/main.c +++ b/samples/bluetooth/channel_sounding_ras_reflector/src/main.c @@ -97,10 +97,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, const char *chsel_type_str[3] = {"Algorithm #3b", "Algorithm #3c", "Invalid"}; const char *ch3c_shape_str[3] = {"Hat shape", "X shape", "Invalid"}; - uint8_t main_mode_idx = config->main_mode_type > 0 && config->main_mode_type < 4 - ? config->main_mode_type - : 4; - uint8_t sub_mode_idx = config->sub_mode_type < 4 ? config->sub_mode_type : 0; + uint8_t mode_idx = config->mode > 0 && config->mode < 4 ? config->mode : 4; uint8_t role_idx = MIN(config->role, 2); uint8_t rtt_type_idx = MIN(config->rtt_type, 7); uint8_t phy_idx = config->cs_sync_phy > 0 && config->cs_sync_phy < 4 @@ -111,8 +108,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, LOG_INF("CS config creation complete.\n" " - id: %u\n" - " - main_mode_type: %s\n" - " - sub_mode_type: %s\n" + " - mode: %s\n" " - min_main_mode_steps: %u\n" " - max_main_mode_steps: %u\n" " - main_mode_repetition: %u\n" @@ -129,7 +125,7 @@ static void config_create_cb(struct bt_conn *conn, uint8_t status, " - t_fcs_time_us: %u\n" " - t_pm_time_us: %u\n" " - channel_map: 0x%08X%08X%04X\n", - config->id, mode_str[main_mode_idx], mode_str[sub_mode_idx], + config->id, mode_str[mode_idx], config->min_main_mode_steps, config->max_main_mode_steps, config->main_mode_repetition, config->mode_0_steps, role_str[role_idx], rtt_type_str[rtt_type_idx], phy_str[phy_idx], diff --git a/samples/bluetooth/direct_test_mode/sysbuild/remote_shell/prj_usb_5340.conf b/samples/bluetooth/direct_test_mode/sysbuild/remote_shell/prj_usb_5340.conf index e4df2db7d0a1..dad566644391 100644 --- a/samples/bluetooth/direct_test_mode/sysbuild/remote_shell/prj_usb_5340.conf +++ b/samples/bluetooth/direct_test_mode/sysbuild/remote_shell/prj_usb_5340.conf @@ -17,10 +17,13 @@ CONFIG_IPC_SERVICE_BACKEND_RPMSG=y CONFIG_HEAP_MEM_POOL_SIZE=4096 -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_PRODUCT="Nordic Remote Shell sample" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x53AA +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Nordic Remote Shell sample" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x53AA +CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y +CONFIG_USBD_LOG_LEVEL_ERR=y # Config logger CONFIG_LOG=y @@ -28,7 +31,5 @@ CONFIG_LOG_PRINTK=y CONFIG_USE_SEGGER_RTT=y CONFIG_LOG_BACKEND_RTT=y CONFIG_LOG_BACKEND_UART=n -CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y -CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y CONFIG_SOC_NRF53_CPUNET_ENABLE=y diff --git a/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.conf b/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.conf index 494465dd5198..d16ed90f0bf2 100644 --- a/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.conf +++ b/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.conf @@ -1,12 +1,5 @@ -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_REMOTE_WAKEUP=n -CONFIG_USB_DEVICE_PRODUCT="LLPM sample console" -CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="LLPM sample console" +CONFIG_LOG=n CONFIG_UART_CONSOLE=y -CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_UART_LINE_CTRL=y - -# Since the default LOG_MODE_MINIMAL is synchronous, it will mess with the USB -# driver/subsys. Use the deferred mode instead. -CONFIG_LOG_MODE_DEFERRED=y diff --git a/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.overlay b/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.overlay deleted file mode 100644 index acf3f4a3d20b..000000000000 --- a/samples/bluetooth/llpm/boards/nrf52840dongle_nrf52840.overlay +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2021 Nordic Semiconductor ASA - * - * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause - */ - -/ { - chosen { - zephyr,console = &cdc_acm_uart0; - }; -}; - -&zephyr_udc0 { - cdc_acm_uart0: cdc_acm_uart0 { - compatible = "zephyr,cdc-acm-uart"; - }; -}; diff --git a/samples/bluetooth/llpm/src/main.c b/samples/bluetooth/llpm/src/main.c index 3d321848b45a..559c0f124564 100644 --- a/samples/bluetooth/llpm/src/main.c +++ b/samples/bluetooth/llpm/src/main.c @@ -9,11 +9,7 @@ #include #include -#if defined(CONFIG_USB_DEVICE_STACK) -#include #include -#endif - #include #include #include @@ -426,14 +422,10 @@ int main(void) { int err; -#if defined(CONFIG_USB_DEVICE_STACK) +#if DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_console), zephyr_cdc_acm_uart) const struct device *uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console)); uint32_t dtr = 0; - if (usb_enable(NULL)) { - return 0; - } - /* Poll if the DTR flag was set, optional */ while (!dtr) { uart_line_ctrl_get(uart_dev, UART_LINE_CTRL_DTR, &dtr); diff --git a/samples/bluetooth/llpm/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/llpm/sysbuild/ipc_radio/prj.conf index 0df07621e6db..ac34baa24930 100644 --- a/samples/bluetooth/llpm/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/llpm/sysbuild/ipc_radio/prj.conf @@ -19,7 +19,6 @@ CONFIG_BT_HCI_RAW=y CONFIG_BT_CTLR_ASSERT_HANDLER=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/multiple_adv_sets/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/multiple_adv_sets/sysbuild/ipc_radio/prj.conf index f64686af27e1..45b2a9cb2008 100644 --- a/samples/bluetooth/multiple_adv_sets/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/multiple_adv_sets/sysbuild/ipc_radio/prj.conf @@ -20,7 +20,6 @@ CONFIG_BT_CTLR_ADV_SET=2 CONFIG_BT_CTLR_ADV_EXT=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/nrf_auraconfig/prj.conf b/samples/bluetooth/nrf_auraconfig/prj.conf index 39c370ab770a..b15cbed9265e 100644 --- a/samples/bluetooth/nrf_auraconfig/prj.conf +++ b/samples/bluetooth/nrf_auraconfig/prj.conf @@ -7,7 +7,6 @@ # General CONFIG_REBOOT=y CONFIG_DEBUG=y -CONFIG_DEBUG_INFO=y CONFIG_ASSERT=y CONFIG_STACK_USAGE=y CONFIG_THREAD_RUNTIME_STATS=y diff --git a/samples/bluetooth/peripheral_hids_keyboard/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_hids_keyboard/sysbuild/ipc_radio/prj.conf index 80ac771b2a71..a94d5c5ecb73 100644 --- a/samples/bluetooth/peripheral_hids_keyboard/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_hids_keyboard/sysbuild/ipc_radio/prj.conf @@ -20,7 +20,6 @@ CONFIG_BT_MAX_CONN=2 CONFIG_BT_CENTRAL=n CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/peripheral_hr_coded/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_hr_coded/sysbuild/ipc_radio/prj.conf index b288cf3c93a9..bc8c9369809d 100644 --- a/samples/bluetooth/peripheral_hr_coded/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_hr_coded/sysbuild/ipc_radio/prj.conf @@ -5,7 +5,6 @@ CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_BT=y diff --git a/samples/bluetooth/peripheral_mds/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_mds/sysbuild/ipc_radio/prj.conf index 3a956da37281..10fac7b05bdf 100644 --- a/samples/bluetooth/peripheral_mds/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_mds/sysbuild/ipc_radio/prj.conf @@ -24,7 +24,6 @@ CONFIG_BT_BUF_ACL_RX_SIZE=251 CONFIG_BT_MAX_CONN=2 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/peripheral_power_profiling/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_power_profiling/sysbuild/ipc_radio/prj.conf index f09dd696bd0f..9b6ebfafcd66 100644 --- a/samples/bluetooth/peripheral_power_profiling/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_power_profiling/sysbuild/ipc_radio/prj.conf @@ -20,7 +20,6 @@ CONFIG_BT_CTLR_ADV_EXT=y CONFIG_BT_CTLR_PHY_CODED=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/peripheral_status/sample.yaml b/samples/bluetooth/peripheral_status/sample.yaml index c7dbb3b99633..e17cf028e101 100644 --- a/samples/bluetooth/peripheral_status/sample.yaml +++ b/samples/bluetooth/peripheral_status/sample.yaml @@ -23,7 +23,6 @@ tests: - nrf52840dk/nrf52840 - nrf5340dk/nrf5340/cpuapp - nrf5340dk/nrf5340/cpuapp/ns - - thingy53/nrf5340/cpuapp - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp @@ -35,7 +34,6 @@ tests: - nrf52840dk/nrf52840 - nrf5340dk/nrf5340/cpuapp - nrf5340dk/nrf5340/cpuapp/ns - - thingy53/nrf5340/cpuapp - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp @@ -50,8 +48,6 @@ tests: - nrf52840dk/nrf52840 - nrf5340dk/nrf5340/cpuapp - nrf5340dk/nrf5340/cpuapp/ns - - thingy53/nrf5340/cpuapp - - thingy53/nrf5340/cpuapp/ns - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp @@ -64,8 +60,6 @@ tests: - nrf52dk/nrf52810 - nrf5340dk/nrf5340/cpuapp - nrf5340dk/nrf5340/cpuapp/ns - - thingy53/nrf5340/cpuapp - - thingy53/nrf5340/cpuapp/ns - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp diff --git a/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf b/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf index f66cb06cdd0b..30ee7ffa8bf4 100644 --- a/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf +++ b/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/boards/thingy53_nrf5340_cpunet.conf @@ -22,7 +22,6 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251 CONFIG_BT_BUF_ACL_RX_SIZE=502 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/prj.conf index 802ba7cb25ec..83eef015f4f0 100644 --- a/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_status/sysbuild/ipc_radio/prj.conf @@ -17,7 +17,6 @@ CONFIG_BT_MAX_CONN=16 # CONFIG_BT_BUF_CMD_TX_SIZE=255 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/bluetooth/peripheral_status/sysbuild/mcuboot/prj.conf b/samples/bluetooth/peripheral_status/sysbuild/mcuboot/prj.conf index 41a76acf2081..0ef784231d13 100644 --- a/samples/bluetooth/peripheral_status/sysbuild/mcuboot/prj.conf +++ b/samples/bluetooth/peripheral_status/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/bluetooth/peripheral_uart/prj_cdc.conf b/samples/bluetooth/peripheral_uart/prj_cdc.conf index 858feb5f5d31..3a02a3fc5ba7 100644 --- a/samples/bluetooth/peripheral_uart/prj_cdc.conf +++ b/samples/bluetooth/peripheral_uart/prj_cdc.conf @@ -8,10 +8,10 @@ CONFIG_UART_LINE_CTRL=y CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_UART_ASYNC_ADAPTER=y -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_REMOTE_WAKEUP=n -CONFIG_USB_CDC_ACM=y -CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y + +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_USBD_CDC_ACM_LOG_LEVEL_OFF=y # Disable the UARTE0 enabled in default project configuration CONFIG_NRFX_UARTE0=n diff --git a/samples/bluetooth/peripheral_uart/src/main.c b/samples/bluetooth/peripheral_uart/src/main.c index 6d9b94226c2e..e9d535c112df 100644 --- a/samples/bluetooth/peripheral_uart/src/main.c +++ b/samples/bluetooth/peripheral_uart/src/main.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -243,14 +242,6 @@ static int uart_init(void) return -ENODEV; } - if (IS_ENABLED(CONFIG_USB_DEVICE_STACK)) { - err = usb_enable(NULL); - if (err && (err != -EALREADY)) { - LOG_ERR("Failed to enable USB"); - return err; - } - } - rx = k_malloc(sizeof(*rx)); if (rx) { rx->len = 0; diff --git a/samples/bluetooth/peripheral_with_multiple_identities/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/peripheral_with_multiple_identities/sysbuild/ipc_radio/prj.conf index ab6e84349d84..92a707c20844 100644 --- a/samples/bluetooth/peripheral_with_multiple_identities/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/peripheral_with_multiple_identities/sysbuild/ipc_radio/prj.conf @@ -5,7 +5,6 @@ CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_BT=y diff --git a/samples/bluetooth/scanning_while_connecting/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/scanning_while_connecting/sysbuild/ipc_radio/prj.conf index 538983a5fb9b..1fad06d9b425 100644 --- a/samples/bluetooth/scanning_while_connecting/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/scanning_while_connecting/sysbuild/ipc_radio/prj.conf @@ -5,7 +5,6 @@ CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_BT=y diff --git a/samples/bluetooth/throughput/sysbuild/ipc_radio/prj.conf b/samples/bluetooth/throughput/sysbuild/ipc_radio/prj.conf index 76b72aa9c3b0..1d9d27ebe1df 100644 --- a/samples/bluetooth/throughput/sysbuild/ipc_radio/prj.conf +++ b/samples/bluetooth/throughput/sysbuild/ipc_radio/prj.conf @@ -25,7 +25,6 @@ CONFIG_BT_BUF_ACL_TX_SIZE=502 CONFIG_BT_MAX_CONN=2 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/samples/cellular/ciphersuites/sysbuild/mcuboot/prj.conf b/samples/cellular/ciphersuites/sysbuild/mcuboot/prj.conf index 137bb57531be..63e9968f7d2c 100644 --- a/samples/cellular/ciphersuites/sysbuild/mcuboot/prj.conf +++ b/samples/cellular/ciphersuites/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/cellular/lte_ble_gateway/prj.conf b/samples/cellular/lte_ble_gateway/prj.conf index bcaf435416bb..f80c0f8a7a23 100644 --- a/samples/cellular/lte_ble_gateway/prj.conf +++ b/samples/cellular/lte_ble_gateway/prj.conf @@ -55,7 +55,6 @@ CONFIG_CONSOLE_GETCHAR=y # Enable Bluetooth stack and libraries CONFIG_BT=y CONFIG_BT_HCI=y -CONFIG_BT_CTLR=n CONFIG_BT_WAIT_NOP=y CONFIG_BT_CENTRAL=y CONFIG_BT_GATT_CLIENT=y diff --git a/samples/cellular/modem_shell/prj.conf b/samples/cellular/modem_shell/prj.conf index 06180293e503..3bda9c750dc8 100644 --- a/samples/cellular/modem_shell/prj.conf +++ b/samples/cellular/modem_shell/prj.conf @@ -159,7 +159,6 @@ CONFIG_ASSERT=y CONFIG_LOG=y # Keep printk() synchronous CONFIG_LOG_PRINTK=n -CONFIG_DEBUG_INFO=y #CONFIG_DEBUG_OPTIMIZATIONS=y #CONFIG_NO_OPTIMIZATIONS=y #CONFIG_FORCE_NO_ASSERT=y diff --git a/samples/cellular/nrf_cloud_multi_service/sysbuild/mcuboot/prj.conf b/samples/cellular/nrf_cloud_multi_service/sysbuild/mcuboot/prj.conf index 41a76acf2081..0ef784231d13 100644 --- a/samples/cellular/nrf_cloud_multi_service/sysbuild/mcuboot/prj.conf +++ b/samples/cellular/nrf_cloud_multi_service/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/cellular/nrf_cloud_rest_fota/sysbuild/mcuboot/prj.conf b/samples/cellular/nrf_cloud_rest_fota/sysbuild/mcuboot/prj.conf index 7515f3cbd3a6..b14f23471808 100644 --- a/samples/cellular/nrf_cloud_rest_fota/sysbuild/mcuboot/prj.conf +++ b/samples/cellular/nrf_cloud_rest_fota/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/cellular/smp_svr/sysbuild/mcuboot/prj.conf b/samples/cellular/smp_svr/sysbuild/mcuboot/prj.conf index bfd2a6e11956..8e13e683be8f 100644 --- a/samples/cellular/smp_svr/sysbuild/mcuboot/prj.conf +++ b/samples/cellular/smp_svr/sysbuild/mcuboot/prj.conf @@ -10,18 +10,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/common/mcumgr_bt_ota_dfu/CMakeLists.txt b/samples/common/mcumgr_bt_ota_dfu/CMakeLists.txt index 1ef975a7dd1a..13afc6eb6d77 100644 --- a/samples/common/mcumgr_bt_ota_dfu/CMakeLists.txt +++ b/samples/common/mcumgr_bt_ota_dfu/CMakeLists.txt @@ -6,7 +6,7 @@ if (CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_VALIDATION) - if (CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP AND CONFIG_BT_CTLR) + if (CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP AND CONFIG_HAS_BT_CTLR) if ((NOT (CONFIG_BT_BUF_ACL_TX_SIZE EQUAL 251)) OR (NOT (CONFIG_BT_BUF_ACL_RX_SIZE EQUAL 502)) OR (NOT (CONFIG_BT_CTLR_DATA_LENGTH_MAX EQUAL 251)) diff --git a/samples/dect/dect_phy/dect_shell/prj.conf b/samples/dect/dect_phy/dect_shell/prj.conf index 856c3d22fbd0..94c5e09deee7 100644 --- a/samples/dect/dect_phy/dect_shell/prj.conf +++ b/samples/dect/dect_phy/dect_shell/prj.conf @@ -78,7 +78,6 @@ CONFIG_LOG=y CONFIG_PRINTK=y CONFIG_LOG_PRINTK=n -CONFIG_DEBUG_INFO=y #CONFIG_DEBUG_OPTIMIZATIONS=y #CONFIG_NO_OPTIMIZATIONS=y #CONFIG_FORCE_NO_ASSERT=y diff --git a/samples/matter/contact_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/contact_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index 8476b1077adc..d8bd22a3ca1a 100644 --- a/samples/matter/contact_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/contact_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/light_bulb/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet_thread_wifi_switched.conf b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet_thread_wifi_switched.conf index cc6e788f8684..8db73dce6d00 100644 --- a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet_thread_wifi_switched.conf +++ b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet_thread_wifi_switched.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet_nrf7001.conf b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet_nrf7001.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet_nrf7001.conf +++ b/samples/matter/lock/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet_nrf7001.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index 8476b1077adc..d8bd22a3ca1a 100644 --- a/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/manufacturer_specific/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/smoke_co_alarm/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/smoke_co_alarm/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index 5df075031318..c3fc7b02051a 100644 --- a/samples/matter/smoke_co_alarm/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/smoke_co_alarm/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/temperature_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/temperature_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index 8476b1077adc..d8bd22a3ca1a 100644 --- a/samples/matter/temperature_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/temperature_sensor/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/template/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/template/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/template/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/template/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/template/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/template/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/template/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/template/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/thermostat/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf b/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf index c595604cea21..3e7c776e5a03 100644 --- a/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf +++ b/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf b/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf index 9aa8903ed90d..19f2761ce222 100644 --- a/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf +++ b/samples/matter/window_covering/sysbuild/ipc_radio/boards/nrf7002dk_nrf5340_cpunet.conf @@ -32,7 +32,6 @@ CONFIG_BT_CTLR_PHY_2M=n # Debug and assert configuration CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_RESET_ON_FATAL_ERROR=n CONFIG_REBOOT=n diff --git a/samples/net/aws_iot/sysbuild/mcuboot/prj.conf b/samples/net/aws_iot/sysbuild/mcuboot/prj.conf index fb07827136b9..ca7adf35ff53 100644 --- a/samples/net/aws_iot/sysbuild/mcuboot/prj.conf +++ b/samples/net/aws_iot/sysbuild/mcuboot/prj.conf @@ -18,18 +18,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set # CONFIG_LOG=y diff --git a/samples/net/azure_iot_hub/sysbuild/mcuboot/prj.conf b/samples/net/azure_iot_hub/sysbuild/mcuboot/prj.conf index 41a76acf2081..0ef784231d13 100644 --- a/samples/net/azure_iot_hub/sysbuild/mcuboot/prj.conf +++ b/samples/net/azure_iot_hub/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/net/https_client/sysbuild/mcuboot/prj.conf b/samples/net/https_client/sysbuild/mcuboot/prj.conf index 137bb57531be..63e9968f7d2c 100644 --- a/samples/net/https_client/sysbuild/mcuboot/prj.conf +++ b/samples/net/https_client/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/net/mqtt/src/modules/transport/transport.c b/samples/net/mqtt/src/modules/transport/transport.c index 8a76879bb559..68cf5e51ee78 100644 --- a/samples/net/mqtt/src/modules/transport/transport.c +++ b/samples/net/mqtt/src/modules/transport/transport.c @@ -270,7 +270,7 @@ static void disconnected_entry(void *o) } /* Function executed when the module is in the disconnected state. */ -static void disconnected_run(void *o) +static enum smf_state_result disconnected_run(void *o) { struct s_object *user_object = o; @@ -289,6 +289,8 @@ static void disconnected_run(void *o) */ k_work_reschedule_for_queue(&transport_queue, &connect_work, K_SECONDS(5)); } + + return SMF_EVENT_HANDLED; } /* Function executed when the module enters the connected state. */ @@ -309,7 +311,7 @@ static void connected_entry(void *o) } /* Function executed when the module is in the connected state. */ -static void connected_run(void *o) +static enum smf_state_result connected_run(void *o) { struct s_object *user_object = o; @@ -319,14 +321,16 @@ static void connected_run(void *o) * The call to this function will cause on_mqtt_disconnect() to be called. */ (void)mqtt_helper_disconnect(); - return; + return SMF_EVENT_HANDLED; } if (user_object->chan != &PAYLOAD_CHAN) { - return; + return SMF_EVENT_HANDLED; } publish(&user_object->payload); + + return SMF_EVENT_HANDLED; } /* Function executed when the module exits the connected state. */ diff --git a/samples/nfc/writable_ndef_msg/Kconfig b/samples/nfc/writable_ndef_msg/Kconfig index 570b643db1fc..368c0c89bd14 100644 --- a/samples/nfc/writable_ndef_msg/Kconfig +++ b/samples/nfc/writable_ndef_msg/Kconfig @@ -7,6 +7,7 @@ source "Kconfig.zephyr" config ZMS + select CRC default y if (SOC_FLASH_NRF_RRAM || SOC_FLASH_NRF_MRAM) config NVS diff --git a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj.conf b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj.conf index 8fb46597374d..d32556bb2253 100644 --- a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj.conf +++ b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core.conf b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core.conf index 62f90733eb0a..43b45134abe3 100644 --- a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core.conf +++ b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core_directxip.conf b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core_directxip.conf index 62f90733eb0a..43b45134abe3 100644 --- a/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core_directxip.conf +++ b/samples/nrf5340/extxip_smp_svr/sysbuild/mcuboot/prj_no_network_core_directxip.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/nrf5340/remote_shell/prj.conf b/samples/nrf5340/remote_shell/prj.conf index d9cc289a4a67..f1be5985c1fa 100644 --- a/samples/nrf5340/remote_shell/prj.conf +++ b/samples/nrf5340/remote_shell/prj.conf @@ -7,15 +7,17 @@ CONFIG_STDOUT_CONSOLE=y -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_PRODUCT="Nordic Remote Shell sample" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x53AA +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Nordic Remote Shell sample" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x53AA CONFIG_LOG=y -CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y -CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y +CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y +CONFIG_USBD_LOG_LEVEL_ERR=y CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y diff --git a/samples/nrf5340/remote_shell/src/main.c b/samples/nrf5340/remote_shell/src/main.c index b7ad0b73cc74..7d238453c538 100644 --- a/samples/nrf5340/remote_shell/src/main.c +++ b/samples/nrf5340/remote_shell/src/main.c @@ -11,7 +11,6 @@ #include #include #include -#include #include "shell_ipc_host.h" @@ -139,14 +138,6 @@ int main(void) return 0; } - if (IS_ENABLED(CONFIG_USB_DEVICE_STACK)) { - err = usb_enable(NULL); - if (err != 0) { - LOG_ERR("Failed to enable USB, err %d", err); - return 0; - } - } - if (IS_ENABLED(CONFIG_UART_LINE_CTRL)) { LOG_INF("Wait for DTR"); diff --git a/samples/openthread/cli/snippets/usb/usb.conf b/samples/openthread/cli/snippets/usb/usb.conf index 7e6d32c1e164..f84c63d80f49 100644 --- a/samples/openthread/cli/snippets/usb/usb.conf +++ b/samples/openthread/cli/snippets/usb/usb.conf @@ -8,11 +8,11 @@ CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51 CONFIG_UART_LINE_CTRL=y CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y -CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y +CONFIG_USBD_CDC_ACM_LOG_LEVEL_OFF=y -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_REMOTE_WAKEUP=n -CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" -CONFIG_USB_DEVICE_PRODUCT="Thread CLI" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x0000 +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Thread CLI" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x0000 diff --git a/samples/openthread/cli/src/main.c b/samples/openthread/cli/src/main.c index c169cbcefbcd..f3e29aaebc92 100644 --- a/samples/openthread/cli/src/main.c +++ b/samples/openthread/cli/src/main.c @@ -16,7 +16,6 @@ #endif #include -#include LOG_MODULE_REGISTER(cli_sample, CONFIG_OT_COMMAND_LINE_INTERFACE_LOG_LEVEL); @@ -37,12 +36,6 @@ int main(void) const struct device *dev; uint32_t dtr = 0U; - ret = usb_enable(NULL); - if (ret != 0 && ret != -EALREADY) { - LOG_ERR("Failed to enable USB"); - return 0; - } - dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_shell_uart)); if (dev == NULL) { LOG_ERR("Failed to find specific UART device"); diff --git a/samples/openthread/cli/sysbuild/ipc_radio/prj_ble.conf b/samples/openthread/cli/sysbuild/ipc_radio/prj_ble.conf index 0390bce97567..4e5316fda470 100644 --- a/samples/openthread/cli/sysbuild/ipc_radio/prj_ble.conf +++ b/samples/openthread/cli/sysbuild/ipc_radio/prj_ble.conf @@ -22,7 +22,6 @@ CONFIG_BT_MAX_CONN=4 CONFIG_BT_CTLR_ASSERT_HANDLER=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_NRF_802154_SER_RADIO=y diff --git a/samples/openthread/coap_client/sysbuild/ipc_radio/prj_ble.conf b/samples/openthread/coap_client/sysbuild/ipc_radio/prj_ble.conf index 2db76a00c55a..8f3b2548ef62 100644 --- a/samples/openthread/coap_client/sysbuild/ipc_radio/prj_ble.conf +++ b/samples/openthread/coap_client/sysbuild/ipc_radio/prj_ble.conf @@ -22,7 +22,6 @@ CONFIG_BT_MAX_CONN=4 CONFIG_BT_CTLR_ASSERT_HANDLER=y CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_NRF_802154_SER_RADIO=y diff --git a/samples/openthread/coprocessor/README.rst b/samples/openthread/coprocessor/README.rst index 0b4ab8550c98..a362c5510ddf 100644 --- a/samples/openthread/coprocessor/README.rst +++ b/samples/openthread/coprocessor/README.rst @@ -121,8 +121,6 @@ The following snippets are available: The ``usb`` snippet does not support the ``nrf54l15dk/nrf54l15/cpuapp``, ``nrf54l15dk/nrf54l10/cpuapp`` and ``nrf54l15dk/nrf54l05/cpuapp`` board targets. * ``hci`` - Enables support for the Bluetooth HCI interface parallel to :ref:`Thread RCP `. -* ``l2`` - Enables the Zephyr networking layer. -* ``logging_l2`` - Enables logging from the Zephyr networking layer. FEM support =========== diff --git a/samples/openthread/coprocessor/sample.yaml b/samples/openthread/coprocessor/sample.yaml index 1cf94b14b0c3..913aadf41dee 100644 --- a/samples/openthread/coprocessor/sample.yaml +++ b/samples/openthread/coprocessor/sample.yaml @@ -88,24 +88,3 @@ tests: - nrf21540dk/nrf52840 integration_platforms: - nrf52840dk/nrf52840 - sample.openthread.coprocessor.l2: - sysbuild: true - build_only: true - tags: - - ci_build - - sysbuild - - ci_samples_openthread - platform_allow: - - nrf52840dk/nrf52840 - - nrf54l15dk/nrf54l15/cpuapp - - nrf54l15dk/nrf54l10/cpuapp - - nrf54lm20dk/nrf54lm20a/cpuapp - - nrf54l15dk/nrf54l15/cpuapp/ns - extra_args: - - cli_SNIPPET="ci;l2" - integration_platforms: - - nrf52840dk/nrf52840 - - nrf54l15dk/nrf54l15/cpuapp - - nrf54l15dk/nrf54l10/cpuapp - - nrf54lm20dk/nrf54lm20a/cpuapp - - nrf54l15dk/nrf54l15/cpuapp/ns diff --git a/samples/openthread/coprocessor/snippets/hci/rcp_hci.conf b/samples/openthread/coprocessor/snippets/hci/rcp_hci.conf index ae78427c5881..5d2307037f9d 100644 --- a/samples/openthread/coprocessor/snippets/hci/rcp_hci.conf +++ b/samples/openthread/coprocessor/snippets/hci/rcp_hci.conf @@ -24,12 +24,11 @@ CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255 # Host number of completed commands does not follow normal flow control. CONFIG_BT_BUF_CMD_TX_COUNT=10 -CONFIG_USB_CDC_ACM=y -CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" -CONFIG_USB_DEVICE_PRODUCT="Thread Co-Processor with BLE HCI" -CONFIG_USB_DEVICE_VID=0xCAFD -CONFIG_USB_DEVICE_PID=0x0000 -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_REMOTE_WAKEUP=n +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Thread Co-Processor" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x0000 CONFIG_UART_LINE_CTRL=y diff --git a/samples/openthread/coprocessor/snippets/l2/l2.conf b/samples/openthread/coprocessor/snippets/l2/l2.conf deleted file mode 100644 index 07f8fa07e657..000000000000 --- a/samples/openthread/coprocessor/snippets/l2/l2.conf +++ /dev/null @@ -1,21 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - - -# Enable Zephyr's OpenThread L2 layer -CONFIG_NET_L2_OPENTHREAD=y - -# Enable networking required by L2 layer -CONFIG_NETWORKING=y - -# Enable Zperf -CONFIG_NET_SHELL=y -CONFIG_NET_ZPERF=y -CONFIG_NET_ZPERF_SERVER=y -CONFIG_NET_CONTEXT_RCVTIMEO=y -CONFIG_NET_SOCKETS=y -CONFIG_ZVFS_OPEN_MAX=9 -CONFIG_NET_SOCKETS_POLL_MAX=9 diff --git a/samples/openthread/coprocessor/snippets/l2/snippet.yml b/samples/openthread/coprocessor/snippets/l2/snippet.yml deleted file mode 100644 index e3f6dee4160e..000000000000 --- a/samples/openthread/coprocessor/snippets/l2/snippet.yml +++ /dev/null @@ -1,9 +0,0 @@ -# -# Copyright (c) 2025 Nordic Semiconductor -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -name: l2 -append: - EXTRA_CONF_FILE: l2.conf diff --git a/samples/openthread/coprocessor/snippets/usb/usb.conf b/samples/openthread/coprocessor/snippets/usb/usb.conf index c7cac6bb7b84..5b1d8c715808 100644 --- a/samples/openthread/coprocessor/snippets/usb/usb.conf +++ b/samples/openthread/coprocessor/snippets/usb/usb.conf @@ -4,12 +4,11 @@ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause # -CONFIG_USB_CDC_ACM=y -CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" -CONFIG_USB_DEVICE_PRODUCT="Thread Co-Processor" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x0000 -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_REMOTE_WAKEUP=n +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Thread Co-Processor" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x0000 CONFIG_UART_LINE_CTRL=y diff --git a/samples/openthread/coprocessor/src/rcp_hci.c b/samples/openthread/coprocessor/src/rcp_hci.c index 3d721f445d5b..cf13233e0f24 100644 --- a/samples/openthread/coprocessor/src/rcp_hci.c +++ b/samples/openthread/coprocessor/src/rcp_hci.c @@ -17,8 +17,6 @@ #include #include -#include - #include #include #include @@ -26,6 +24,8 @@ #include #include +#include + LOG_MODULE_REGISTER(rcp_hci_module, CONFIG_OT_COPROCESSOR_LOG_LEVEL); static const struct device *const hci_uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_c2h_uart)); diff --git a/samples/peripheral/802154_sniffer/prj.conf b/samples/peripheral/802154_sniffer/prj.conf index 2baa60af5b66..008ebead08bf 100644 --- a/samples/peripheral/802154_sniffer/prj.conf +++ b/samples/peripheral/802154_sniffer/prj.conf @@ -21,15 +21,17 @@ CONFIG_SHELL_VT100_COLORS=n CONFIG_DK_LIBRARY=y # USB configuration -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" -CONFIG_USB_DEVICE_PRODUCT="nRF 802154 Sniffer" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x154b CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y CONFIG_UART_LINE_CTRL=y CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51 -CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y + +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_PID=0x0004 +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="nRF 802154 Sniffer" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x154b # Disable boot banner CONFIG_BOOT_BANNER=n diff --git a/samples/peripheral/radio_test/sysbuild/remote_shell/prj_usb.conf b/samples/peripheral/radio_test/sysbuild/remote_shell/prj_usb.conf index e4df2db7d0a1..f7ac8327acd4 100644 --- a/samples/peripheral/radio_test/sysbuild/remote_shell/prj_usb.conf +++ b/samples/peripheral/radio_test/sysbuild/remote_shell/prj_usb.conf @@ -17,10 +17,13 @@ CONFIG_IPC_SERVICE_BACKEND_RPMSG=y CONFIG_HEAP_MEM_POOL_SIZE=4096 -CONFIG_USB_DEVICE_STACK=y -CONFIG_USB_DEVICE_PRODUCT="Nordic Remote Shell sample" -CONFIG_USB_DEVICE_VID=0x1915 -CONFIG_USB_DEVICE_PID=0x53AA +CONFIG_USB_DEVICE_STACK_NEXT=y +CONFIG_CDC_ACM_SERIAL_INITIALIZE_AT_BOOT=y +CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" +CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="Nordic Remote Shell sample" +CONFIG_CDC_ACM_SERIAL_VID=0x1915 +CONFIG_CDC_ACM_SERIAL_PID=0x53AA + # Config logger CONFIG_LOG=y @@ -28,7 +31,7 @@ CONFIG_LOG_PRINTK=y CONFIG_USE_SEGGER_RTT=y CONFIG_LOG_BACKEND_RTT=y CONFIG_LOG_BACKEND_UART=n -CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y -CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y +CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y +CONFIG_USBD_LOG_LEVEL_ERR=y CONFIG_SOC_NRF53_CPUNET_ENABLE=y diff --git a/samples/pmic/native/npm13xx_fuel_gauge/README.rst b/samples/pmic/native/npm13xx_fuel_gauge/README.rst index 5407acf5441c..f2a69ab0c1a9 100644 --- a/samples/pmic/native/npm13xx_fuel_gauge/README.rst +++ b/samples/pmic/native/npm13xx_fuel_gauge/README.rst @@ -121,7 +121,7 @@ You can use either the nRF Connect for VS Code extension or the command line. .. code-block:: bash - -DSHIELD=npm1300_ek + -Dnpm13xx_fuel_gauge_SHIELD=npm1300_ek To apply an extra overlay, choose the respective file from the **Extra Devicetree overlays** drop-down menu diff --git a/samples/pmic/native/npm13xx_fuel_gauge/sample.yaml b/samples/pmic/native/npm13xx_fuel_gauge/sample.yaml index c162acf8b5a6..f65e59432412 100644 --- a/samples/pmic/native/npm13xx_fuel_gauge/sample.yaml +++ b/samples/pmic/native/npm13xx_fuel_gauge/sample.yaml @@ -30,11 +30,11 @@ tests: sysbuild: true build_only: true extra_args: - - SHIELD=npm1300_ek + - npm13xx_fuel_gauge_SHIELD=npm1300_ek - EXTRA_DTC_OVERLAY_FILE=npm1300.overlay sample.npm1304_fuel_gauge_compile: sysbuild: true build_only: true extra_args: - - SHIELD=npm1304_ek + - npm13xx_fuel_gauge_SHIELD=npm1304_ek - EXTRA_DTC_OVERLAY_FILE=npm1304.overlay diff --git a/samples/pmic/native/npm13xx_one_button/README.rst b/samples/pmic/native/npm13xx_one_button/README.rst index 109885875935..95819fb9d0cc 100644 --- a/samples/pmic/native/npm13xx_one_button/README.rst +++ b/samples/pmic/native/npm13xx_one_button/README.rst @@ -118,7 +118,7 @@ You can use either the nRF Connect for VS Code extension or the command line. .. code-block:: bash - -DSHIELD=npm1300_ek + -Dnpm13xx_one_button_SHIELD=npm1300_ek To apply an extra overlay, choose the respective file from the **Extra Devicetree overlays** drop-down menu diff --git a/samples/pmic/native/npm13xx_one_button/sample.yaml b/samples/pmic/native/npm13xx_one_button/sample.yaml index 31d8893df7ef..b23f85c3ef8d 100644 --- a/samples/pmic/native/npm13xx_one_button/sample.yaml +++ b/samples/pmic/native/npm13xx_one_button/sample.yaml @@ -30,11 +30,11 @@ tests: sysbuild: true build_only: true extra_args: - - SHIELD=npm1300_ek + - npm13xx_one_button_SHIELD=npm1300_ek - EXTRA_DTC_OVERLAY_FILE=npm1300.overlay sample.npm1304_one_button_compile: sysbuild: true build_only: true extra_args: - - SHIELD=npm1304_ek + - npm13xx_one_button_SHIELD=npm1304_ek - EXTRA_DTC_OVERLAY_FILE=npm1304.overlay diff --git a/samples/wifi/ble_coex/sysbuild/ipc_radio/prj.conf b/samples/wifi/ble_coex/sysbuild/ipc_radio/prj.conf index a54ac9e71052..c819ff23f2bd 100644 --- a/samples/wifi/ble_coex/sysbuild/ipc_radio/prj.conf +++ b/samples/wifi/ble_coex/sysbuild/ipc_radio/prj.conf @@ -26,7 +26,6 @@ CONFIG_BT_BUF_ACL_TX_SIZE=502 CONFIG_BT_MAX_CONN=2 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_IPC_RADIO_BT=y CONFIG_IPC_RADIO_BT_HCI_IPC=y diff --git a/samples/wifi/monitor/overlay-netusb.conf b/samples/wifi/monitor/overlay-netusb.conf index e7a3a45a09e4..ee8233f61b9f 100644 --- a/samples/wifi/monitor/overlay-netusb.conf +++ b/samples/wifi/monitor/overlay-netusb.conf @@ -14,3 +14,6 @@ CONFIG_NET_SOCKETS_POLL_MAX=10 # DUT responses are > 1500, so, need to fragment CONFIG_NET_IPV4_FRAGMENT=y CONFIG_NET_IPV4_FRAGMENT_MAX_COUNT=10 + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/wifi/promiscuous/overlay-netusb.conf b/samples/wifi/promiscuous/overlay-netusb.conf index e7a3a45a09e4..ee8233f61b9f 100644 --- a/samples/wifi/promiscuous/overlay-netusb.conf +++ b/samples/wifi/promiscuous/overlay-netusb.conf @@ -14,3 +14,6 @@ CONFIG_NET_SOCKETS_POLL_MAX=10 # DUT responses are > 1500, so, need to fragment CONFIG_NET_IPV4_FRAGMENT=y CONFIG_NET_IPV4_FRAGMENT_MAX_COUNT=10 + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/wifi/provisioning/softap/prj.conf b/samples/wifi/provisioning/softap/prj.conf index 4c43dfcea34a..328d8847f63d 100644 --- a/samples/wifi/provisioning/softap/prj.conf +++ b/samples/wifi/provisioning/softap/prj.conf @@ -23,6 +23,7 @@ CONFIG_WIFI_NM_WPA_SUPPLICANT=y CONFIG_WIFI_NM_WPA_SUPPLICANT_AP=y CONFIG_NET_L2_ETHERNET=y CONFIG_WIFI_CREDENTIALS=y +CONFIG_SETTINGS=y # General CONFIG_LOG=y diff --git a/samples/wifi/shell/boards/thingy91x_nrf5340_cpuapp.conf b/samples/wifi/shell/boards/thingy91x_nrf5340_cpuapp.conf index c02f67e58778..67f04add5b53 100644 --- a/samples/wifi/shell/boards/thingy91x_nrf5340_cpuapp.conf +++ b/samples/wifi/shell/boards/thingy91x_nrf5340_cpuapp.conf @@ -11,8 +11,6 @@ CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 CONFIG_SPI_NOR_SFDP_DEVICETREE=y CONFIG_I2C=y -CONFIG_NFCT_PINS_AS_GPIOS=y - # USB CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DEVICE_PRODUCT="Thingy:91 X Wi-Fi Shell" @@ -32,3 +30,6 @@ CONFIG_RTT_CONSOLE=n CONFIG_FW_INFO=y CONFIG_SECURE_BOOT_STORAGE=y + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/wifi/shell/overlay-netusb.conf b/samples/wifi/shell/overlay-netusb.conf index abdc8dc6e222..5136b086e81b 100644 --- a/samples/wifi/shell/overlay-netusb.conf +++ b/samples/wifi/shell/overlay-netusb.conf @@ -17,3 +17,6 @@ CONFIG_NET_IPV4_FRAGMENT_MAX_COUNT=10 # For netusb WFA_THREADS_NUM CONFIG_POSIX_THREAD_THREADS_MAX=5 + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/wifi/shell/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf b/samples/wifi/shell/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf index 9b840fc2b9ac..b6ab59846315 100644 --- a/samples/wifi/shell/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf +++ b/samples/wifi/shell/sysbuild/mcuboot/boards/thingy91x_nrf5340_cpuapp.conf @@ -83,3 +83,6 @@ CONFIG_MFD_NPM13XX=n CONFIG_BOOT_SERIAL_NO_APPLICATION=y CONFIG_PM_DEVICE_RUNTIME=y + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/wifi/shell/sysbuild/mcuboot/prj.conf b/samples/wifi/shell/sysbuild/mcuboot/prj.conf index 04f385356e12..7b6aba30942a 100644 --- a/samples/wifi/shell/sysbuild/mcuboot/prj.conf +++ b/samples/wifi/shell/sysbuild/mcuboot/prj.conf @@ -18,18 +18,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/samples/wifi/wfa_qt_app/overlay-netusb.conf b/samples/wifi/wfa_qt_app/overlay-netusb.conf index 45049168260c..6a93f45c60c6 100644 --- a/samples/wifi/wfa_qt_app/overlay-netusb.conf +++ b/samples/wifi/wfa_qt_app/overlay-netusb.conf @@ -12,3 +12,6 @@ CONFIG_NET_IF_MAX_IPV4_COUNT=2 CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2 CONFIG_NET_CONFIG_USB_IPV4_ADDR="192.0.2.1" CONFIG_USB_NRFX_WORK_QUEUE_STACK_SIZE=2048 + +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y diff --git a/samples/zephyr/drivers/i2c/rtio_loopback/Kconfig b/samples/zephyr/drivers/i2c/rtio_loopback/Kconfig new file mode 100644 index 000000000000..820e72f8d52b --- /dev/null +++ b/samples/zephyr/drivers/i2c/rtio_loopback/Kconfig @@ -0,0 +1 @@ +source "samples/drivers/i2c/rtio_loopback/Kconfig" diff --git a/samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sysbuild/mcuboot_merged_slot.overlay b/samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sysbuild/mcuboot_merged_slot.overlay index 80537ee8643b..267c6263d9cb 100644 --- a/samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sysbuild/mcuboot_merged_slot.overlay +++ b/samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sysbuild/mcuboot_merged_slot.overlay @@ -11,3 +11,58 @@ zephyr,code-partition = &boot_partition; }; }; + +/* + * Copy required overlay for mcuboot from bootloader/mcuboot. + * + * Required as the overlay in bootloader/mcuboot is ignored due to + * FILE_SUFFIX="merged_slot" matching this overlay instead. + */ + +&gdpwr { + status = "disabled"; +}; + +&gdpwr_fast_active_0 { + status = "disabled"; +}; + +&gdpwr_fast_active_1 { + status = "disabled"; +}; + +&gdpwr_fast_main { + status = "disabled"; +}; + +&gdpwr_slow_active { + status = "disabled"; +}; + +&gdpwr_slow_main { + status = "disabled"; +}; + +&gpio_pad_group0 { + status = "disabled"; +}; + +&gpio_pad_group1 { + status = "disabled"; +}; + +&gpio_pad_group2 { + status = "disabled"; +}; + +&gpio_pad_group6 { + status = "disabled"; +}; + +&gpio_pad_group7 { + status = "disabled"; +}; + +&gpio_pad_group9 { + status = "disabled"; +}; diff --git a/scripts/quarantine.yaml b/scripts/quarantine.yaml index a8ef6a55f3e4..ccca792075df 100644 --- a/scripts/quarantine.yaml +++ b/scripts/quarantine.yaml @@ -100,6 +100,12 @@ - nrf54h20dk@0.9.0/nrf54h20/cpuapp comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35382" +- scenarios: + - sample.bluetooth.mesh.sensor_client + platforms: + - nrf52dk/nrf52832 + comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35409" + - scenarios: - sample.bluetooth.peripheral_mds platforms: @@ -110,3 +116,16 @@ - nrf54lm20dk/nrf54lm20a/cpuapp - nrf54lv10dk@0.2.0/nrf54lv10a/cpuapp comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35468" + +- scenarios: + - sample.nrf7002_eb.thingy53.shell + platforms: + - thingy53/nrf5340/cpuapp + comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35521" + +- scenarios: + - applications.machine_learning.zrelease + - applications.machine_learning.zdebug + platforms: + - thingy53/nrf5340/cpuapp + comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35522" diff --git a/scripts/quarantine_integration.yaml b/scripts/quarantine_integration.yaml index c25c6a8bec17..7ec4b8b76f07 100644 --- a/scripts/quarantine_integration.yaml +++ b/scripts/quarantine_integration.yaml @@ -476,7 +476,6 @@ - scenarios: - fast_pair.crypto.oberon - - fast_pair.crypto.tinycrypt - fast_pair.crypto.psa platforms: - nrf52840dk/nrf52840 diff --git a/scripts/quarantine_zephyr.yaml b/scripts/quarantine_zephyr.yaml index 50f13976c153..edb670d9d234 100644 --- a/scripts/quarantine_zephyr.yaml +++ b/scripts/quarantine_zephyr.yaml @@ -246,6 +246,12 @@ - nrf54lm20dk/nrf54lm20a/cpuapp comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35490" +- scenarios: + - net.http.server.tls.toolchain + platforms: + - native_sim/native + comment: "https://nordicsemi.atlassian.net/browse/NCSDK-35519" + # --------------------------------- Won't fix section ----------------------------------- - scenarios: @@ -330,6 +336,7 @@ - kernel.threads.dynamic_thread.stack.no_pool.alloc.no_user - kernel.threads.dynamic_thread.stack.pool.no_alloc.no_user - kernel.threads.dynamic_thread.stack.no_pool.no_alloc.user + - kernel.poll.minimallibc - kernel.scheduler.no_timeslicing - kernel.scheduler.dumb_no_timeslicing - kernel.scheduler.dumb_timeslicing @@ -398,6 +405,7 @@ - sample.net.sockets.socketpair - sample.drivers.crypto.mbedtls - kernel.workqueue.api + - kernel.workqueue.work_timeout - sample.posix.env - sample.shell.shell_module - kernel.common @@ -423,6 +431,7 @@ - crypto.tinycrypt.hmac_prng - drivers.can.shell - kernel.common + - kernel.common.lto - kernel.common.minimallibc - kernel.common.misra - kernel.common.nano32 diff --git a/subsys/bluetooth/controller/hci_internal.c b/subsys/bluetooth/controller/hci_internal.c index 7e23b38412de..864284b962d3 100644 --- a/subsys/bluetooth/controller/hci_internal.c +++ b/subsys/bluetooth/controller/hci_internal.c @@ -1789,7 +1789,7 @@ int hci_internal_msg_get(uint8_t *msg_out, sdc_hci_msg_type_t *msg_type_out) return 0; } - const int retval = sdc_hci_get(msg_out, msg_type_out); + const int retval = sdc_hci_get(msg_out, (uint8_t*)msg_type_out); #if defined(CONFIG_BT_CTLR_SDC_PAWR_SYNC) if (retval == 0 && *msg_type_out == SDC_HCI_MSG_TYPE_EVT diff --git a/subsys/bluetooth/cs_de/cs_de.c b/subsys/bluetooth/cs_de/cs_de.c index 816b20cf9a1f..a927ad100fa0 100644 --- a/subsys/bluetooth/cs_de/cs_de.c +++ b/subsys/bluetooth/cs_de/cs_de.c @@ -358,7 +358,7 @@ static bool process_step_data(struct bt_le_cs_subevent_step *local_step, { cs_de_report_t *p_report = (cs_de_report_t *)user_data; - if (local_step->mode == BT_CONN_LE_CS_MAIN_MODE_2) { + if (local_step->mode == BT_HCI_OP_LE_CS_MAIN_MODE_2) { struct bt_hci_le_cs_step_data_mode_2 *local_step_data = (struct bt_hci_le_cs_step_data_mode_2 *)local_step->data; struct bt_hci_le_cs_step_data_mode_2 *peer_step_data = diff --git a/subsys/bluetooth/rpc/Kconfig b/subsys/bluetooth/rpc/Kconfig index 2b5487120fa7..bf0a43e55fe4 100644 --- a/subsys/bluetooth/rpc/Kconfig +++ b/subsys/bluetooth/rpc/Kconfig @@ -41,6 +41,7 @@ config BT_RPC_CLIENT config BT_RPC_HOST bool "Bluetooth over RPC Host" + select BT_CONN_DYNAMIC_CALLBACKS help Bluetooth Low Energy API will use nRF RPC library to provide API for client on the remote core. @@ -80,6 +81,10 @@ config BT_SHELL select SHELL select BT_PRIVATE_SHELL +config BT_CONN_DYNAMIC_CALLBACKS + bool + default y + endif # BT_RPC_CLIENT if BT_RPC_HOST diff --git a/subsys/bluetooth/services/fast_pair/fp_crypto/CMakeLists.txt b/subsys/bluetooth/services/fast_pair/fp_crypto/CMakeLists.txt index bc9e2f3acbfa..e0194cc36b3b 100644 --- a/subsys/bluetooth/services/fast_pair/fp_crypto/CMakeLists.txt +++ b/subsys/bluetooth/services/fast_pair/fp_crypto/CMakeLists.txt @@ -13,9 +13,6 @@ if(CONFIG_BT_FAST_PAIR_CRYPTO_OBERON) target_sources(fp_crypto PRIVATE fp_crypto_oberon.c) target_link_libraries(fp_crypto PRIVATE nrfxlib_crypto) endif() -if(CONFIG_BT_FAST_PAIR_CRYPTO_TINYCRYPT) - target_sources(fp_crypto PRIVATE fp_crypto_tinycrypt.c) -endif() if(CONFIG_BT_FAST_PAIR_CRYPTO_PSA) target_sources(fp_crypto PRIVATE fp_crypto_psa.c) endif() diff --git a/subsys/bluetooth/services/fast_pair/fp_crypto/Kconfig.fp_crypto b/subsys/bluetooth/services/fast_pair/fp_crypto/Kconfig.fp_crypto index 48829c8407d5..344f45b572a4 100644 --- a/subsys/bluetooth/services/fast_pair/fp_crypto/Kconfig.fp_crypto +++ b/subsys/bluetooth/services/fast_pair/fp_crypto/Kconfig.fp_crypto @@ -18,16 +18,6 @@ choice BT_FAST_PAIR_CRYPTO_BACKEND help Select the Fast Pair cryptographic backend. -config BT_FAST_PAIR_CRYPTO_TINYCRYPT - bool "Fast Pair with Tinycrypt cryptographic backend" - select TINYCRYPT - select TINYCRYPT_SHA256 - select TINYCRYPT_SHA256_HMAC - select TINYCRYPT_AES - select TINYCRYPT_ECC_DH - help - Select Tinycrypt cryptographic backend for Fast Pair. - config BT_FAST_PAIR_CRYPTO_OBERON bool "Fast Pair with Oberon cryptographic backend" select NRF_OBERON diff --git a/subsys/bluetooth/services/fast_pair/fp_crypto/fp_crypto_tinycrypt.c b/subsys/bluetooth/services/fast_pair/fp_crypto/fp_crypto_tinycrypt.c deleted file mode 100644 index 9d06509bfc37..000000000000 --- a/subsys/bluetooth/services/fast_pair/fp_crypto/fp_crypto_tinycrypt.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2022 Nordic Semiconductor ASA - * - * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause - */ - -#include -#include -#include -#include -#include -#include -#include "fp_crypto.h" - -int fp_crypto_sha256(uint8_t *out, const uint8_t *in, size_t data_len) -{ - struct tc_sha256_state_struct s; - - if (tc_sha256_init(&s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_sha256_update(&s, in, data_len) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_sha256_final(out, &s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - return 0; -} - -int fp_crypto_hmac_sha256(uint8_t *out, - const uint8_t *in, - size_t data_len, - const uint8_t *hmac_key, - size_t hmac_key_len) -{ - struct tc_hmac_state_struct s; - - if (tc_hmac_set_key(&s, hmac_key, hmac_key_len) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_hmac_init(&s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_hmac_update(&s, in, data_len) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_hmac_final(out, FP_CRYPTO_SHA256_HASH_LEN, &s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - return 0; -} - -int fp_crypto_aes128_ecb_encrypt(uint8_t *out, const uint8_t *in, const uint8_t *k) -{ - struct tc_aes_key_sched_struct s; - - if (tc_aes128_set_encrypt_key(&s, k) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_aes_encrypt(out, in, &s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - return 0; -} - -int fp_crypto_aes128_ecb_decrypt(uint8_t *out, const uint8_t *in, const uint8_t *k) -{ - struct tc_aes_key_sched_struct s; - - if (tc_aes128_set_decrypt_key(&s, k) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - if (tc_aes_decrypt(out, in, &s) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - return 0; -} - -int fp_crypto_ecdh_shared_secret(uint8_t *secret_key, const uint8_t *public_key, - const uint8_t *private_key) -{ - const struct uECC_Curve_t *curve = uECC_secp256r1(); - - if (uECC_valid_public_key(public_key, curve) != 0) { - return -EINVAL; - } - if (uECC_shared_secret(public_key, private_key, secret_key, curve) != TC_CRYPTO_SUCCESS) { - return -EINVAL; - } - return 0; -} diff --git a/subsys/net/lib/softap_wifi_provision/softap_wifi_provision.c b/subsys/net/lib/softap_wifi_provision/softap_wifi_provision.c index a6b3b28d59e0..e925e5f1ec92 100644 --- a/subsys/net/lib/softap_wifi_provision/softap_wifi_provision.c +++ b/subsys/net/lib/softap_wifi_provision/softap_wifi_provision.c @@ -600,7 +600,7 @@ static void init_entry(void *o) parser_settings.on_url = on_url; } -static void init_run(void *o) +static enum smf_state_result init_run(void *o) { struct s_object *user_object = o; @@ -611,6 +611,8 @@ static void init_run(void *o) } else { LOG_DBG("Unknown event, skipping state transition."); } + + return SMF_EVENT_HANDLED; } /* Scan and cache Wi-Fi results in unprovisioned state. */ @@ -630,7 +632,7 @@ static void unprovisioned_entry(void *o) } } -static void unprovisioned_run(void *o) +static enum smf_state_result unprovisioned_run(void *o) { struct s_object *user_object = o; @@ -641,6 +643,8 @@ static void unprovisioned_run(void *o) } else { LOG_DBG("Unknown event, skipping state transition."); } + + return SMF_EVENT_HANDLED; } static void unprovisioned_exit(void *o) @@ -685,7 +689,7 @@ static void provisioning_entry(void *o) notify_app(SOFTAP_WIFI_PROVISION_EVT_STARTED); } -static void provisioning_run(void *o) +static enum smf_state_result provisioning_run(void *o) { struct s_object *user_object = o; @@ -699,6 +703,8 @@ static void provisioning_run(void *o) } else { LOG_DBG("Unknown event, skipping state transition."); } + + return SMF_EVENT_HANDLED; } /* Wi-Fi credentials received, provisioning complete, cleanup and disable AP mode. */ @@ -732,7 +738,7 @@ static void provisioning_exit(void *o) } } -static void provisioned_run(void *o) +static enum smf_state_result provisioned_run(void *o) { struct s_object *user_object = o; @@ -743,6 +749,8 @@ static void provisioned_run(void *o) } else { LOG_DBG("Unknown event, skipping state transition."); } + + return SMF_EVENT_HANDLED; } static void provisioned_exit(void *o) @@ -766,7 +774,7 @@ static void finished_entry(void *o) k_sem_give(&softap_wifi_provision_sem); } -static void finished_run(void *o) +static enum smf_state_result finished_run(void *o) { struct s_object *user_object = o; @@ -775,6 +783,8 @@ static void finished_run(void *o) } else { LOG_DBG("Unknown event, skipping state transition."); } + + return SMF_EVENT_HANDLED; } /* Delete Wi-Fi credentials upon exit of the provisioning state. */ diff --git a/subsys/nfc/ndef/le_oob_rec.c b/subsys/nfc/ndef/le_oob_rec.c index e608f93cdf1d..be7b429b2d06 100644 --- a/subsys/nfc/ndef/le_oob_rec.c +++ b/subsys/nfc/ndef/le_oob_rec.c @@ -75,7 +75,7 @@ static int le_role_encode(enum nfc_ndef_le_oob_rec_le_role le_role, uint8_t **bu le_role_ad.type = BT_DATA_LE_ROLE; le_role_ad.data_len = LE_ROLE_PAYLOAD_SIZE; - le_role_ad.data = &le_role; + le_role_ad.data = (const uint8_t *) &le_role; err = bt_data_encode(&le_role_ad, buff, size); if (err) { diff --git a/sysbuild/CMakeLists.txt b/sysbuild/CMakeLists.txt index 0611e69d7b39..a1a9a10c8e35 100644 --- a/sysbuild/CMakeLists.txt +++ b/sysbuild/CMakeLists.txt @@ -859,10 +859,6 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_post_cmake) set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${BINARY_DIR}/zephyr/.config) endif() endif() - - if(SB_CONFIG_NRF_PERIPHCONF_MIGRATE) - include(${ZEPHYR_NRF_MODULE_DIR}/cmake/sysbuild/periphconf_migrate.cmake) - endif() endfunction(${SYSBUILD_CURRENT_MODULE_NAME}_post_cmake) # Enable use of partition manager with sysbuild. diff --git a/sysbuild/Kconfig.mcuboot b/sysbuild/Kconfig.mcuboot index ab519a854b0e..91288366b2c2 100644 --- a/sysbuild/Kconfig.mcuboot +++ b/sysbuild/Kconfig.mcuboot @@ -154,6 +154,11 @@ choice BOOT_SIGNATURE_TYPE endchoice +choice MCUBOOT_MODE + default MCUBOOT_MODE_SWAP_USING_MOVE + +endchoice + config BOOT_SIGNATURE_TYPE_PURE bool "Verify signature directly over image" depends on SOC_SERIES_NRF54LX || SOC_SERIES_NRF54HX diff --git a/sysbuild/Kconfig.periphconf b/sysbuild/Kconfig.periphconf deleted file mode 100644 index 812165863d1b..000000000000 --- a/sysbuild/Kconfig.periphconf +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2025 Nordic Semiconductor -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause - -config NRF_PERIPHCONF_MIGRATE - bool "Generate periphconf_migrated.c" - default y - depends on SOC_SERIES_NRF54HX - help - Enable autogenerating UICR.PERIPHCONF tables for multi-image builds, - to migrate an existing project for running with IronSide SE. - You can disable this if you have your own UICR.PERIPHCONF file. diff --git a/sysbuild/Kconfig.sysbuild b/sysbuild/Kconfig.sysbuild index beb33dd01f5b..2722cae69e05 100644 --- a/sysbuild/Kconfig.sysbuild +++ b/sysbuild/Kconfig.sysbuild @@ -84,5 +84,4 @@ rsource "Kconfig.approtect" rsource "Kconfig.lwm2m_carrier" rsource "Kconfig.cracen" rsource "Kconfig.tfm" -rsource "Kconfig.periphconf" rsource "Kconfig.firmware_loader" diff --git a/tests/benchmarks/multicore/idle/testcase.yaml b/tests/benchmarks/multicore/idle/testcase.yaml index 5e48bde7b1a3..6bd404c5c917 100644 --- a/tests/benchmarks/multicore/idle/testcase.yaml +++ b/tests/benchmarks/multicore/idle/testcase.yaml @@ -103,6 +103,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -110,6 +112,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -135,6 +139,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -143,6 +149,8 @@ tests: - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n - CONFIG_FPU=y + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -168,6 +176,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -175,6 +185,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -201,6 +213,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -208,6 +222,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -234,6 +250,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -241,6 +259,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -266,6 +286,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -273,6 +295,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n @@ -299,6 +323,8 @@ tests: - CONFIG_FIRST_SLEEP_OFFSET=y - CONFIG_PM=y - CONFIG_PM_S2RAM=y + - CONFIG_PM_DEVICE=y + - CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - CONFIG_POWEROFF=y - CONFIG_PM_S2RAM_CUSTOM_MARKING=y - CONFIG_CONSOLE=n @@ -306,6 +332,8 @@ tests: - CONFIG_SERIAL=n - CONFIG_GPIO=n - CONFIG_BOOT_BANNER=n + - remote_CONFIG_PM_DEVICE=y + - remote_CONFIG_PM_DEVICE_RUNTIME_ASYNC=n - remote_CONFIG_PM=y - remote_CONFIG_POWEROFF=y - remote_CONFIG_CONSOLE=n diff --git a/tests/bluetooth/bsim/nrf_auraconfig/prj.conf b/tests/bluetooth/bsim/nrf_auraconfig/prj.conf index bc76f8487071..2c1581bdb3c3 100644 --- a/tests/bluetooth/bsim/nrf_auraconfig/prj.conf +++ b/tests/bluetooth/bsim/nrf_auraconfig/prj.conf @@ -8,7 +8,6 @@ # General CONFIG_REBOOT=y CONFIG_DEBUG=y -CONFIG_DEBUG_INFO=y CONFIG_ASSERT=y CONFIG_STACK_USAGE=y CONFIG_THREAD_RUNTIME_STATS=y diff --git a/tests/bluetooth/iso/modules/peripheral.c b/tests/bluetooth/iso/modules/peripheral.c index 7f3410d84c1e..5d227c058855 100644 --- a/tests/bluetooth/iso/modules/peripheral.c +++ b/tests/bluetooth/iso/modules/peripheral.c @@ -13,9 +13,14 @@ LOG_MODULE_REGISTER(peripheral, CONFIG_ACL_TEST_LOG_LEVEL); #define LE_AUDIO_EXTENDED_ADV_CONN_NAME \ - BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_USE_NAME, \ + BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONN, \ 0x100, 0x200, NULL) +/* Set the advertising data. */ +struct bt_data adv_data[] = { + BT_DATA(BT_DATA_NAME_COMPLETE, CONFIG_BT_DEVICE_NAME, sizeof(CONFIG_BT_DEVICE_NAME) - 1) +}; + static struct k_work adv_work; static struct bt_conn *default_conn; static struct bt_le_ext_adv *adv_ext; @@ -143,6 +148,13 @@ static int peripheral_init(void) return ret; } + /* Set the advertising data */ + ret = bt_le_ext_adv_set_data(adv_ext, adv_data, ARRAY_SIZE(adv_data), NULL, 0); + if (ret) { + LOG_ERR("Failed to set advertising data. Err: %d", ret); + return ret; + } + initialized = true; LOG_INF("Peripheral initialized"); diff --git a/tests/modules/mcuboot/external_flash/sysbuild/mcuboot/boards/thingy53_nrf5340_cpuapp.conf b/tests/modules/mcuboot/external_flash/sysbuild/mcuboot/boards/thingy53_nrf5340_cpuapp.conf index 8e0b8baae3c4..ddbb1f01dd8f 100644 --- a/tests/modules/mcuboot/external_flash/sysbuild/mcuboot/boards/thingy53_nrf5340_cpuapp.conf +++ b/tests/modules/mcuboot/external_flash/sysbuild/mcuboot/boards/thingy53_nrf5340_cpuapp.conf @@ -16,6 +16,8 @@ CONFIG_USB_DEVICE_PRODUCT="Bootloader Thingy:53" CONFIG_USB_DEVICE_VID=0x1915 CONFIG_USB_DEVICE_PID=0x5300 CONFIG_USB_CDC_ACM=y +# Sample uses deprecated code and needs to be ported to the new USB device stack. +CONFIG_DEPRECATION_TEST=y # Decrease memory footprint CONFIG_SPI=n diff --git a/tests/samples/bluetooth/samples_test_app/sysbuild/ipc_radio/prj.conf b/tests/samples/bluetooth/samples_test_app/sysbuild/ipc_radio/prj.conf index 3899ab7c72df..ebb081af3839 100644 --- a/tests/samples/bluetooth/samples_test_app/sysbuild/ipc_radio/prj.conf +++ b/tests/samples/bluetooth/samples_test_app/sysbuild/ipc_radio/prj.conf @@ -26,7 +26,6 @@ CONFIG_BT_BUF_ACL_TX_SIZE=502 CONFIG_BT_MAX_CONN=2 CONFIG_ASSERT=y -CONFIG_DEBUG_INFO=y CONFIG_EXCEPTION_STACK_TRACE=y CONFIG_IPC_RADIO_BT=y diff --git a/tests/subsys/bluetooth/fast_pair/crypto/prj_tinycrypt.conf b/tests/subsys/bluetooth/fast_pair/crypto/prj_tinycrypt.conf deleted file mode 100644 index e1a13a4b12a5..000000000000 --- a/tests/subsys/bluetooth/fast_pair/crypto/prj_tinycrypt.conf +++ /dev/null @@ -1,11 +0,0 @@ -# -# Copyright (c) 2022-2023 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause -# - -CONFIG_ZTEST=y -CONFIG_ZTEST_SHUFFLE=y -CONFIG_ZTEST_SHUFFLE_SUITE_REPEAT_COUNT=1 -CONFIG_ZTEST_SHUFFLE_TEST_REPEAT_COUNT=2 -CONFIG_BT_FAST_PAIR_CRYPTO_TINYCRYPT=y diff --git a/tests/subsys/bluetooth/fast_pair/crypto/testcase.yaml b/tests/subsys/bluetooth/fast_pair/crypto/testcase.yaml index 3b8023ae8127..908a7f1eb970 100644 --- a/tests/subsys/bluetooth/fast_pair/crypto/testcase.yaml +++ b/tests/subsys/bluetooth/fast_pair/crypto/testcase.yaml @@ -52,31 +52,3 @@ tests: tags: - sysbuild - bluetooth - fast_pair.crypto.tinycrypt: - sysbuild: true - platform_allow: - - nrf52dk/nrf52832 - - nrf52840dk/nrf52840 - - nrf5340dk/nrf5340/cpuapp - - nrf5340dk/nrf5340/cpuapp/ns - - nrf54h20dk/nrf54h20/cpuapp - - nrf54l15dk/nrf54l05/cpuapp - - nrf54l15dk/nrf54l10/cpuapp - - nrf54l15dk/nrf54l15/cpuapp - - nrf54lm20dk/nrf54lm20a/cpuapp - - qemu_cortex_m3 - integration_platforms: - - nrf52dk/nrf52832 - - nrf52840dk/nrf52840 - - nrf5340dk/nrf5340/cpuapp - - nrf5340dk/nrf5340/cpuapp/ns - - nrf54h20dk/nrf54h20/cpuapp - - nrf54l15dk/nrf54l05/cpuapp - - nrf54l15dk/nrf54l10/cpuapp - - nrf54l15dk/nrf54l15/cpuapp - - nrf54lm20dk/nrf54lm20a/cpuapp - - qemu_cortex_m3 - extra_args: FILE_SUFFIX=tinycrypt - tags: - - sysbuild - - bluetooth diff --git a/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.c b/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.c index 0ff828c432a4..f73c221a9f21 100644 --- a/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.c +++ b/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.c @@ -84,7 +84,7 @@ DEFINE_FAKE_VALUE_FUNC(int, dfu_target_modem_delta_reset); DEFINE_FAKE_VALUE_FUNC(bool, dfu_target_modem_delta_identify, const void *const); DEFINE_FAKE_VALUE_FUNC(int, modem_info_string_get, enum modem_info, char *, const size_t); DEFINE_FAKE_VALUE_FUNC(int, boot_read_bank_header, uint8_t, struct mcuboot_img_header *, size_t); -DEFINE_FAKE_VOID_FUNC(clear_attrs, void *); +DEFINE_FAKE_VOID_FUNC(clear_attrs, uint8_t, void *); DEFINE_FAKE_VALUE_FUNC(int, lwm2m_notify_observer_path, const struct lwm2m_obj_path *); DEFINE_FAKE_VOID_FUNC(engine_remove_observer_by_id, uint16_t, int32_t); DEFINE_FAKE_VALUE_FUNC(int, lwm2m_firmware_start_transfer, uint16_t, char *); diff --git a/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.h b/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.h index b318cf26a027..2f70c73ce81b 100644 --- a/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.h +++ b/tests/subsys/net/lib/lwm2m_fota_utils/src/stubs.h @@ -81,7 +81,7 @@ DECLARE_FAKE_VALUE_FUNC(int, dfu_target_modem_delta_reset); DECLARE_FAKE_VALUE_FUNC(bool, dfu_target_modem_delta_identify, const void *const); DECLARE_FAKE_VALUE_FUNC(int, modem_info_string_get, enum modem_info, char *, const size_t); DECLARE_FAKE_VALUE_FUNC(int, boot_read_bank_header, uint8_t, struct mcuboot_img_header *, size_t); -DECLARE_FAKE_VOID_FUNC(clear_attrs, void *); +DECLARE_FAKE_VOID_FUNC(clear_attrs, uint8_t, void *); DECLARE_FAKE_VALUE_FUNC(int, lwm2m_notify_observer_path, const struct lwm2m_obj_path *); DECLARE_FAKE_VOID_FUNC(engine_remove_observer_by_id, uint16_t, int32_t); DECLARE_FAKE_VALUE_FUNC(int, lwm2m_firmware_start_transfer, uint16_t, char *); diff --git a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.conf b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.conf index dd8a2f1f68e2..55c9b5607f1c 100644 --- a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.conf +++ b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.conf @@ -8,3 +8,7 @@ CONFIG_SPI_NOR=n CONFIG_FPROTECT=n CONFIG_BOOT_WATCHDOG_FEED=n + +# Power domains forced on by default on boot, no need +# to manage them in bootloader. +CONFIG_POWER_DOMAIN=n diff --git a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.overlay b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.overlay index 31d9b441aa51..6c30ddb34989 100644 --- a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.overlay +++ b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/boards/nrf54h20dk_nrf54h20_cpuapp.overlay @@ -11,3 +11,58 @@ zephyr,code-partition = &boot_partition; }; }; + +/* + * Copy required overlay for mcuboot from bootloader/mcuboot. + * + * Required as the overlay in bootloader/mcuboot is ignored due to + * board overlay in this test. + */ + +&gdpwr { + status = "disabled"; +}; + +&gdpwr_fast_active_0 { + status = "disabled"; +}; + +&gdpwr_fast_active_1 { + status = "disabled"; +}; + +&gdpwr_fast_main { + status = "disabled"; +}; + +&gdpwr_slow_active { + status = "disabled"; +}; + +&gdpwr_slow_main { + status = "disabled"; +}; + +&gpio_pad_group0 { + status = "disabled"; +}; + +&gpio_pad_group1 { + status = "disabled"; +}; + +&gpio_pad_group2 { + status = "disabled"; +}; + +&gpio_pad_group6 { + status = "disabled"; +}; + +&gpio_pad_group7 { + status = "disabled"; +}; + +&gpio_pad_group9 { + status = "disabled"; +}; diff --git a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/prj.conf b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/prj.conf index 5e0496c33ae4..c461ed29f056 100644 --- a/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/prj.conf +++ b/tests/subsys/nrf_compress/decompression/mcuboot_update/sysbuild/mcuboot/prj.conf @@ -12,18 +12,11 @@ CONFIG_BOOT_BOOTSTRAP=n ### mbedTLS has its own heap # CONFIG_HEAP_MEM_POOL_SIZE is not set -### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed, -### MCUboot has its own copy in tree. -# CONFIG_TINYCRYPT is not set -# CONFIG_TINYCRYPT_ECC_DSA is not set -# CONFIG_TINYCRYPT_SHA256 is not set - CONFIG_FLASH=y CONFIG_FPROTECT=y ### Various Zephyr boards enable features that we don't want. # CONFIG_BT is not set -# CONFIG_BT_CTLR is not set # CONFIG_I2C is not set CONFIG_LOG=y diff --git a/west.yml b/west.yml index c49545689859..6f46ce19094d 100644 --- a/west.yml +++ b/west.yml @@ -65,7 +65,7 @@ manifest: # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html - name: zephyr repo-path: sdk-zephyr - revision: d32b79417c5a4c70f16cbbb579d3610daab5f88f + revision: pull/3290/head import: # In addition to the zephyr repository itself, NCS also # imports the contents of zephyr/west.yml at the above @@ -128,7 +128,7 @@ manifest: compare-by-default: true - name: mcuboot repo-path: sdk-mcuboot - revision: c39029507179e3e1707eb46ca002a0780bb5b5b4 + revision: pull/513/head path: bootloader/mcuboot - name: qcbor url: https://github.com/laurencelundblade/QCBOR @@ -137,7 +137,7 @@ manifest: - name: mbedtls path: modules/crypto/mbedtls repo-path: sdk-mbedtls - revision: c5115abac477249fab42e61368b8f87c3c9265e1 + revision: pull/44/head - name: oberon-psa-crypto path: modules/crypto/oberon-psa-crypto repo-path: sdk-oberon-psa-crypto