eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
157 stars 91 forks source link

The enumeration failed because UX_MEMORY_INSUFFICIENT #139

Open 111llll111 opened 8 months ago

111llll111 commented 8 months ago

Hi,

  1. STM32H573 platform.
  2. USB host mode.
  3. Connect the HUB externally.
  4. External devices on HUB.

By repeatedly pluging and unpluging USB devices, I recognized USB normally at the beginning, but after dozens of experiments, the enumeration failed. Then I found that the reason for the enumeration failure was UX_MEMORY_INSUFFICIENT according to adding log. How do you solve the UX_MEMORY_INSUFFICIENT problem?

Thanks!

111llll111 commented 8 months ago

Hi,

Through debugging, we find that the error is in this position, as shown in the following figure, in the file "ux_host_stack_new_endpoint_create.c", the line 100 requests endpoint resource error.

error

Is the resource requested by the endpoint and not released?

Thanks!