Skip to main content
Associate
Dec 9, 2025 4:49 PM UTC
Question

Compilation error of Ux_Host_MSC example

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
ST Technical Moderator
Dec 9, 2025 4:57 PM UTC

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.