【发布时间】:2014-09-04 11:44:19
【问题描述】:
我正在使用带有 Keil4 的 LPC1788 微控制器,当我创建一个项目时,Keil 添加了一个名为“startup_LPC177x_8x.s”的文件。在这个文件中的一个阶段,一个 IMPORT 命令正在尝试导入 SystemInit,但是当我编译时,我收到如下错误:
compiling main.c...
main.c(6): warning: #1-D: last line of file ends without a newline
linking...
project_1.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_lpc177x_8x.o).
Target not created
这段代码如下:
Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT SystemInit
IMPORT __main
LDR R0, =SystemInit
BLX R0
LDR R0, =__main
BX R0
ENDP
我的项目中包含了头文件“lpc177x_8x.h”。
请朋友们指导我...我是 Keil 的新手...非常感谢。
【问题讨论】: