OpenEdv-开源电子网

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

新建HAL库工程模板时,编译报错,大佬们这个是什么情况,咋解决呀?

[复制链接]

1

主题

5

帖子

0

精华

新手入门

积分
8
金钱
8
注册时间
2024-6-16
在线时间
0 小时
发表于 2024-6-16 22:32:28 | 显示全部楼层 |阅读模式
1金钱
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'D:\MDK5\ARM\ARMCC\Bin'
Rebuild target 'Template'
compiling sys.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\User\stm32f4xx_it.c: 0 warnings, 1 error
compiling usart.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\SYSTEM\usart\usart.c: 0 warnings, 1 error
assembling startup_stm32f407xx.s...
compiling system_stm32f4xx.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c: 0 warnings, 1 error
compiling delay.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling main.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\User\main.c: 0 warnings, 1 error
compiling stm32f4xx_hal.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c: 0 warnings, 1 error
compiling stm32f4xx_hal_cortex.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_cortex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_dma_ex.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_gpio.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hal_rcc.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_hal_pwr.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_hal_dma.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c: 0 warnings, 1 error
compiling stm32f4xx_hal_rcc_ex.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_rcc_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_pwr_ex.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_uart.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_uart.c: 0 warnings, 1 error
compiling stm32f4xx_ll_usart.c...
"no source": Error: command-line:  #992: invalid macro definition: USE_HAL_DRIVER.STM32F407xx
..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_ll_usart.c: 0 warnings, 1 error
linking...
..\..\Output\atk_f407.axf: error: L6002U: Could not open file ..\..\output\main.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
"..\..\Output\atk_f407.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

11

主题

2103

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
4584
金钱
4584
注册时间
2015-1-10
在线时间
573 小时
发表于 2024-6-17 10:07:38 | 显示全部楼层
没添加C文件或者路径错误
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2024-11-22 10:16

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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