Skip to main content
MM..1
Chief III
June 30, 2022
Solved

IDE 1.10 linker error undefined reference to

  • June 30, 2022
  • 1 reply
  • 1046 views

Now testing update to latest IDE and first project i test canot link.

All files is compiled ok.

linked func and vars is reported as undefined reference to __??

c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:514: undefined reference to `Preamp_Update'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:565: undefined reference to `Preamp_Settings'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:565: undefined reference to `Preamp_Status'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:565: undefined reference to `MUSEVOL'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:565: undefined reference to `Preamp_Update_Flags'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: ./Core/Src/main.o: in function `EE_Read':
C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:295: undefined reference to `EE_Init'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:299: undefined reference to `EE_ReadVariable'
c:\st\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/Nx0/Debug/../Core/Src/main.c:306: undefined reference to `EE_ReadVariable'

 89 errors ...

This topic has been closed for replies.
Best answer by MM..1

I check project more and some upgrade step delete all custom project c files /Core/Src/...

and leave only new generated. Be safe

1 reply

MM..1
MM..1AuthorAnswer
Chief III
June 30, 2022

I check project more and some upgrade step delete all custom project c files /Core/Src/...

and leave only new generated. Be safe