From b366128805fefe8941b668d4d1e0e6c0b7cf679a Mon Sep 17 00:00:00 2001 From: Marek Pieta Date: Fri, 11 Oct 2024 12:25:18 +0200 Subject: [PATCH] applications: nrf_desktop: Imply partial flash erase for USB next Change implies nRF SoC flash partial erase for USB next stack. This is done to improve stability of the USB next stack. The partial erase feature works around device errors that might be reported by Windows USB host in Device Manager if USB cable is connected while erasing secondary image slot in the background. Jira: NCSDK-29573 Signed-off-by: Marek Pieta Signed-off-by: Pekka Niskanen --- applications/nrf_desktop/src/modules/Kconfig.usb_state | 7 +++++++ .../releases/release-notes-changelog.rst | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/applications/nrf_desktop/src/modules/Kconfig.usb_state b/applications/nrf_desktop/src/modules/Kconfig.usb_state index dee657d9df98..a0f7424236b6 100644 --- a/applications/nrf_desktop/src/modules/Kconfig.usb_state +++ b/applications/nrf_desktop/src/modules/Kconfig.usb_state @@ -96,9 +96,16 @@ config DESKTOP_USB_STACK_NEXT bool "USB next stack [EXPERIMENTAL]" select EXPERIMENTAL select USB_DEVICE_STACK_NEXT + imply SOC_FLASH_NRF_PARTIAL_ERASE help Use experimental integration of USB next stack. + The option implies partial erase of nRF SoC flash in the driver + configuration to improve stability of the USB next stack. The partial + erase feature works around device errors that might be reported by + Windows USB host in Device Manager if USB cable is connected while + erasing secondary image slot in background. + config DESKTOP_USB_STACK_LEGACY bool "USB legacy stack" select USB_DEVICE_STACK diff --git a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst index f71b0f93486a..451e845a50e3 100644 --- a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst +++ b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst @@ -292,6 +292,9 @@ nRF Desktop * Manifest semantic version information to the firmware information response in :ref:`nrf_desktop_dfu` when the module is used for SUIT DFU and the SDFW supports semantic versioning (requires v0.6.2 and higher). * A missing DTS node compatible with ``zephyr,hid-device`` to the nRF52840 DK in the MCUboot QSPI configuration. This ensures support for HID over USB when the USB next stack is selected. + * The USB next stack (:ref:`CONFIG_DESKTOP_USB_STACK_NEXT `) implies partial erase feature of the nRF SoC flash driver (:kconfig:option:`CONFIG_SOC_FLASH_NRF_PARTIAL_ERASE`). + This is done to improve stability of the USB next stack. + The partial erase feature works around device errors that might be reported by Windows USB host in Device Manager if USB cable is connected while erasing secondary image slot in the background. * Updated: @@ -307,7 +310,6 @@ nRF Desktop * All build configurations with the DFU over MCUmgr support to require encryption for operations on the Bluetooth GATT SMP service (see the :kconfig:option:`CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT` Kconfig option). The Bluetooth pairing procedure of the unpaired Bluetooth peers must now be performed before the DFU operation. - nRF Machine Learning (Edge Impulse) -----------------------------------