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

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

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

1. 在建工程时我添加了一个Startup的驱动,把驱动文件的√去掉,重新编译一下就可以通过了
... .sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
2.项目中是否添加启动文件( startup_stm32f10x_hd.s startup_stm32f10x_ld.s startup_stm32f10x_md.s 按具体型号选择),如果取消Startup Device就必须要添加启动文件
... .sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
出现问题的原因可能是因为启动文件重叠,如果有类似情况的同学,大家可以相互交流一下。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-08-17
  • 2022-01-18
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2021-04-19
  • 2021-12-02
  • 2021-06-28
  • 2021-12-07
  • 2021-07-29
相关资源
相似解决方案