您当前的位置: 首页 >  单片机

Gutie_bartholomew

暂无认证

  • 1浏览

    0关注

    378博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

Gutie_bartholomew 发布时间:2022-01-12 21:48:43 ,浏览量:1

用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_v5\ARM\ARMCC\Bin'

Build target 'lcd_mode_Release'

linking...

.\output\release\lcd_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.

".\output\release\lcd_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

关注
打赏
1662709650
查看更多评论
立即登录/注册

微信扫码登录

0.0470s