Skip to main content
Associate
December 9, 2025
Question

Compilation error of Ux_Host_MSC example

  • December 9, 2025
  • 1 reply
  • 260 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 "Best answer" on the reply which solved your issue or answered your question.