cancel
Showing results for 
Search instead for 
Did you mean: 

Integration of simple TouchGFX code/project into existing STM32CubeIDE proejct

UZbin.1
Associate II

Hi

Currently we are developing a project based on the STM32H723.
The project is a platform for different derivates.
It uses as well Azure RTOS.
We used STM32CubeMX to generate reference code.
But at the end we modified the generated code and organized ourself the project and folder structure.
It is well integrated in the STM32CubeIDE.

Until now we had no graphical interface. But for a new project we need this.
I have already good experience with TouchGFX itself on a NUCLEO Board (STM32H723) with a SPI interface to the display.
But not with the integration to another project.
Right now we are trying to include somehow a simple TouchGFX project into our existing project.

There is nice explication on the web how to integrate the existing TouchGFX project

https://support.touchgfx.com/docs/development/ui-development/working-with-touchgfx/using-ides-with-touchgfx

I followed the instructions. But I get an error when compiling the project.
I included the necessary files into the project and added also the include paths.
The error can be seen in the attached picture....


On the screenshot you can see as well the project and folder structure.

What could be wrong?
Did I integrate all necessary files?
Is this the right way to integrate a TouchGFX project into our environment?

Thanks a lot
Cheers
Urs

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

Hello @UZbin.1 ,

Since you are using a custom board with modified generated files and file structure, TouchGFX is very dependent of the structure. Could you send me your project so I can see throughout this issue?

All you can try to no initialize text_all_languages or initialize indicesGB to 0.

... texts_all_languages[] TEXT_LOCATION_FLASH_ATTRIBUTE;

or

... indicesGb[] TEXT_LOCATION_FLASH_ATTRIBUTE = { 0 };

This workaround may work.

I hope that helps.

Regards,

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
LouisB
ST Employee

Hello @UZbin.1 ,

Since you are using a custom board with modified generated files and file structure, TouchGFX is very dependent of the structure. Could you send me your project so I can see throughout this issue?

All you can try to no initialize text_all_languages or initialize indicesGB to 0.

... texts_all_languages[] TEXT_LOCATION_FLASH_ATTRIBUTE;

or

... indicesGb[] TEXT_LOCATION_FLASH_ATTRIBUTE = { 0 };

This workaround may work.

I hope that helps.

Regards,

Louis BOUDO
ST Software Developer | TouchGFX
UZbin.1
Associate II

Hi

Sorry for the delay.

I'll try as you mentioned to modify the initialization of the arrays.

I can do it next week, because Eastern is coming and we are out of office.

But l'll give you an update as soon as I have good or bad news.

Thanks a lot.

Cheers 

Urs