Skip to main content
Associate
December 9, 2025
Question

Compilation error of Ux_Host_MSC example

  • December 9, 2025
  • 1 reply
  • 236 views

Moved from this thread.

Why does attempting to compile this example result in these errors?  

 

../../USBX/Target/ux_stm32_config.h:29:10: fatal error: stm32h5xx_hal.h: No such file or directory

29 | #include "stm32h5xx_hal.h"

| ^~~~~~~~~~~~~~~~~

 

1 reply

mƎALLEm
Technical Moderator
December 9, 2025

Hello @tiagocopelli and welcome to the ST community,

Most probably you've downloaded the project using zip option not with git command with recursive option.

Please review this article: Downloading STM32Cube packages from GitHub correctly

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."