cube MX生成项目报 error: L6236E: No section matches selector - no section to be FIRST/LAST.解决方法

使用STM32 CubeMx工具生成MDK工程之后,初次编译,提示error: L6236E: No section matches selector - no section to be FIRST/LAST.

分析:信息提示是关于启动文件的,打开MDK manage project items,查看后发现,当前项目中并未包含启动文件。

添加startup_stm32f103xe.s,(在cube生成项目的MDK-ARM文件夹下)

cube MX生成项目报 error: L6236E: No section matches selector - no section to be FIRST/LAST.解决方法