|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
文件:EINTDEMO.CPP
void EXTint_FIQ (void) __attribute__ ((interrupt("FIQ")));
void EXTint_FIQ(void)
{
}
文件:STARTUP.S
.text
.arm
.global EXTint_FIQ /*在EINTDEMO.CPP定义的FIQ函数*/
.global _startup
.func _startup
_startup:
# Exception Vectors
# Mapped to Address 0.
# Absolute addressing mode must be used.
# Dummy Handlers are implemented as infinite loops which can be modified.
Vectors: LDR PC, Reset_Addr
LDR PC, Undef_Addr
LDR PC, SWI_Addr
LDR PC, PAbt_Addr
LDR PC, DAbt_Addr
NOP /* Reserved Vector */
# LDR PC, IRQ_Addr
LDR PC, [PC, #-0x0FF0] /* Vector from VicVectAddr */
LDR PC, FIQ_Addr
Reset_Addr: .word Reset_Handler
Undef_Addr: .word Undef_Handler
SWI_Addr: .word SWI_Handler
PAbt_Addr: .word PAbt_Handler
DAbt_Addr: .word DAbt_Handler
.word 0 /* Reserved Address */
IRQ_Addr: .word IRQ_Handler
FIQ_Addr: .word EXTint_FIQ /*执行EINTDEMO.CPP中的函数EXTint_FIQ()*/
编译结果分别单个编译都各自通过,和在一起编译出错)
startup.o(.text+0x3c):/cygdrive/c/GCCARM/democpp/Startup.s:232: undefined reference to `EXTint_FIQ'
collect2: ld returned 1 exit status
Target not created
不知如何解决...谢谢!!!
|
|