cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Performance Measurement GPIO pins not working as expected

Masa
Associate

Hi,

We are trying to setup the GPIO pins for measuring TouchGFX performance. We have defined user labels to GPIO pins as instructed in TouchGFX documentation: https://support.touchgfx.com/docs/development/touchgfx-hal-development/scenarios/scenarios-measure-performance. But so far the only GPIO that is doing anything is the RENDER_TIME signal. The rest of the signals are at 0V. I verified with the debugger that the only pin that is being driven is the RENDER_TIME GPIO in the file TouchGFXGPIO.cpp in the function void GPIO::set(GPIO_ID id). This function is only called with the GPIO_ID of GPIO::RENDER_TIME.

What are we missing in the configuration? We are using freertos in this system.

2 REPLIES 2

Hello @Masa ,

You don't need to do anything especial except setting the GPIO Labels in STM32CubeMX and the generating from there and generating code from TouchGFX afterwards. TouchGFXGPIO.cpp and GPIO.hpp should be generated automatically. 
Could you please confirm that the labels you set are exactly the same as the ones mentioned in the documentation? And also the pins are generated from STM32CubeMX in main.h?

Thank you

Mohammad MORADI
ST Software Developer | TouchGFX

Here are the pin GPIO pin definitions in the cube mx config:

Masa_7-1707216716264.png

Masa_8-1707216753605.png

Masa_9-1707216791577.png

Here are the pin definitions in the main.h generated by cube mx:

Masa_12-1707217428183.png

Masa_11-1707217093557.png

Masa_13-1707217496863.png

 

Masa_10-1707217068939.png

So everything should be correctly configured. Atleast the RENDER_TIME pin is defined in the set function and it is called from the touchgfx binary.