2021-10-06 02:56 AM
Greetings All
I am implementing an ADC-based GUI on my board and my code is not building due to the abovementioned error (even when the file exists. I am using STMCubeMX(6.3.0), STM32CubeIDE (1.7.0) and TouchGFX(4.17.0) to develop my GUI. Most of these files are in the simulator folder so I figure there must be a way to omit them as I suspect that they may be giving me problems. This is for my final-year project and I am pressed for a solution. Any assistance will be greatly appreciated.
2021-10-06 06:36 AM
Hello @LNdungane and welcome to the Community :)
Maybe you haven't configured correctly the Include paths within your project.
So, you need to examine the example/template projects available with the firmware libraries STM32CubeF4 and use it as source of inspiration to configure the include paths, the defines and the structure with the stm32f4xx_conf.h in the project directory.
Good luck for your final-year project ;) and don't hesitate to come back to the Community if you still have issues.
Imen
2021-10-06 06:51 AM
What file or directory is it looking for?
Show the full error message, screenshots if helpful. Hard to debug with limited info.
2021-10-06 07:43 AM
@Imen DAHMEN "Maybe you haven't configured correctly the Include paths within your project"
^^^ THAT! ^^^
@LNdungane For an explanation of "include paths", see: https://devzone.nordicsemi.com/f/nordic-q-a/46716/simple-adc-code/184681#184681
Note that this is standard C stuff - not specific to STM32
2021-10-06 10:12 AM
Hi Imen. I managed to get rid of the simulator files but I am getting compiler errors such as the ones above. I followed the prompts from another ST Microelectronics video (https://youtu.be/VOs2LYO7wSA) but the solution shown has not solved the problem. Any aassistance regarding this matter will be apppreciated.
Lebohang.
2021-10-06 10:13 AM
Hi TDK I have since resolved that issue. However I am faced with complilation errors. Please see the image below:
2021-10-06 10:19 AM
Thank you Andrew, I have resolved that matter and been met with compilation errors since. It's frustrating at this point.
2021-10-06 10:44 AM
would be better to copy & paste the text - your image has truncated the messages.
Fortunately, when you get loads of messages like that it's often down to just one problem (or a few problems) - fix them, and all the messages will go away.
The key is to address the earliest-reported message first.
2021-10-06 01:33 PM
Hi Andrew
The text (manually truncated ) is shown below, it extends for 500-odd lines in my console:
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `StartDefaultTask':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1086: multiple definition of `StartDefaultTask'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1086: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `AnalogueIn':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1104: multiple definition of `AnalogueIn'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1104: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `SystemClock_Config':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:270: multiple definition of `SystemClock_Config'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:270: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `main':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:172: multiple definition of `main'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:172: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_Init':
main.c:(.text.IOE_Init+0x0): multiple definition of `IOE_Init'; ./Application/User/main.o:main.c:(.text.IOE_Init+0x0): first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_ITConfig':
main.c:(.text.IOE_ITConfig+0x0): multiple definition of `IOE_ITConfig'; ./Application/User/main.o:main.c:(.text.IOE_ITConfig+0x0): first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_Write':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:839: multiple definition of `IOE_Write'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:839: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_Read':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:850: multiple definition of `IOE_Read'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:850: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_ReadMultiple':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:863: multiple definition of `IOE_ReadMultiple'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:863: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `IOE_Delay':
main.c:(.text.IOE_Delay+0x0): multiple definition of `IOE_Delay'; ./Application/User/main.o:main.c:(.text.IOE_Delay+0x0): first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `LCD_IO_Init':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1000: multiple definition of `LCD_IO_Init'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1000: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `LCD_IO_WriteData':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1010: multiple definition of `LCD_IO_WriteData'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1010: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `LCD_IO_WriteReg':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1026: multiple definition of `LCD_IO_WriteReg'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1026: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `LCD_IO_ReadData':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1045: multiple definition of `LCD_IO_ReadData'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1045: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `LCD_Delay':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1073: multiple definition of `LCD_Delay'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1073: first defined here
c:\st\stm32cubeide_1.6.1\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: ./Core/Src/main.o: in function `HAL_TIM_PeriodElapsedCallback':
C:/ST/System/System/STM32CubeIDE/Debug/../Core/Src/main.c:1127: multiple definition of `HAL_TIM_PeriodElapsedCallback'; ./Application/User/main.o:C:/ST/System/System/Core/Src/main.c:1127: first defined here
....
2021-10-06 01:42 PM