... .sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

版权声明:转载引用请标明出处 https://blog.csdn.net/qq_42860728/article/details/89117974

用MDK在新建stm32工程的时候会出现例如下列所示的编译错误

…sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

我在网上也查了类似的问题,可能是由于建工程的步骤不太一样的缘故,他们所提供的答案并不能解决我这个问题,所以我摸索到了我这个问题的所在。在这里跟大家分享一下。

1. 在建工程时我添加了一个Startup的驱动,把驱动文件的√去掉,重新编译一下就可以通过了
在这里插入图片描述
2.项目中是否添加启动文件( startup_stm32f10x_hd.s startup_stm32f10x_ld.s startup_stm32f10x_md.s 按具体型号选择),如果取消Startup Device就必须要添加启动文件
在这里插入图片描述
出现问题的原因可能是因为启动文件重叠,如果有类似情况的同学,大家可以相互交流一下。

猜你喜欢

转载自blog.csdn.net/qq_42860728/article/details/89117974
今日推荐