Skip to main content
SGian.1
Associate III
January 10, 2026
Solved

STM32Cubeide 2.0

  • January 10, 2026
  • 4 replies
  • 337 views

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

Best answer by TDK

No issues generating code and building here.

TDK_0-1768052004239.png

 

After you click Generate Code in STM32CubeMX, press the "Open Project" button to open it correctly within STM32CubeIDE.

TDK_1-1768052078733.png

 

4 replies

TDK
Super User
January 10, 2026

Did you select STM32CubeIDE as the toolchain?

Please include your IOC file.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SGian.1
SGian.1Author
Associate III
January 10, 2026

yes i did. And i connect my STLINK-V2 and in debug configuration debugger i don't find 

thanks a lo t

Sergio

 

TDK
TDKBest answer
Super User
January 10, 2026

No issues generating code and building here.

TDK_0-1768052004239.png

 

After you click Generate Code in STM32CubeMX, press the "Open Project" button to open it correctly within STM32CubeIDE.

TDK_1-1768052078733.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
SGian.1
SGian.1Author
Associate III
January 10, 2026

God bless you now an forever