Skip to main content
Graduate
March 2, 2023
Question

CubeIDE fatal error: stm32h7xx_hal.h: No such file or directory

  • March 2, 2023
  • 1 reply
  • 4375 views

Apologies - posted to wrong forum group

Host: amd64, 8GB RAM, 500GB SSD, 440GB available

     Ubuntu 20.04, all current updates

Installed the debian amd64 1.11.2 CubeIDE and 6.7.0 MX.

Created a simple H750V application using MX. The IDE installed the

current HAL H7xx library. Building the bare bones before adding more

application code produced the fatal error for the line 36 #include

statement in stm32h7xx_hal.c, plus many syntax error warnings in

stm32h7xx.c, such as in line 71 __IO uint32_t uwTick;.

I did not modify stm32h7xx_hal_conf.h file.

In case files were somehow corrupted, replaced the IDE loaded files stm32h7xx_hal.h and stm32h7xx_hal.c with files from a 1.11.0 HAL separately downloaded HAL library. The same errors ocurred.

ioc file is attached.

Cheers, Hal

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    March 17, 2023

    Hello @raptorhal2​ ,

     At first, let me thank you for reporting this issue.

    I have tried to reproduce this issue but I didn't find any error when I build the project with STM32CubeIDE 1.12.0 and STM32Cube_FW_H7_V1.11.0.

    For that, I advise you to delete the STM32Cube_FW_H7 used and to download again the last firmware version of STM32CubeH7.

    Please let me know if the problem is solved.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Kaouthar