OpenEdv-开源电子网

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

新建工程模板,寄存器版本出现的问题

[复制链接]

1

主题

2

帖子

0

精华

新手入门

积分
6
金钱
6
注册时间
2021-2-2
在线时间
2 小时
发表于 2021-2-7 13:34:46 | 显示全部楼层 |阅读模式
1金钱
按视频步骤做了好多次,一直出现这个问题,求解决方法
1.png
Build started: Project: Template
*** Using Compiler 'V6.15', folder: 'D:\ruanjian\Keil\MDK_ARM\Arm533\ARM\ARMCLANG\Bin'
Build target 'Target 1'
test.c(2): warning: extra tokens at end of #include directive [-Wextra-tokens]
#include "stm32f4xx.h";
                      ^
                      //
test.c(2): warning: In file included from...
../HEADER\stm32f4xx.h(151): warning: In file included from...
../HEADER/stm32f429xx.h(192): warning: In file included from...
../HEADER/core_cm4.h(210): warning: In file included from...
../HEADER/core_cmInstr.h(57): error: 'cmsis_armcc_V6.h' file not found
  #include "cmsis_armcc_V6.h"
           ^~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
compiling test.c...
".\Objects\Template.axf" - 1 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

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

使用道具 举报

1

主题

2

帖子

0

精华

新手入门

积分
6
金钱
6
注册时间
2021-2-2
在线时间
2 小时
 楼主| 发表于 2021-2-7 13:39:09 | 显示全部楼层
代码显示错误:不能打开USER文件夹中的stm32f4xx.h,但是按教学视频,stm32f4xx.h放入了HESDER文件夹中
回复

使用道具 举报

3

主题

177

帖子

0

精华

高级会员

Rank: 4

积分
774
金钱
774
注册时间
2019-11-27
在线时间
87 小时
发表于 2021-2-22 10:15:01 | 显示全部楼层
你打开寄存器版本的函数,和你的对比看看有什么区别就知道了
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-5-14 00:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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