cancel
Showing results for 
Search instead for 
Did you mean: 

Code from TouchGFX Designer uses wrong LED/GPIO names for STM32F429I Eval

Pirol
Associate III

When I generate a project for STM32F429I Evaluation with TouchGFX Designer 4.19.1, there is a problem with the LED names. The board has four user LEDs which are used to show the vsync-frequency, the render time, the frame rate and if the MCU is active.

In main.h, the definitions for VSYNC and MCU are

#define MCU_ACTIVE_Pin GPIO_PIN_10
#define MCU_ACTIVE_GPIO_Port GPIOG
#define VSYNC_FREQ_Pin GPIO_PIN_7
#define VSYNC_FREQ_GPIO_Port GPIOG

In TouchGFXGPIO.cpp, the functions try to call by different names:

void GPIO::set(GPIO_ID id)
{
    switch (id)
    {
    case GPIO::VSYNC_FREQ:
        HAL_GPIO_WritePin(VSYNC_GPIO_Port, VSYNC_Pin, GPIO_PIN_SET);
        break;
    case GPIO::RENDER_TIME:
        HAL_GPIO_WritePin(RENDER_TIME_GPIO_Port, RENDER_TIME_Pin, GPIO_PIN_SET);
        break;
    case GPIO::FRAME_RATE:
        HAL_GPIO_WritePin(FRAME_RATE_GPIO_Port, FRAME_RATE_Pin, GPIO_PIN_SET);
        break;
    case GPIO::MCU_ACTIVE:
        HAL_GPIO_WritePin(MCU_GPIO_Port, MCU_Pin, GPIO_PIN_SET);
        break;
    }
}

"_FREQ" is missing after "VSYNC" and "_ACTIVE" is missing after MCU.

This is of course easy to fix in a project, but it is annoying to fix it in every new project again. And I find it quite strange. Some weeks ago, there was no problem, and then on some day, it didn't work any more. Additionally, my collegue does not have the same problem. At his computer, it's working fine.

Does any one have an idea what could be the problem? I don't have any.

2 REPLIES 2
Yoann KLEIN
ST Employee

Hello @Pirol​ ,

Thanks for reporting this issue.

That is a mistake in the STM32F429I TouchGFX Board setup.

We will work on that and fix it.

Thanks,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX

Hello @Yoann KLEIN​ ,

thanks for your answer.