【STM32CubeMX】 生成 Keil 工程报错:error L6236E No section matches selector - no section to be FIRSTLAST
【STM32CubeMx】生成的keil工程报错error L6236E No section matches selector - no section to be FIRSTLAST文章目录【STM32CubeMx】生成的keil工程报错error L6236E No section matches selector - no section to be FIRSTLAST一、问题复现二、编译结果三、解决方法3.1 下载startup_stm32f10x_md.s文件3.2 在工程中添加该文件3.3 结果一、问题复现打开STM32CubeMx Start My project from MCU access to mcu selector在弹出的新界面 左上角输入芯片型号右下角选择对应型号弹出新界面在左边Project栏选好地址填好名称、在Code Generator 中间栏选上生成项目分.c和.h文件点击右上角 generate code二、编译结果Build started: Project: 0503 *** Using Compiler V5.06 update 7 (build 960), folder: E:\Keil5\keil\v5\ARM\ARMCC\Bin Build target 0503 linking... 0503\0503.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST. Not enough information to list image symbols. Not enough information to list load addresses in the image map. Finished: 2 information, 0 warning and 1 error messages. 0503\0503.axf - 1 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00原因是工程里没有启动文件startup_xxx.s 汇编文件链接器找不到程序入口复位向量、栈初始化。缺少了startup_stm32f10x_md.s文件三、解决方法3.1 下载startup_stm32f10x_md.s文件下载startup_stm32f10x_md.s放在xxxx\MDK-ARM目录底下。通过网盘分享的文件startup_stm32f10x_md.s 链接:https://pan.baidu.com/s/1dfuVhJQQAGlaSaTDusFc4Q 提取码: 22223.2 在工程中添加该文件选取startup_stm32f10x_md.s文件重新编译。3.3 结果完成
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2548044.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!