error: L6236E: No section matches selector - no section to be FIRST/LAST.的解决

在移植别家开发板上的例程时,报如下错误:error: L6236E: No section matches selector - no section to be FIRST/LAST. 原因是在当前的工程中没有启动文件,需要在工程中添加相关的启动文件。也就是st官方的xxxx.s文件。添加后再编译就ok了。
在这里插入图片描述

发布了44 篇原创文章 · 获赞 60 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/u014421520/article/details/88187057