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.
https://www.st.com/en/embedded-software/x-cube-azrtos-h7.html
Other
149 stars 56 forks source link

ux_device_class_hid_event_set stucks when transmitting using endpoint 2 #31

Closed HaoboGu closed 1 year ago

HaoboGu commented 1 year ago

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

https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/57faa03d093cb37ad341798d76886af15decdc74/Middlewares/ST/usbx/common/usbx_stm32_device_controllers/ux_dcd_stm32_transfer_request.c#L112

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

HaoboGu commented 1 year ago

Fixed. Setting more USBTX FIFO solves it.