Post Go back to editing

ADIN2111 device driver lwip example: Multiple definitions error

Category: Software

Hi.

When i try to run the lwip example from the ADIN2111 device driver, i get an "multiple definitions" error.

I cant seem to locate where the multiple definitions should appear.

This is the error message from the console:

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: ./external/lwip-2.1.2/src/apps/http/fsdata.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:311: multiple definition of `file__img_sics_gif'; ./external/lwip-2.1.2/src/apps/http/fs.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:311: first defined here


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: ./external/lwip-2.1.2/src/apps/http/fsdata.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:319: multiple definition of `file__404_html'; ./external/lwip-2.1.2/src/apps/http/fs.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:319: first defined here


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: ./external/lwip-2.1.2/src/apps/http/fsdata.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:327: multiple definition of `file__index_html'; ./external/lwip-2.1.2/src/apps/http/fs.o:C:/Users/mdlm/STM32CubeIDE/workspace_1.8.0/Foss_adin2111-master/Debug/../external/lwip-2.1.2/src/apps/http/fsdata.c:327: first defined here
collect2.exe: error: ld returned 1 exit status

make: *** [makefile:81: Test.elf] Error 1