用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