2025-07-10 2:34 AM
I use stm32cube MX create a project to drive customed board and RGB screen , this step is successful to drive the screen ; but add the touchGFX , stm32cubeIDE have some error as follows after compiling with touchGFX
D:/Project/SC550/sample/SC550_LCM/Debug/../Core/Src/freertos.c:116:(.text.MX_FREERTOS_Init+0x38): undefined reference to `TouchGFX_Task'
undefined reference to `TouchGFX_Task'
D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/main.o: in function `main':
D:/Project/SC550/sample/SC550_LCM/Debug/../Core/Src/main.c:105:(.text.main+0x2a): undefined reference to `MX_TouchGFX_Init'
undefined reference to `MX_TouchGFX_Init'
D:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: D:/Project/SC550/sample/SC550_LCM/Debug/../Core/Src/main.c:107:(.text.main+0x2e): undefined reference to `MX_TouchGFX_PreOSInit'
undefined reference to `MX_TouchGFX_PreOSInit'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:122: SC550_LCM.elf] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.