2026-01-10 4:40 AM
Hi there!
i start one of my new project with STM32cubeide 2.0. First i start with configure mu MCU in STM32CUBEMX in this casa STM32G031K8T6 afther i configurate all pin i create a poject . So afther i import my project in STM32CubeIde 2.0 and i build gave me this error:
Core\inc\main.h: fatal error: stm32g0xx_hal.h: No such file or directory
#include "stm32g0xx_hal.h"
but i check with F3 and this file exist , so please someone can help me ?
Thank you
Sergio
Solved! Go to Solution.
2026-01-10 5:34 AM
No issues generating code and building here.
After you click Generate Code in STM32CubeMX, press the "Open Project" button to open it correctly within STM32CubeIDE.
2026-01-10 4:59 AM
Did you select STM32CubeIDE as the toolchain?
Please include your IOC file.
2026-01-10 5:11 AM
2026-01-10 5:34 AM
No issues generating code and building here.
After you click Generate Code in STM32CubeMX, press the "Open Project" button to open it correctly within STM32CubeIDE.
2026-01-10 5:40 AM
God bless you now an forever