- UID
- 116935
- 性别
- 男
|
采用hcs12E64芯片编写一个定时器中断程序,采用的是codewarrior编译,在函数的定义如下:
// 定时器1 中断服务程序 //
void interrupt tim0ch4(void) {
NOP;
}
prm文件如下:
NAMES
END
SEGMENTS
RAM = READ_WRITE 0x0400 TO 0x0FFF;
ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;
PAGE_3C = READ_ONLY 0x3C8000 TO 0x3CBFFF;
PAGE_3D = READ_ONLY 0x3D8000 TO 0x3DBFFF;
END
PLACEMENT
_PRESTART,
STARTUP, /* startup data structures */
ROM_VAR, /* constant variables */
STRINGS, /* string literals */
VIRTUAL_TABLE_SEGMENT,
NON_BANKED,
INTO ROM_C000/*, ROM_4000*/;
DEFAULT_ROM INTO PAGE_3C,PAGE_3D;
DEFAULT_RAM INTO RAM;
END
STACKSIZE 0x100
VECTOR 0 _Startup
VECTOR ADDRESS 0xFFE6 tim0ch4
然后编译出现:
Error: L1004:Vector address expected
求助各位大虾 |
|