Skip to main content
SGian.1
Associate III
Jan 10, 2026 12:40 PM UTC
Solved

STM32Cubeide 2.0

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

TDK
TDKBest answer
Jan 10, 2026 1:34 PM UTC

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""."

4 replies

TDK
Jan 10, 2026 12:59 PM UTC

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
Jan 10, 2026 1:11 PM UTC

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
Jan 10, 2026 1:34 PM UTC

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
Jan 10, 2026 1:40 PM UTC

God bless you now an forever