本文主要是介绍MDK编译报错Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.0),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用keil编译程序时,出现如下错误
.\Objects\STM32_MD.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.o).
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.
“.\Objects\STM32_MD.axf” - 1 Error(s), 0 Warning(s).
Target not created.
问题:缺失对SystemInit的定义
解决:增加一行代码对SystemInit的定义
#include "stm32f10x.h"
int main(void)
{
while(1);
}
void SystemInit(void)
{}
这篇关于MDK编译报错Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.0)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!