漏说了一点,写在最前面
新下的keil5什么都没有,必须下载stm32f103xx芯片包,然后放在keil5根目录下双击即可安装。
1.修改芯片device
2.修改HD为MD,即可避免报错:.\User\stm32f10x.h(298): error: #67: expected a "}"
3.在debug的link的setting中的flashdownload里,remove原有high的device ,add一个128k的med-device
4.原有工程使用的hd.s(针对zet6高型号的启动文件)需要更换导入为md.s启动文件这样可以避免报错.\Obj\Template.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.。
这些启动文件来自于stm官方固件库.