cancel
Showing results for 
Search instead for 
Did you mean: 

can I code in c language for touch GFX?

Aarra.1
Senior

Hello,

I'm working with touchGFX and I'm a beginner in it.

Please do not mind if the question is not proper.

I have generated a code using touchGFX but the code generated is in cpp language.

Is there any way if I can code for touchGFX in c language.

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

When you ask control GUI parts in C, then simple reply is it cant.

When you ask for RTOS other tasks except GUI, you can use C in some tasks C++ in other usw...

View solution in original post

4 REPLIES 4
TDK
Guru

Generally it's going to be easier to adopt the language of the auto generated code. Certainly most C code can run perfectly well within a CPP file.

If you feel a post has answered your question, please click "Accept as Solution".
MM..1
Chief III

When you ask control GUI parts in C, then simple reply is it cant.

When you ask for RTOS other tasks except GUI, you can use C in some tasks C++ in other usw...

Thank you for the quick response.

I'm trying to debug the code for TouchGFX from stm32cubeide (1.7.0) to the stm32h757i-eval board.

The debug happens successfully but there is nothing being displayed on the board.

this is the response after debug

 -------------------------------------------------------------------

            STM32CubeProgrammer v2.8.0          

   -------------------------------------------------------------------

ST-Link Server is running on port : 7184

ST-LINK SN : 003600263137510F33333639

ST-LINK FW : V3J8M3

Board    : STM32H757I-EVAL

Voltage   : 3.27V

SWD freq  : 24000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x450

Revision ID : Rev V

Device name : STM32H7xx

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M7/M4

BL Version : 0x90

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a01420.srec

 File     : ST-LINK_GDB_server_a01420.srec

 Size     : 468880 Bytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 3]

Download in Progress:

File download complete

Time elapsed during download operation: 00:00:05.389

Verifying ...

Download verified successfully 

The debug is successful but

the code is not running on the display.

Thanks in advance.

"The debug is successful but

the code is not running on the display."

Maybe you mean flash is successful, because debug is real check , that code is run and loop in normal.

Download verified dont mean that code is realy started usw.

What code you load to H757 ? Custom or original example?

Good point to start is ready to go example in TouchGFX if exist for your board.