使用CubeIDE编译出错,已经重装过CubeIDE,问题依旧存在,各位大神有什么解决办法码
make -j32 all
arm-none-eabi-gcc -o "GPIO_LED_SEGMENT_3.elf" @"objects.list" -mcpu=cortex-m0plus -T"C:\Users\lenovo\STM32CubeIDE\workspace_1.10.1\GPIO_LED_SEGMENT_3\STM32G070RBTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="GPIO_LED_SEGMENT_3.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_led_on':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:33: multiple definition of `bsp_led_on'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:33: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_led_off':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:43: multiple definition of `bsp_led_off'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:43: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_led_toggle':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:53: multiple definition of `bsp_led_toggle'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:53: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `HAL_GPIO_EXTI_Rising_Callback':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:61: multiple definition of `HAL_GPIO_EXTI_Rising_Callback'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:61: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `HAL_GPIO_EXTI_Falling_Callback':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:80: multiple definition of `HAL_GPIO_EXTI_Falling_Callback'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:80: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_seg_show':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:111: multiple definition of `bsp_seg_show'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:111: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_buz_on':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:146: multiple definition of `bsp_buz_on'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:146: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_buz_off':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:156: multiple definition of `bsp_buz_off'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:156: first defined here
c:\st\stm32cubeide_1.10.1\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/stm32g0xx_it.o: in function `bsp_buz_conf':
C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:165: multiple definition of `bsp_buz_conf'; ./Core/Src/MY_bsp.o:C:/Users/lenovo/STM32CubeIDE/workspace_1.10.1/GPIO_LED_SEGMENT_3/Debug/../Core/Src/MY_bsp.c:165: first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:64: GPIO_LED_SEGMENT_3.elf] Error 1
"make -j32 all" terminated with exit code 2. Build might be incomplete. |