Skip to main content
Associate III
March 18, 2024
Solved

fatal error: stm32u5xx.h: No such file or directory

  • March 18, 2024
  • 1 reply
  • 4020 views

I am testing the development board STM32U5A9J-DK with THIS and trying to run the GPIO Toggle example program. But during the build process I get the error fatal error: stm32u5xx.h: No such file or directory.
I am using CubeIDE version 1.14.1.
How to fix this problem?

 

fatal_error_headerFile.png

This topic has been closed for replies.
Best answer by STTwo-32

Try to clone this repository using the command.

git clone --recursive https://github.com/STMicroelectronics/STM32CubeU5.git

Best regards.

STTwo-32 

1 reply

STTwo-32
ST Technical Moderator
March 18, 2024

Hello @jessie_chiu and welcome to the ST Community :smiling_face_with_smiling_eyes:.

If you have downloaded the Cube Package using the Download as .Zip from Github you will may have such a problem. You need to download it using the Git Commands or the download as .Zip from our ST Website.

If you have done this, You should verify your paths.

Best Regards.

STTwo-32

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.
Associate III
March 18, 2024

Hi, I'm glad to hear from you. I've re-downloaded the project using git and I'm still getting the same error, what else can I try?

jessie_chiu_0-1710751824782.png

 

STTwo-32
STTwo-32Best answer
ST Technical Moderator
March 18, 2024

Try to clone this repository using the command.

git clone --recursive https://github.com/STMicroelectronics/STM32CubeU5.git

Best regards.

STTwo-32 

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.