@TOC
遇到警告:“main.c(7): warning: #1-D: last line of file ends without a newline”
这个是由于在main函数的“}”后,没有加回车。
只要在main函数的“}”后加回车键,此警告信息即可消除。
遇到错误:“…\SYSTEM\sys\stm32f10x.h(478): error: #5: cannot open source input file “core_cm3.h”: No such file or directory”
直接从原子提供的程序资料中搜索“core_cm3.h”找到后复制到system文件夹中,并在manage中添加路径即可(和教程中复制其他文件,添加文件一样)
遇到错误 :Error: L6218E: Undefined symbol main (referred from rtentry2.o).
C中忘写主函数了,写上这个后就通过了
int main()
{
}
(教程中有讲到)
安装pack DFP,去Keil官网下载包或通过Keil在线更新(教程说比较慢,不建议)
单片机开发时遇到问题arm提供的技术支持:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka4116.html