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
146 stars 87 forks source link

_ux_utility_mutex_on() function called from ISR fails with TX_WAIT_ERROR #117

Open tdjastrzebski opened 9 months ago

tdjastrzebski commented 9 months ago

Trying to get one of the STM32 USBX examples available here (MSC host) I stumbled upon an error which probably should not have happen. Within _ux_utility_mutex_on() function tx_mutex_get() is called with TX_WAIT_FOREVER option which results in TX_WAIT_ERROR error since the call originated from OTG_FS_IRQHandler ISR. I think this may be a bug. USBX version is 6.2.0, compiler GCC.

USBX-2 USBX-3
ra1nb0w commented 2 months ago

see https://github.com/eclipse-threadx/usbx/issues/48