2024-02-01 06:09 AM
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.
2024-02-06 02:28 AM
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
2024-02-06 03:08 AM
Here are the pin GPIO pin definitions in the cube mx config:
Here are the pin definitions in the main.h generated by cube mx:
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.