cancel
Showing results for 
Search instead for 
Did you mean: 

Naming issue prevents STM32CubeIDE to open/build projects generated by TouchGFXDesigner 4.25

ARM_and
Associate III

When creating a new project based on STM32U5G9J-DK2, TouchGFX designer defaults the project name to My_Application#, but when the project is generated it' still based on the TBS default package name of STM32U5G9J-DK2.

This seems to cause issues when opening the .ioc project in STM32CubeIDE, because the .ioc is still named STM32U5G9J-DK2.ioc and not the same as the application name:

 

ARM_and_0-1751722311425.png

 

ARM_and_1-1751722603181.png

ARM_and_2-1751722619033.png

There are further issues with the linker file not matching, and a sub project being created with the name STM32U5G9J-DK2 and then main.c and other files in the sub project being used for build.

This seems to mean that if you have an actual project named STM32U5G9J-DK2 (e.g. the demo) and then created a second project named MyApplication_4 when you try to compile MyApplication_4, files from STM32U5G9J-DK2 project will be used.

Not sure if this issue exists on other boards, or if I'm doing something wrong.

6 REPLIES 6
GaetanGodart
ST Employee

Hello @ARM_and ,

 

I have not heard of something similar and I was not able to reproduce the issue.

Here is what I have done:

  1. Open TouchGFX Designer 4.25.0
  2. Create a new project by selecting the STM32U5G9J-DK2 (the project is automatically named "MyApplication_3"
  3. Add some widget (optional)
  4. Click on "Generate code" (bottom right)
  5. Click on "Files" (bottom left)
  6. Go back one level in the folder hierarchy
  7. Open the STM32CubeIDE folder
  8. Open the .project file
  9. Compile successfully

Can you try to reproduce these steps and if you still encounter the issue send me the project?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart ,

Can you continue and repeat the same exact process and create MyApplication_4, open in STM32CubeIDE and let me know if you see any issues?

In my IDE (1.18.1) the second one will also be named STM32U5G9J-DK2 and I can't access MyApplication_3 after MyApplication_4 is opened in STM32CubeIDE.

 

-A

One more thing, @GaetanGodart 

If I open the TouchGFXProjects\MyApllication_3 folder in STM32CubeIDE instead of C:\TouchGFXProjects\MyApllication_3\STM32CubeIDE, in STM32CubeUDE, I get the application imported into the IDE with the MyApplication_3 name, but with the issues listed in the original post.

Please let me know if you're able to replicate.

Warm Regards,

-A

Hello @ARM_and ,

 

If I now create a new STM32U5G9J-DK2 called MyApplication_4, I can then open the STM32CubeIDE folder and then open the .project file, then STM32CubeIDE will try to open the new project that has the same name so there is a conflict.
I then get prompted to close the previous project because there can only be one project with the same name open at once.
I can then build and flash as usual.

I am not sure what you open in STM232CubeIDE, you open the whole STM32CubeIDE folder? Or do you just open the .project file?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart 

I open project from the file system:

ARM_and_0-1752259159882.png

And then:

IDE_capture.PNG

And then it makes a mess of it :)

This is not a huge issue since if we start a named project from the STM32CubeIDE/MX side, then TouchGFXDesigner can open it and add GUI code and the round trip to the IDE is fine.

It only happens if we need to open multiple DK2 based projects in STM32CubeIDE I guess.

Hello @ARM_and ,

 

Indeed, opening projects with "Open Projects From File System..." seems to be problematic, here is what I get:

GaetanGodart_0-1752480480975.png

But when double clicking on the .project file to open it, it works correctly in STM32CubeIDE.
I get prompted to remove files which are conflictual (same name):

GaetanGodart_1-1752480584951.png

Which makes STM32CubeIDE clean the workplace.

I recommend you to open projects by double clicking on them (.project file) in the file systems explorer.

 

Regards,

 

Gaetan Godart
Software engineer at ST (TouchGFX)