OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2117|回复: 3

stm32CubeIDE 第一次编译直接出错

[复制链接]

2

主题

14

帖子

0

精华

新手上路

积分
31
金钱
31
注册时间
2020-5-2
在线时间
48 小时
发表于 2021-3-2 18:32:27 | 显示全部楼层 |阅读模式
20金钱
18:25:46 **** Incremental Build of configuration Debug for project LED_CM4 ****
make -j8 all
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_cortex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_cortex.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_cortex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_cortex.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_dma.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_dma_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma_ex.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma_ex.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_exti.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_exti.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_exti.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_exti.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_gpio.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_gpio.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_gpio.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_gpio.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_hsem.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_hsem.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_hsem.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_hsem.o"
arm-none-eabi-gcc "D:/ZS/zs/SCM/Stm32MP157/Project/LED/Drivers/STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_mdma.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32MP157Dxx -c -I../Core/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc -I../../Drivers/STM32MP1xx_HAL_Driver/Inc/Legacy -I../../Drivers/CMSIS/Device/ST/STM32MP1xx/Include -I../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_mdma.d" -MT"Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_mdma.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_mdma.o"
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:66: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_exti.o] Error 3
make: *** Waiting for unfinished jobs....
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:72: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_mdma.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:62: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:70: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_hsem.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:68: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_gpio.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:64: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_dma_ex.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:60: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal_cortex.o] Error 3
Cannot create temporary file in D:\ZS\zs\SCM\Stm32MP157\Project\LED\CM4\Debug\d\temp\: No such file or directory
make: *** [Drivers/STM32MP1xx_HAL_Driver/subdir.mk:58: Drivers/STM32MP1xx_HAL_Driver/stm32mp1xx_hal.o] Error 3
"make -j8 all" terminated with exit code 2. Build might be incomplete.

18:25:57 Build Failed. 9 errors, 0 warnings. (took 10s.944ms)


最佳答案

查看完整内容[请看2#楼]

编译路径不对吧,右键工程->Properties->C/C++ Build->Settings->Tools Settings->MCU GCC Compiler->Include Path,把你自己创建的几个.h文件的路径包含进去
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

3

帖子

0

精华

新手上路

积分
47
金钱
47
注册时间
2020-11-3
在线时间
5 小时
发表于 2021-3-2 18:32:28 | 显示全部楼层

编译路径不对吧,右键工程->Properties->C/C++ Build->Settings->Tools Settings->MCU GCC Compiler->Include Path,把你自己创建的几个.h文件的路径包含进去
回复

使用道具 举报

2

主题

14

帖子

0

精华

新手上路

积分
31
金钱
31
注册时间
2020-5-2
在线时间
48 小时
 楼主| 发表于 2021-3-2 18:36:32 | 显示全部楼层
......
屏幕截图 2021-03-02 183425.png
回复

使用道具 举报

2

主题

14

帖子

0

精华

新手上路

积分
31
金钱
31
注册时间
2020-5-2
在线时间
48 小时
 楼主| 发表于 2021-3-3 15:45:47 | 显示全部楼层
ace1996 发表于 2021-3-3 14:22
编译路径不对吧,右键工程->Properties->C/C++ Build->Settings->Tools Settings->MCU GCC Compiler->Inc ...

该加的头文件都加了,。。。
我还是用mdk5吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 21:33

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表