2025-06-21 10:28 AM
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:
Can I directly use the code generated by TouchGFX (and STM32CubeMX/CubeIDE) from the Discovery board project on the custom board?
Are there any specific changes I need to make for hardware initialization or BSP configurations?
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.
2025-07-10 6:50 AM - edited 2025-07-10 11:31 PM
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,