如何新建stm32寄存器工程

工程的建立方法和许多软件(如,IAR,RVDS,DAVE,MPLAB)R的方法一样的!

本文就只介绍下KEIL5下STM32F103CRT6的方法:

首先,必须确定可以选择所需的Device.

如何新建stm32寄存器工程


其次,关于过程不做奥数,介绍下编译错误总结

..\AUSTARTUP\INC\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"

解决方法看图:

如何新建stm32寄存器工程



 

Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_hd.o)

 Undefined symbol SystemInit,中文意思就是:SystemInit这个符号没有定义

解决方法看图:

如何新建stm32寄存器工程


至此,可以编译过去了


最后:上传空寄存器工程