cancel
Showing results for 
Search instead for 
Did you mean: 

change project name STM32Cube IDE with TouchGFX Desiner

maxtaschner
Associate

Hi

I am currently working a lot with TouchGFX 4.22.1 Desinger to develop an interface for the development board STM32f4-discovery. Here I create the project in the program TouchGFX and then edit the code in the programming interface STM32CUBE IDE 1.13.2. But the projects are always created with the project name STM32F46I-DISCO-REV-AU1 and I remove the old project from the workspace at each project change to insert the new project (which unfortunately has the same name). Is it possible to change or customize the project name in the STM32CUBE IDE interface? Thanks for the help

1 ACCEPTED SOLUTION

Accepted Solutions
BobWalance
Associate III

I just posted the same issue here yesterday.

TouchGFX-Designer-generated projects have the same... - STMicroelectronics Community

ST (@Osman SOYKURT) is looking into this problem. There is a workaround, but it is pretty difficult to do - unless you're really good with an editor.

Here are all of the changes that I found were necessary in order to build CM4 and CM7, and also to be able to download the code into the board. The .ioc and .launch filenames were changed, and all of the highlighted entries in all of the files were changed, too.

STM32747I-DISCO.ioc
ProjectManager.ProjectFileName=STM32H747I-DISCO.ioc

ProjectManager.ProjectName=STM32H747I-DISCO

STM32CubeIDE\.project
<name>STM32H747I-DISCO</name>.

<name>STM32H747I-DISCO.ioc</name>

<locationURI>PARENT-1-PROJECT_LOC/STM32H747I-DISCO.ioc</locationURI>

STM32CubeIDE\CM4\.project
<name>STM32H747I-DISCO_CM4</name>

STM32CubeIDE\CM4\.cproject
<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM4}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1420436034"

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM4}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1977744108"

<project id="STM32H747I-DISCO_CM4.null.1074626412" name="STM32H747I-DISCO_CM4"/>

STM32CubeIDE\CM7\.project
<name>STM32H747I-DISCO_CM7</name>

STM32CubeIDE\CM7\.cproject
<listOptionValue builtIn="false" value="C:/git/stm32h747i-disco/STM32H747I-DISCO/CM7/Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc"/>

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM7}/Debug"

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM7}/Release"

<project id="STM32H747I-DISCO_CM7.null.189274870" name="STM32H747I-DISCO_CM7"/>

STM32CubeIDE\CM7\STM32H747I-DISCO_CM7 Debug.launch
DISCO_CM7.elf&quot;,&quot;fProjectName&quot;:&quot;STM32H747I-DISCO_CM7&quot;,&quot;fPerformBuild&quot;:true,&quot;fDownload&quot;:true,&quot;fLoadSymbols&quot;:true}]}"/>

<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug\STM32H747I-DISCO_CM7.elf"/>

<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32H747I-DISCO_CM7"/>

<listEntry value="/STM32H747I-DISCO_CM7"/>

View solution in original post

1 REPLY 1
BobWalance
Associate III

I just posted the same issue here yesterday.

TouchGFX-Designer-generated projects have the same... - STMicroelectronics Community

ST (@Osman SOYKURT) is looking into this problem. There is a workaround, but it is pretty difficult to do - unless you're really good with an editor.

Here are all of the changes that I found were necessary in order to build CM4 and CM7, and also to be able to download the code into the board. The .ioc and .launch filenames were changed, and all of the highlighted entries in all of the files were changed, too.

STM32747I-DISCO.ioc
ProjectManager.ProjectFileName=STM32H747I-DISCO.ioc

ProjectManager.ProjectName=STM32H747I-DISCO

STM32CubeIDE\.project
<name>STM32H747I-DISCO</name>.

<name>STM32H747I-DISCO.ioc</name>

<locationURI>PARENT-1-PROJECT_LOC/STM32H747I-DISCO.ioc</locationURI>

STM32CubeIDE\CM4\.project
<name>STM32H747I-DISCO_CM4</name>

STM32CubeIDE\CM4\.cproject
<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM4}/Debug" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1420436034"

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM4}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1977744108"

<project id="STM32H747I-DISCO_CM4.null.1074626412" name="STM32H747I-DISCO_CM4"/>

STM32CubeIDE\CM7\.project
<name>STM32H747I-DISCO_CM7</name>

STM32CubeIDE\CM7\.cproject
<listOptionValue builtIn="false" value="C:/git/stm32h747i-disco/STM32H747I-DISCO/CM7/Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc"/>

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM7}/Debug"

<builder buildPath="${workspace_loc:/STM32H747I-DISCO_CM7}/Release"

<project id="STM32H747I-DISCO_CM7.null.189274870" name="STM32H747I-DISCO_CM7"/>

STM32CubeIDE\CM7\STM32H747I-DISCO_CM7 Debug.launch
DISCO_CM7.elf&quot;,&quot;fProjectName&quot;:&quot;STM32H747I-DISCO_CM7&quot;,&quot;fPerformBuild&quot;:true,&quot;fDownload&quot;:true,&quot;fLoadSymbols&quot;:true}]}"/>

<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug\STM32H747I-DISCO_CM7.elf"/>

<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32H747I-DISCO_CM7"/>

<listEntry value="/STM32H747I-DISCO_CM7"/>