STM32F10X _FAULT
来源:互联网 发布:大周皇族 知乎 编辑:程序博客网 时间:2024/04/27 13:36
一. ERROR # 35:"Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" : 修改 配置框-->C/C++ -->Preprocessor Symbols-->Define-->USE_STDPERIPH_DRIVER,STM32F10X_HD HD与芯片启动类型有关 注意芯片类型与启动文件的匹配.
二 . Error: #101: "ERROR" has already been declared in the current scope
Error: #101: "SUCCESS" has already been declared in the current scope
Error: #256:e invalid redeclaration of type name "ErrorStatus" (declared at line 524 of "..\CMSIS\stm32f10x.h") 在stm32f10x_conf_h文件,将“#include "stm32f10x_type.h"”注释掉,再保存编译。
如果依然还有错误,修改 配置框-->C/C++ -->include paths 添加.c /.h/.s文件位置。
三. Error: #20: identifier "****" is undefined ,未定义。
四. Error: #268: declaration may not appear after executablestatement ,声明变量应该放在引用函数之前。
五. Warning #47-D:incompatible redefinition of macro "**" 定义重复,并且被定义为另一个值。
六. error: L6235E: More than one section matches selector - cannot all be FIRST/LAST错误,网络上教程也很多,我这里把图截上来,也简明。
1.查看工程里的几个编程文件
你会发现startup_stm32f10x_cl.s前面的图标和不太一样。原因,网络上说得很多。
2.右击startup_stm32f10x_cls.s这个文件,选择option.....
右边的两个选项include in Target Build和Always Build灰勾去掉。
然后确定,其它几个文件也如这样操作。但是注意保留startup_stm32f10x_xl.s这个文件。
3.更改后的工程文件如下所示:
4.重新clean一下工程,然后rebuild 一下。
通过。。。
- STM32F10X _FAULT
- stm32f10x
- STM32F10X笔记
- STM32F10x的定时器使用
- STM32F10x外部中断释疑
- STM32F10x的解释
- STM32F10x命名规则
- STM32F10x 之GPIO
- STM32F10x的中断
- STM32F10x 调试口释放
- STM32F10x中,一些专业术语
- STM32F10x中的串口寄存器
- STM32F10x中的端口寄存器
- stm32f10x ucosii 移植要点
- stm32f10x.h阅读记录
- STM32F10x.s 启动文件
- 简单解析stm32F10x.h
- Bootloader for STM32F10X
- html5 中新的datalist 自动下拉提示输入框
- 66. Plus One
- 四种存储方式(File sharepreference....)
- ORACLE游标概念讲解
- 【C#之栈和堆初遇】
- STM32F10X _FAULT
- getopt_long 解析命令行参数(--help)
- 【leetcode】206. Reverse Linked List My Submissions Question
- nginx模块开发-增加nginx内置变量
- 发送邮件
- Android UI布局之RelativeLayout
- Android仿微博菜单弹出效果
- mysql数据库基于LVM快照的备份
- Makefile 简易教程