cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement TouchGFX's generated GUI-software in keil-project?

Pvon .1
Associate II

Hi STCommunity,

I have a project started in keil, configured through CubeMX via keil's "Manage Run-Time Environment" with RTOS2 RTX5 implemented, just as this guide shows: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.keil.com%2Fpack%2Fdoc%2FSTM32Cube%2Fhtml%2Fcubemx_using.html&data=04%7C01%7C%7Cde618df5b527410658bd08d89298fd9c%7Ce369e0ccf38d406b876915438de2e3af%7C1%7C1%7C637420533809252717%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIj....

From here I'd like to use TouchGFX designer to generate some GUI-software for a NON-touch LCD display for me to implement in my project, but even though ST’s guide claims that it's doable in several of your tutorials/guide (one of them: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.touchgfx.com%2Fdocs%2Fdevelopment%2Fdevelopment-introduction%23custom-hardware-1&data=04%7C01%7C%7Cde618df5b527410658bd08d89298fd9c%7Ce369e0ccf38d406b876915438de2e3af%7C1%7C1%7C637420533809252717%7CUnknown%7CTWFpbGZsb3d8ey...), I find it pretty complicated to achieve success..

I've tried to follow this guide as well (p. 243 https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsw-center-st-com.s3-eu-west-1.amazonaws.com%2Ftouchgfx%2Fdoc%2F4.13%2Ftouchgfx-documentation-4.13.0.pdf&data=04%7C01%7C%7Cde618df5b527410658bd08d89298fd9c%7Ce369e0ccf38d406b876915438de2e3af%7C1%7C1%7C637420533809252717%7CUnknown%7C...), with no luck.

Do you have a step-by-step guide I can follow, or is it not possible to do it this way around? 

Best regards, 

Peter

1 ACCEPTED SOLUTION

Accepted Solutions

Update: from within CubeMX's Pinout Configuration, under Software Packs in the Categories-tab, I found that you also need to activate the TouchGFX-driver - which seems to become available AFTER the software pack has been enabled in the Software Pack Manager, and the application has been selected under Components Selector.

0693W000005D1viQAC.pngSeems a bit entangled way to do it, but now the TouchGFX folder gets generated in my CubeMX-folder. 👍

View solution in original post

5 REPLIES 5
Martin KJELDSEN
Chief III

Yes it's doable to have no touch 🙂

When you start from CubeMX/CubeIDE you can enable TouchGFX as a "Software Pack". Once you enable it, and Generate Code from CubeMX/CubeIDE you will then have a "TouchGFX" folder with a touchgfx project which you can start to update. Generating code files for your touchgfx application will also update the Keil project with those files.

/Martin

Pvon .1
Associate II

.

Hi Martin,

Thanks for your explanation, but I still can't seem to get the TouchGFX files implemented correct into my Keil-project.

You're saying that when I create the project through CubeMX, and enable the TouchGFX software packs, the TouchGFX project files should be created when I generate the code from within CubeMX. I can't find any TouchGFX project files anywhere though - are they supposed to be placed inside the CubeMX-project-folder?

I'm using CubeMX 6.0.1. I have selected and installed the software package TouchGFX Generator 4.15.0 from Software Packages Manager:

0693W000005D1pkQAC.pngFurthermore I have selected TouchGFX Generator from the Component Selector:

0693W000005D1q9QAC.png 

I don't know how it's supposed to look like, but here are the only folders that CubeMX generates for my project, with no hidden folders, and no .touchgfx files to find anywhere within that folder - or anywhere else it seems.

0693W000005D1rCQAS.pngThe only way it's possible for me to generate .touchgfx files, is to do it "manually" from the TouchGFX Generator-software.

Update: from within CubeMX's Pinout Configuration, under Software Packs in the Categories-tab, I found that you also need to activate the TouchGFX-driver - which seems to become available AFTER the software pack has been enabled in the Software Pack Manager, and the application has been selected under Components Selector.

0693W000005D1viQAC.pngSeems a bit entangled way to do it, but now the TouchGFX folder gets generated in my CubeMX-folder. 👍

That's how software packs work in CubeMX.

And now you'll use the TouchGFX designer to generate code files for the TouchGFX application. Upon generation, the Touchgfx designer will update whatever project you have selected in CubeMX.

You can read more about the flow in our documentation: https://support.touchgfx.com/docs/development/touchgfx-hal-development/touchgfx-generator