cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE: main.h includes "stm32h5xx_hal.h" which doesn't exist

Spectre
Associate

Hello,


I am currently trying to develop for the STM32H573RIT6 microcontroller, however after generating a new project I run into an issue where I am unable to compile any code due to main.h attempting to include "stm32h5xx_hal.h", but it fails to compile as it fails to locate that file. The only file that I was able to locate was "stm32h5xx_hal_conf.h", but replacing that in the "main.h" file still fails to compile as it cannot find "stm32h5xx_hal_spi.h" and "stm32h5xx_hal_gpio.h". system_stm32h5xx.c also attempts to include the "stm325xx_hal.h" file as well and as a result errors.

Spectre_0-1753144248504.png

 

1 REPLY 1
TDK
Super User

Works fine here. Include the IOC file that generates the faulty code.

TDK_0-1753155379187.png

 

If you feel a post has answered your question, please click "Accept as Solution".