使用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.
文章来源:https://www.toymoban.com/news/detail-601266.html
问题:缺失对SystemInit的定义
解决:增加一行代码对SystemInit的定义
#include "stm32f10x.h"
int main(void)
{
while(1);
}
void SystemInit(void)
{
}
文章来源地址https://www.toymoban.com/news/detail-601266.html
到了这里,关于MDK编译报错Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.0)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!