Skip to main content
MBosc.2
Associate II
August 20, 2021
Solved

Crate custom project

  • August 20, 2021
  • 6 replies
  • 1881 views

HI

I am a beginner on using touchGFX. I did some tests with an evaluation board and everything works, I was able to do some tests. Now I ask you how should I do to create a new project with a hardware built by me? I haven't found a tutorial explaining how to set up IDE and GFX from the start.

This topic has been closed for replies.
Best answer by Soren Myllerup MIKKELSEN

Hello Mbosc.2

Have you read this article explaining board bring up: Board Bring Up Introduction | TouchGFX Documentation

And also the "how to" section addressing different steps and components.

6 replies

ktrofimo
Senior III
August 22, 2021

It is pretty straightforward. Set up your display hardware (like LTDC and DMA2D), and enable TouchGXF in STM32CubeIDE​. This will make an empty TouchGFX project in source tree. Open it, make your screen(s) and generate code. Then switch back to STM32CubeIDE, check for necessary include paths and libraries and compile project. Should be compiled without errors.

Probably you will need to ​add your own touchscreen driver (not generated for custom boards)

Generally you should be able to switch between TouchGFX designer and STM32CubeIDE and regenerate code as you need, but TouchGFX would not be able to build and run simulator ​project without special attention - it is necessary to cut all extra code with #ifndef SIMULATOR directives.

MBosc.2
MBosc.2Author
Associate II
August 23, 2021

Thanks..

I tried to do the whole procedure and create the touchGFX folders.

But I still have some problems that it doesn't fill in:

1): libtouchgfx-float-abi-hard.a did not create the folder, do I have to copy it by hand?

2) undefined reference to 'touchgfx_init' I think I have entered the path correctly

ktrofimo
Senior III
August 23, 2021

1. This library should be in project source structure. Take an example project and see how it is configured.

2. Check header files

Soren Myllerup MIKKELSEN
ST Employee
August 24, 2021

Hello Mbosc.2

Have you read this article explaining board bring up: Board Bring Up Introduction | TouchGFX Documentation

And also the "how to" section addressing different steps and components.

MBosc.2
MBosc.2Author
Associate II
August 24, 2021

Hi MIKKELSEN,

thanks, I had found and followed the procedure and it creates the whole environment including touchGFX. But I still have a problem when I compile, probably I am missing a setting, the library has been added, I send the error screen.

What have I forgotten?

MBosc.2
MBosc.2Author
Associate II
August 24, 2021

0693W00000DqDivQAF.png0693W00000DqDigQAF.png

Soren Myllerup MIKKELSEN
ST Employee
September 1, 2021

Hello MBosc.2

It seems you have create a C based project. As TouchGFX is C++ based you would need to C/C++ based CubeIDE project.

Romain DIELEMAN
ST Employee
September 1, 2021

Popping in to inform you that you can convert your project to C++ by right clicking on your project in the Tree View on the left in STM32CubeIDE

/Romain