STMicroelectronics / x-cube-azrtos-h7

X-CUBE-AZRTOS-H7 (Azure RTOS Software Expansion for STM32Cube) provides a full integration of Microsoft Azure RTOS in the STM32Cube environment for the STM32H7 series of microcontrollers.

Home Page:https://www.st.com/en/embedded-software/x-cube-azrtos-h7.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ux_device_class_hid_event_set stucks when transmitting using endpoint 2

HaoboGu opened this issue · comments

Hello, I'm using usbx ux_device_class_hid_event_set(hid_inst, &hid_event); to transmit data from my stm32h7 board to host. My hid_inst has two endpoints, one for receiving data and one for sending data:

image

When I sends data using endpoint 0x82, this thread stucks at

status = _ux_utility_semaphore_get(&transfer_request -> ux_slave_transfer_request_semaphore,

It seems no data is sent at all. I sniffed the usb, no data is received at host at endpoint 0x82.

Fixed. Setting more USBTX FIFO solves it.