cancel
Showing results for 
Search instead for 
Did you mean: 

USBX Host compilation errors on STM32U5G9J-DK2 with ThreadX + TouchGFX

Ameni
Associate

Hello,

I am using the following official example as a reference:
https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/STM32U5x9J-DK/Applications/USBX/Ux_Host_HUB_HID_MSC

I tried to use the Ux_Host_HUB_HID_MSC project on STM32U5G9J-DK2 as a base and adapt it to my application (ThreadX + USBX + TouchGFX).

However, despite using this example, I am still facing compilation errors related to STM32 USB Host initialization.

Main errors:

  • _ux_hcd_stm32_initialize not declared

  • hhcd_USB_OTG_HS not declared

  • MX_USB_OTG_HS_HCD_Init() implicitly declared

These errors occur in app_usbx_host.c, when calling ux_host_stack_initialize().

This seems to be related to a STM32 USB HCD (USB OTG HS) configuration issue or missing / non-included source files compared to the official example.

Could you please advise:

  • which STM32 USB Host source files must be included?

  • whether a specific CubeMX configuration is required for USBX Host on STM32U5G9J-DK2?

  • or if some parts of the official example are not compatible with TouchGFX-based projects?

Thank you in advance for your help.

Best regards,

0 REPLIES 0