栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

单片机笔记九:单片机编译报错(More than one section matches selector)

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

单片机笔记九:单片机编译报错(More than one section matches selector)

用MDK在新建stm32工程的时候会出现例如下列所示的编译错误,比如我使用例程的时候,第一遍还可以正常编译,稍微修改一下,第二次编译的时候就出现这个错误。

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

*** Using Compiler 'V5.05 update 1 (build 106)', folder: 'd:Keil_v5ARMARMCCBin'

Build target 'lcd_mode_Release'

linking...

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

Not enough information to list image symbols.

Not enough information to list the image map.

Finished: 2 information, 0 warning and 1 error messages.

".outputreleaselcd_mode.axf" - 1 Error(s), 0 Warning(s).

Target not created.

Build Time Elapsed:  00:00:00

具体出错的地方在这里

LR_IROM1 0x00000000 0x00010000  {    ; load region size_region

  ER_IROM1 0x00000000 0x00010000  {  ; load address = execution address

   *.o (RESET, +First)

   *(InRoot$$Sections)

   .ANY (+RO)

  }

  RW_IRAM1 0x20000000 0x00002000  {  ; RW data

   .ANY (+RW +ZI)

  }

}

解决:在工程环境里找到Startup的驱动,把驱动文件的√去掉,重新编译一下就可以通过了

这里面的 

点开后找到device


————————————————

 

来自:
https://blog.csdn.net/qq_42860728/article/details/89117974

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/702971.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号