How to solve undefined reference errors during building a project in STM32CubeIDE?
- February 6, 2022
- 2 replies
- 2549 views
Error message:
*****************************
c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: ./TouchGFX/generated/fonts/src/CachedFont.o: in function `touchgfx::ConstFont::~ConstFont()':
C:/Users/mande/Documents/STM32/STM2New2/STMF207New2/Debug/../Middlewares/ST/touchgfx/framework/include/touchgfx/ConstFont.hpp:35: undefined reference to `vtable for touchgfx::ConstFont'
*****************************
Project Background
I have STM32F207, XPT2046 touch detect controller, ILI9488 LCD and using FSMC/DMA for LCD.
I am trying to integrate touchgfx with above setup through STM32CubeIDE. There is no reference project related to F2 family of STM32 with TouchGFX.
So what I am doing is creating TouchGFX initial files with STM32F4 MCU and modifying the contents in "ApplicationTemplate.touchgfx" file as per STM32F2 needs.
Some of the resources that has helped me reach here are (thank you to content creators)
https://www.youtube.com/watch?v=suMytEyQTP4
https://www.youtube.com/watch?v=hfeKMZXt2L8
https://chowdera.com/2020/12/20201205093754419p.html
But I need help with the compilation of the project, specifically the kind of errors i am getting as mentioned above.
A STM32CubeIDE project with simple image or button display on lcd, STM32F207 and TouchGFX which can cleanly build is what I am looking for.
Thank you.
