Solved
STM32CubeIDE: main.h includes "stm32h5xx_hal.h" which doesn't exist
- July 22, 2025
- 3 replies
- 603 views
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.


