Skip to main content
Ebun.1
Senior
June 18, 2020
Solved

I want to change main.c to main.cpp

  • June 18, 2020
  • 4 replies
  • 1010 views

environment:

STM32CubeIDE Ver 1.3.0

STM32CubeMX Ver 5.5.0

TouchGFX Ver 4.13.0

Load the project created with TouchGFX in the IDE.

How can I change main.c to main.cpp and let the IDE understand?

Thank you.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Because it's usually inside Core/Src

4 replies

Ebun.1
Ebun.1Author
Senior
June 18, 2020

Was self resolved.

Main.c can be seen in Application\User on the IDE, so rename it on the IDE.

But actually there is no main.c in the User folder.

Why is main.c visible in the User folder on the IDE?

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
June 18, 2020

Because it's usually inside Core/Src

Ebun.1
Ebun.1Author
Senior
June 18, 2020

Hi, Martin

I understand.

Thank you very much.

Martin KJELDSEN
Principal III
June 18, 2020

No problem! :)

/Martin