cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX with STM32F469I-DISCO compiler errors

mandrake
Senior

Running STM32CubeIDE 1.7.0 and TouchGFX 4.18.0.

I double click on .project file to invoke STM32CubeIDE.

Project for STM32F746G_DISCO compiles and runs ok.

Compile errors encountered with STM32F469I-DISCO.

Something to do with how the project is imported and missing drivers. I have tried various methods of importing the project. The first error is missing _hal_uart.c driver. If I delete that, the next error is missing \BSP\Components\mfxstm32l152 and the list goes on.

I should add that the board runs ok using Run Target directly from TouchGFX.

Also I have tried the simplest TouchGFX app as well as one of the examples with no luck importing to CubeIDE.

1 REPLY 1
mandrake
Senior

I still have not been able to fix the problem stated above.

Running STM32CubeIDE 1.7.0 and TouchGFX 4.18.0.

STM32F746G_DISCO compiles and runs ok with no problems.

My project is now completed and ready to port over to STM32F469I-DISCO.

STM32F469I-DISCO runs ok on TouchGFX.

On STM32CubeIDE there are compilation errors.

1) missing stm32f4xx_hal_uart,c

2) missing mfxstm32l152.c files

There must be something wrong somewhere in code generation for STM32F469I-DISCO.

I copied the missing files from github. Got past those errors.

Now, next batch of errors:

c:\st\stm32cubeide_1.7.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: ./Application/User/TouchGFX/target/STM32TouchController.o: in function `STM32TouchController::init()':

C:/TouchGFXProjects/GFX_DPA01/TouchGFX/target/STM32TouchController.cpp:33: undefined reference to `BSP_TS_Init'

c:\st\stm32cubeide_1.7.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: ./Application/User/TouchGFX/target/STM32TouchController.o: in function `STM32TouchController::sampleTouch(long&, long&)':

C:/TouchGFXProjects/GFX_DPA01/TouchGFX/target/STM32TouchController.cpp:56: undefined reference to `BSP_TS_GetState'

c:\st\stm32cubeide_1.7.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: ./Application/User/TouchGFX/target/TouchGFXHAL.o: in function `touchgfx::KeySampler::KeySampler()':

C:/TouchGFXProjects/GFX_DPA01/STM32CubeIDE/Debug/../../TouchGFX/target/KeySampler.hpp:51: undefined reference to `vtable for touchgfx::KeySampler'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/STM32CubeIDE/Debug/../../TouchGFX/target/KeySampler.hpp:51: undefined reference to `touchgfx::KeySampler::init()'

c:\st\stm32cubeide_1.7.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: ./Application/User/main.o: in function `MX_FMC_Init':

C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:680: undefined reference to `BSP_SDRAM_DeInit'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:681: undefined reference to `BSP_SDRAM_Init'

c:\st\stm32cubeide_1.7.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: ./Application/User/main.o: in function `MX_QUADSPI_Init':

C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:624: undefined reference to `BSP_QSPI_DeInit'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:625: undefined reference to `BSP_QSPI_Init'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:629: undefined reference to `BSP_QSPI_EnableMemoryMappedMode'

c:\st\stm32cubeide_1.7.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: ./Application/User/main.o: in function `MX_ADC1_Init':

C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:277: undefined reference to `HAL_ADC_Init'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Core/Src/main.c:286: undefined reference to `HAL_ADC_ConfigChannel'

c:\st\stm32cubeide_1.7.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: ./Drivers/BSP/Components/otm8009a.o: in function `OTM8009A_Init':

C:/TouchGFXProjects/GFX_DPA01/Drivers/BSP/Components/otm8009a/otm8009a.c:212: undefined reference to `OTM8009A_IO_Delay'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Drivers/BSP/Components/otm8009a/otm8009a.c:216: undefined reference to `OTM8009A_IO_Delay'

c:\st\stm32cubeide_1.7.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: C:/TouchGFXProjects/GFX_DPA01/Drivers/BSP/Components/otm8009a/otm8009a.c:385: undefined reference to `OTM8009A_IO_Delay'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:88: STM32F469I-EVAL.elf] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

20:43:37 Build Failed. 22 errors, 0 warnings. (took 42s.786ms)