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

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

单片机笔记九:单片机编译报错(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

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5703077.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存