cancel
Showing results for 
Search instead for 
Did you mean: 

I'm new on STMCubeIDE and I can't find main() or any codes.

hayatoryoko
Associate

Ekran Resmi 2023-11-29 12.43.40.pngEkran Resmi 2023-11-29 12.44.06.png,

and I don't find C/C++ Build in Projects > Properties

1 REPLY 1
Peter BENSCH
ST Employee

Welcome @hayatoryoko, to the community!

Your screenshots only show folders with bare IOC files. However, these only contain a description of how to configure the peripherals and pins of the respective STM32. To get a C programme, you must first open this IOC (starts the integrated STM32CubeMX tool) and from there generate the actual project with Project > Generate code, in which you will then also find the main.c.

BTW: I recommend using the latest version of STM32CubeIDE, as your screenshots still show the workspace of the old version 1.13.2. I also recommend studying UM2553 (Quick Start Guide) and UM2609 (STM32CubeIDE user guide).

Hope that helps?

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.