我用D64的片子,在编译时出现了5个警告和两错误,我想不出原因,请大家不要嫌简单,帮忙看看,不胜感激。
1.我向工程添加了3种文件,分别是sci.h,sci.c,mscan.c,mscan.h,display.c,display.h;编译时出现了5个警告:(E:\CAN\MyDesign\graduate\硕士课题\D64是工程所在路径)
L1923: File E:\CAN\MyDesign\graduate\硕士课题\D64\D64_Data\Simulator\ObjectCode\display.c.o has no DWARF debug info
L1923: File E:\CAN\MyDesign\graduate\硕士课题\D64\D64_Data\Simulator\ObjectCode\mscan.c.o has no DWARF debug info
L1923: File E:\CAN\MyDesign\graduate\硕士课题\D64\D64_Data\Simulator\ObjectCode\sci.c.o has no DWARF debug info
L1823: External object CANRecive in E:\CAN\MyDesign\graduate\硕士课题\D64\D64_Data\Simulator\ObjectCode\mscan.c.o created by
default
L1823: External object SCI0_data in E:\CAN\MyDesign\graduate\硕士课题\D64\D64_Data\Simulator\ObjectCode\sci.c.o created by de
fault
2.是关于中断的问题。我试了不得种方式都出现了错误信息。我把第一个复位中断的中断号看成0,往下依次递增,到CAN接收中断是38号。
第一种中断函数是这样写的void interrupt 38 MSCAN0Rec(void){},错误信息:
Link Error : L1907: Fixup overflow in _Vector_38, to MSCAN0Rec type 1, at offset 0x0
Link Error : Link failed
第二种方式,在.prm文件下面增加:VECTOR ADDRESS 0xFFB2 MSCAN0Rec;中断函数形式为void interrupt MSCAN0Rec(void){},编译出错为:
Link Error : L1108: Initializing of Vector MSCAN0Rec failed because of over- or underflow of vector value
Link Error : Link failed
[此贴子已经被作者于2005-12-9 9:37:52编辑过]
[此贴子已经被作者于2005-12-9 11:29:24编辑过]
[此贴子已经被作者于2005-12-9 12:39:27编辑过]
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |