Skip to main content
Graduate II
March 18, 2024
Solved

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

  • March 18, 2024
  • 1 reply
  • 2727 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

    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

    Graduate II
    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-32Answer
    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