在编译工程的时候报错:
Error: L6218E: Undefined symbol main (referred from __rtentry2.o).
这个时候仔细看一下stm32的代码,会发现引起报错的原因是没有在main.c文件中加入main函数
这个时候往main.c当中写入简单的函数:
#include "stm32f10x.h" // Device header
int main(){
while(1){}
}
这个时候就能解决报错了