2022-03-25 06:42 AM
Hello,
I created a project in STM32CubeIDE, I initialized all peripherals to their default mode using CubeMX, and generated some TouchGFX code usingTouchGFX Generator. Then I opened the file ApplicationTemplate.touchgfx.part with TouchGFX Designer, drew some graphics and tried to generate the code, but I got an error, here are the logs :
"Generate Code
Generate
Wrote config/gcc/app.mk
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
no
Done
Post Generate Target
touchgfx update_project --project-file=../Essai_13.ioc --platform=m4
Unable to locate C:/Users/bernard/Home/TouchGFX_Projects/Essai_13/TouchGFX
Failed
Failed"
Note that C:/Users/bernard/Home/TouchGFX_Projects/Essai_13/TouchGFX is the path to the folder where ApplicationTemplate.touchgfx.part resides.
What is wrong here ? What can I do to work on this project with TouchGFX Designer ?
Thanks in advance !
Solved! Go to Solution.
2022-04-04 05:33 AM
If I sum up, in ApplicationTemplate.touchgfx.part, you need to insert 2 lines :
BEFORE :
"Application": {
"Name": "Essai_12",
...
AFTER :
"Application": {
"Platform": "m4",
"ProjectFile": "../Essai_12.ioc",
"Name": "Essai_12",
...
And of course adapt to your platform and .ioc file name.
2022-03-25 08:24 AM
I mean searched ../Essai_13.ioc isnt exist or on other place, try correct path manualy
2022-03-27 11:50 PM
The file Essai_13.ioc exists at C:/Users/bernard/Home/TouchGFX_Projects/Essai_13 (thus is C:/Users/bernard/Home/TouchGFX_Projects/Essai_13/TouchGFX/..).
I tried to correct the path manually but I don't find where, is it in a file or in TouchGFX Designer ?
2022-03-28 12:34 AM
same problem.
how can i fix?
2022-03-29 02:06 AM
solve!
check "run as administrator" TouchGfx Designer"
"C:\TouchGFX\4.19.0\designer\TouchGFXDesigner-4.19.0.exe"
2022-03-29 02:28 AM
This doesn't solve it for me. I tried moving my project around on different disks, but I still see the same error.
2022-04-01 04:04 AM
Hi,
The Designer doesn't understand .part files that are old, only .touchgfx files. So if you're using an old project that was never opened with that version of the designer, then there's a problem.
You can get around it by adding Platform and ProjectFile to your .part file. For instance, for
"Platform": "m7",
"ProjectFile": "../STM32F746.ioc",
2022-04-04 01:02 AM
Hello,
Thanks for your answer ! I'm not sure what you mean by "old", this project was created by the latest version of TouchGFX Generator, and I'm using Designer 4.19.0 to generate its code.
At first there is only a "ApplicationTemplate.touchgfx.part" file, in which I added the lines as you advice (m4 for Platform and ../Essai_13.ioc for ProjectFile), then I opened it with Designer, added a box and a text, genererated the code, but got the same error at the "Post Generate Target" step.
But Designer had created an "Essai_13.touchgfx" file, so I added those lines in it too, opened it and tried again but I got the same result.
I attach the modified files and a tree-like file listing of the project (after code generation) just in case.
Can you spot any obvious mistake ?
Thanks in advance ! Have a nice day
2022-04-04 05:13 AM
Hi,
I shouldve mentioned that you need to put those lines in the "Application" node of the .part file.
"Application": {
...
}
2022-04-04 05:30 AM
That solved it, thank you !
Now the Designer seems to generate the code properly.