Skip to main content
Visitor II
November 29, 2023
Question

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

  • November 29, 2023
  • 1 reply
  • 3708 views

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

    This topic has been closed for replies.

    1 reply

    Peter BENSCH
    Technical Moderator
    November 29, 2023

    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.