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-10-25 04:23 AM
Hello @Emanuele78 ,
Once you have created you desired GUI, simply click on "Generate code" on the bottom right corner:
Then you can simply open the folder of your project on the bottom left:
Finally, open your STM32CubeIDE project in the STM32CubeIDE project.
Also, you can look at this video : How to TouchGFX: Creating my first GUI with TouchGFX Designer for STM32 GUI applications
Hope this help! :smiling_face_with_smiling_eyes:
If this answers your question, I invite you to select this comment as "best answer".
Regards,
2024-10-25 04:23 AM
Hello @Emanuele78 ,
Once you have created you desired GUI, simply click on "Generate code" on the bottom right corner:
Then you can simply open the folder of your project on the bottom left:
Finally, open your STM32CubeIDE project in the STM32CubeIDE project.
Also, you can look at this video : How to TouchGFX: Creating my first GUI with TouchGFX Designer for STM32 GUI applications
Hope this help! :smiling_face_with_smiling_eyes:
If this answers your question, I invite you to select this comment as "best answer".
Regards,
2024-10-25 06:27 AM - edited 2024-10-25 08:22 AM
Thank you, I managed to import the file created in TouchGFX into the IDE. Now, for the next step, how do I integrate it into the IDE firmware I've already written? How should I proceed? Which folders do I need to copy from the TouchGFX file to the IDE?
In the attached screenshot, you can see the two projects open. Thanks again.
2024-10-25 03:09 PM
To many files. folders and adding paths to deal with. You're better off copying your files from the other project into the TouchGFX project.
2024-11-07 11:33 PM
I did as instructed, but I’m getting errors. The IDE indicates that some definitions are not recognized within the main.c file. However, the definitions are present in main.h, and main.c includes main.h. What could be causing this error? Thank you.
2024-11-07 11:58 PM
It depends on where you placed your files in the TouchGFX project. Show your project tree and added files.
2024-11-08 12:41 AM
2024-11-08 01:17 AM
You only have ds18b20.c/h files from what i can see. Using Windows Explorer, go to the TouchGFX project then Core directory. Copy the ds18b20.c/h files to the src and inc folders.
Whatever you've done in main.c in your first project, you'll have to copy/paste to the TouchGFX, typically functions. If you wrote code in while loop, then you'll need to add that code to a new TouchGFX task because the while loop in TouchGFX is never reached, which you'll see a comment indicating that.
To show the new files in the project tree, I believe you may need to do a import of the ds18b20 files but be sure to only link them
2024-11-08 01:34 AM
Setting aside the ds18b20.c/h files for now, I copied/pasted what I wrote in main.c from the first project into the main.c created by TouchGFX, including the while loop. I also copied main.h from the first project into the second one, is this correct?
The IDE is showing several errors, the most frequent being that the variables from the first project are considered undeclared or not correctly defined in main.c. However, they are actually defined in main.h, which I copied (from the first to the second). How can I fix this? Thanks again.
2024-11-08 01:59 AM
You drag and drop the main.h file onto the TouchGFX project tree?