Skip to content

Commit

Permalink
applications: nrf_desktop: Imply partial flash erase for USB next
Browse files Browse the repository at this point in the history
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 <Marek.Pieta@nordicsemi.no>
Signed-off-by: Pekka Niskanen <pekka.niskanen@nordicsemi.no>
  • Loading branch information
MarekPieta authored and rlubos committed Oct 14, 2024
1 parent dd1b598 commit b366128
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions applications/nrf_desktop/src/modules/Kconfig.usb_state
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <config_desktop_app_options>`) 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:

Expand All @@ -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)
-----------------------------------

Expand Down

0 comments on commit b366128

Please sign in to comment.