stm32移植注意:
工程配置中,记得加入include paths,debug按所使用编译器选取对应下载器,Utilities下记得也要选取对应下载器。
工程建立后编译错误:STM32-uCOSii.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
参照这里 http://blog.youkuaiyun.com/penglijiang/article/details/6564546解决问题
Options for Target ' xxxx ',里面的Linker选项下面:
1、去掉勾选 Use Memory Layout from Target Dialog
2、清空 Acatter File里面的内容
点确定,okay了
还有编译时出现
D:/Keil/ARM/INC/ST/STM32F10x/stm32f10x_type.h(23): error: #256: invalid redeclaration of type name "s32" (declared at line 470 of "..\src\CMSIS\stm32f10x.h") 错误,按网上的说法,修改include paths
http://blog.youkuaiyun.com/iceiilin/article/details/6100494
弄了好久不行,最后删除工程,重新建立工程,组织目录结构如下,问题解决,具体怎么回事还不清楚