cancel
Showing results for 
Search instead for 
Did you mean: 

How to add TouchGfx to project built from UART Example?

TakenTheBacon
Associate III

I have built up a CubeMX project from an example, is it possible to add TouchGfx to the project now? If so, how? It seems to be taking me in circles.

Thanks

1 REPLY 1
JTP1
Lead

Hello. Certainly it is possible even though bit tricky. Are you having custom board or some discovery kit ?

If you are using some discovery, you can test this kind of method:

First create simple project from Tgfx to this board and test that it works.

Then open that .ioc to other CubeIDE/CubeMX window and manually check/copy the settings to you UART example project .ioc wiew(enable X-CUBE-TOUCHGFX, LTDC, FREERTOS etc, set parameters for those). Then generate your UART project with TGFX enabled from CubeMX.

Then open the ApplicationTemplate.touchgfx.part under TouchGFX folder in CubeIDE. Create some simple graphichs for test in Tgfx designer. You can set that everything is placed on the IntFlash, bit easier then. Then generate code from Tgfx designer.

Then it is maybe compliling in CubeIde, but not working yet. Then you must modify the generated code, compare your project and TGFXdesigner generated project 👍