标题: error: L6235E: More than one section matches selector -& [打印本页]
作者: 51黑小牛 时间: 2016-4-10 15:04
标题: error: L6235E: More than one section matches selector -&
将CAN程序由V2.0.1的库升级为V3.3.0的时候,编译出现错误:
.\Obj\CAN_BUS_TEST.sct(7): error: L6235E: More than one sectionmatches selector - cannot all be FIRST/LAST.
原因:项目中同时包含以下启动文件,
startup_stm32f10x_hd.s
startup_stm32f10x_md.s
startup_stm32f10x_ld.s
......
应该针对不同的CPU选择不同的启动文件。
解决办法1:从项目中删除不相关的启动文件
解决办法2:右击不相关的启动文件,点击 options for file'startup_stm32f10x_md.s'...
在弹出的对话框中的properties页,勾去灰化的'Includein Target Build'和‘Always Build’两项。
附图如下:
欢迎光临 (http://www.51hei.com/bbs/) |
Powered by Discuz! X3.1 |