使用keil編譯程序時,出現(xiàn)如下錯誤
.\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.
文章來源:http://www.zghlxwxcb.cn/news/detail-601266.html
問題:缺失對SystemInit的定義
解決:增加一行代碼對SystemInit的定義
#include "stm32f10x.h"
int main(void)
{
while(1);
}
void SystemInit(void)
{
}
文章來源地址http://www.zghlxwxcb.cn/news/detail-601266.html
到了這里,關(guān)于MDK編譯報錯Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md.0)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!