STM32 Deployment Library Error undeclared Reference

Hi,

While trying to build a project on the STM CUDE IDE using the STM32 Library and following the steps in the tutorial, I get errors about undeclared references to tflite. Attached are logs below:

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: ./Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.o: in function trained_model_init(void* (*)(unsigned int, unsigned int))': D:/NN-3/Debug/../Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:387: undefined reference to tflite::ops::micro::Register_RESHAPE()’
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: D:/444 Projects/NN-3/Debug/…/Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:388: undefined reference to tflite::Register_CONV_2D()' 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: D:NN-3/Debug/../Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:389: undefined reference to tflite::ops::micro::Register_MAX_POOL_2D()’
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: D:/NN-3/Debug/…/Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:390: undefined reference to tflite::Register_FULLY_CONNECTED()' 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: D:/NN-3/Debug/../Middlewares/Third_Party/EdgeImpulse_Mj42-project-1_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:391: undefined reference to tflite::Register_SOFTMAX()’

Thanks for the help.

1 Like

I think this is similar to Can't verify STM32WL project successfully so we’ll track it there.

1 Like