cancel
Showing results for 
Search instead for 
Did you mean: 

Hi. I want to display a character string from main.c in TextArea with TochGFX. But I don't know how. Do you have a reference project? Thank you.

Goemon
Associate II
 
5 REPLIES 5
Romain DIELEMAN
ST Employee

Hi,

Could you give some more details on what you are you trying to do exactly and what you have?

I would also like to know the structure of your project: Did you create it by selecting an AT on the Designer tool? If yes then is the main.c file you are talking about the one found in the folder core/src ?

/Romain

Goemon
Associate II

Hi, Mr.Romain

I appreciate your help.

I understand how to display data on a Wildcard in a TextArea in a sample project.

So what I want to do is to display the string received by USART in TextArea.

Specifically, I want to create a new task in main.c and change the Text of TextArea from this task.

Main.c is in the folder core/src.

​By the way, does AT of the designer tool mean APPLICATION TEMPLATE?

I am using STM32F746G Discovery. UI TEMPLATE chose Blank UI and placed one TextArea.​

Thank you.​

Hi,

AT means Application Template yes, I always forget to not use acronyms sorry.

TouchGFX follows the Model-View-Presenter logic, where the Mode class communicates with the Backend system (non UI stuff). So you can send what you received through USART to the model then to the your TextArea. This is not exactly what you asked but it seems easier that way.

You can find examples here on backend communication with TouchGFX.

Hope this helps,

/Romain

Goemon
Associate II

Hi, Mr.Romain

I was able to achieve my purpose.

Thank you very much.

Perfect !