工程的建立方法和许多软件(如,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寄存器工程


至此,可以编译过去了


最后:上传空寄存器工程





相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2021-10-07
  • 2021-07-06
  • 2021-09-23
  • 2022-02-14
  • 2021-12-06
猜你喜欢
  • 2021-06-08
  • 2021-12-22
  • 2021-05-28
  • 2021-09-26
  • 2022-01-19
  • 2021-11-24
  • 2021-06-05
相关资源
相似解决方案