Skip to main content
MikeAtETI
Associate III
January 18, 2023
Question

USBX/AzureRTOS: when plug/unplug from the computer - it doesn't always come back up

  • January 18, 2023
  • 2 replies
  • 1158 views

On an device running USBX/AzureRTOS, when I plug/unplug it from the computer - it doesn't always come back up device->ux_slave_device_state stays at UX_DEVICE_ATTACHED, and windows gives a Device Descriptor read failed (and a USB device not recognised)

The code stays clocked and doesn't use STOP/STANDBY modes, and stays on the same clocks as when it is running.

Is there a need to prioritise the ux_slave_hid_thread/hid_uxbx_app_thread/main_usbx_thread above others?

This topic has been closed for replies.

2 replies

MikeAtETI
MikeAtETIAuthor
Associate III
January 18, 2023

for clarity - I call ux_device_stack_disconnect when the VBUS is disconnected, as mentioned on Chapter 3 - Functional Components of USBX Device Stack | Microsoft Learn

(this is not an answer, I'm unsure why it says it is)

mohamed.ayed
ST Employee
February 14, 2023

Can you please specify what target device/ middleware version/USB application are you using?