Skip to main content
Associate II
June 21, 2025
Solved

Will TouchGFX-Generated Code for STM32 Development Board Work on a Custom Board with Same Pinout?

  • June 21, 2025
  • 1 reply
  • 327 views

Hi everyone,

I'm currently working on a custom board based on an STM32 microcontroller, and I’ve developed my GUI using TouchGFX on the STM32F746G Discovery board. Now I want to migrate the same project to my custom hardware.

The custom board uses the same MCU (STM32F746) and all the peripheral pins (LTDC, FMC, UART, etc.) are mapped identically to those on the Discovery board. The only difference is that it’s a custom PCB and not the original development board.

My questions are:

  1. Can I directly use the code generated by TouchGFX (and STM32CubeMX/CubeIDE) from the Discovery board project on the custom board?

  2. Are there any specific changes I need to make for hardware initialization or BSP configurations?

  3. Has anyone done this kind of migration successfully with minimal modifications?

Any tips or guidance from those who have gone through this process would be much appreciated!

Thanks in advance.

Best answer by LouisB

Hello @JaiGanesh,

If the MCU references are the same (STM32F746NGH6 is the complete ref of the DK), then the pin is the same.

It depends if your custom board was based on the DK board, with the same screen etc, then yes. Otherwise you may need to do modification in CubeMX (ex if you use a different memory or screen type).

BR,

1 reply

LouisBBest answer
ST Employee
July 10, 2025

Hello @JaiGanesh,

If the MCU references are the same (STM32F746NGH6 is the complete ref of the DK), then the pin is the same.

It depends if your custom board was based on the DK board, with the same screen etc, then yes. Otherwise you may need to do modification in CubeMX (ex if you use a different memory or screen type).

BR,