cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the name of the generated STM32IDE project generated by a TouchGFX project.

Kneepatch
Associate III

How do you change the name of the STM32F4 project that is generated by TouchGFX? I don't see an option to do it in the GUI of TouchGFX because the field for the application name is greyed out:

0693W000007D27rQAC.png0693W000007D27mQAC.png 

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

This is not yet possible within TouchGFX, but it will hopefully change in the near future.

In the meantime, there is an option to rename the entire project by:

  • make a backup copy of the files .ioc, .touchgfx, ApplicationTemplate.touchgfx.part, .cproject, .project, e.g. by adding .bak to the filename
  • rename the files .ioc, .touchgfx to PRJNAME_NEW.*
  • edit PRJNAME_NEW.ioc with a text editor and do a find and replace of all PRJNAME_OLD with PRJNAME_NEW
  • repeat the last step with the files .touchgfx, ApplicationTemplate.touchgfx.part, .cproject, .project

Enjoy the new name even after opening the project in STM32CubeIDE!

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Good luck!

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

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

This is not yet possible within TouchGFX, but it will hopefully change in the near future.

In the meantime, there is an option to rename the entire project by:

  • make a backup copy of the files .ioc, .touchgfx, ApplicationTemplate.touchgfx.part, .cproject, .project, e.g. by adding .bak to the filename
  • rename the files .ioc, .touchgfx to PRJNAME_NEW.*
  • edit PRJNAME_NEW.ioc with a text editor and do a find and replace of all PRJNAME_OLD with PRJNAME_NEW
  • repeat the last step with the files .touchgfx, ApplicationTemplate.touchgfx.part, .cproject, .project

Enjoy the new name even after opening the project in STM32CubeIDE!

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Good luck!

/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.
Kneepatch
Associate III

Thanks so much, great information!

Hi,

Could you add this to the "Idea Zone" section of this forum ? This will help us keep track of this demand.

/Romain

Added.

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.