2024-03-18 12:32 AM
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?
Solved! Go to Solution.
2024-03-18 01:59 AM
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.
2024-03-18 12:46 AM - edited 2024-03-18 12:46 AM
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.
2024-03-18 01:50 AM
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?
2024-03-18 01:59 AM
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.
2024-03-18 02:31 AM
Hello,
If you download the package from here do you face the same issue?
2024-03-18 03:00 AM
I didn't try this specifically, but the git command worked for me, thanks for the answer!