cancel
Showing results for 
Search instead for 
Did you mean: 

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

JaiGanesh
Associate II

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.

1 REPLY 1
LouisB
ST Employee

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,

Louis BOUDO
ST Software Engineer | TouchGFX