cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cubeide 2.0

SGian.1
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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

View solution in original post

4 REPLIES 4
TDK
Super User

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
Senior

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

thanks a lo t

Sergio

 

TDK
Super User

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
Senior

God bless you now an forever