cancel
Showing results for 
Search instead for 
Did you mean: 

How do I integrate what was created in TOUCH GFX DESIGNER into the IDE?

Emanuele78
Associate III

I developed firmware with CUBE IDE and then set up the 2.4" TFT LCD screen with buttons, etc., using TOUCH GFX DESIGNER. How do I import what I developed in TOUCH GFX into CUBE IDE?

15 REPLIES 15

Yes, but I copied and pasted

You can't drag/drop, or copy/paste onto the project tree. You have to use Window Explorer and paste in the Core folder src and inc respectfully like i said to do with the other files. 

You've copy/paste the main.h into i believe STM32CubeIDE\Application\User directory which the compiler doesn't see even though you can see it in the project tree. You can see that your main.h doesn't have the link icon like the other files do.

Follow my directions about importing/linking files, which you can do with the original main.h file. Then double click the main.h file to open it, copy what code/defines that you need from the first main.h into the TouchGFX main.h.

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

Thank you, I followed your instructions, and now when I run BUILD PROJECT, I get zero errors and warnings.

Unfortunately, the code from the first firmware doesn’t work. In the PROJECT TREE of the second (program created by TOUCHGFX), I don’t see any .ioc file. Is that normal? What can I check? Do I need to copy the .ioc file somewhere? Thanks.

Using Windows explorer, go to the TouchGFX project. You should see the IOC file in the root directory. Now, for this IOC file, which is already in the project, you can actually drag and drop onto your project tree. You should get a window pop-up, just select Link to files and OK.

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

Thank you again, I followed your instructions, but I'm getting the error shown in the attached screenshot. What could be causing it?

Rename the IOC file to exactly the same name as the Project.

https://youtu.be/AizWAlbU4Og?si=ofmPNmwsAS82SPAZ

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.