
STM32CubeIDE报错
SDIO读取TF卡,1bit模式正常,4bit模式无法读取
cudeide执行run是烧录还是只是执行呢
cubeIDE在run后出现错误
在STM32Cube IDE1.18.0里 写ODR 编译不成,咋办?
CUEBIDE生成的APP程序,在写入FLASH之后无法正常跳转。
有关Cubeide IAP 问题
Cubeide1.18.1在线调试改变"现场表达式"中的值提示找不到地址
stm32cubeide中如何查看版本日志?
最新版STM32CubeIDE无法安装
显示如下报错
D:/stm32cubeide/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/gpio.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: multiple definition of `u_buf'; ./Core/Src/freertos.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: first defined here
D:/stm32cubeide/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/main.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: multiple definition of `u_buf'; ./Core/Src/freertos.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: first defined here
D:/stm32cubeide/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/stm32l4xx_hal_msp.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: multiple definition of `u_buf'; ./Core/Src/freertos.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: first defined here
D:/stm32cubeide/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/stm32l4xx_it.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: multiple definition of `u_buf'; ./Core/Src/freertos.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: first defined here
D:/stm32cubeide/STM32CubeIDE_1.14.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Core/Src/usart.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: multiple definition of `u_buf'; ./Core/Src/freertos.o:D:/stm32cubeide/L431_RTOS/Debug/../Core/Inc/main.h:42: first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:68: L431_RTOS.elf] Error 1
重复定义了,引用一次main.h就会定义一次,在main.h中,一般用户extern或者特殊的定义方式,防止重复定义。
建议看看C语言extern关键字的用法。
建议多读读HAL库源码,学学别人的代码结构。