2024-10-25 02:52 AM
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?
Solved! Go to Solution.
2024-11-08 02:38 AM
Yes, but I copied and pasted
2024-11-08 02:52 AM
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.
2024-11-08 06:56 AM
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.
2024-11-08 07:14 AM
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.
2024-11-08 07:25 AM
2024-11-08 07:36 AM
Rename the IOC file to exactly the same name as the Project.
https://youtu.be/AizWAlbU4Og?si=ofmPNmwsAS82SPAZ