我用codewarrior3.1新建了个工程,在start12.c中有这样的定义 #ifdef _HCS12_SERIALMON /* for Monitor based software remap the RAM & EEPROM to adhere to EB386. Edit RAM and EEPROM sections in PRM file to match these. */ ___INITRG = 0x00; /* lock registers block to 0x0000 */ ___INITRM = 0x39; /* lock Ram to end at 0x3FFF */ ___INITEE = 0x09; /* lock EEPROM block to end at 0x0fff */ #endif
而在Simulator_linker.prm文件中出示化RAM是 RAM = READ_WRITE 0x0400 TO 0x1FFF;
在start12.c中定义的RAM结束地址不是0x3FFF么?为什么现在是0x0400 TO 0x1FFF? 而start12.c中初始化“lock EEPROM block to end at 0x0fff ”,这个不是和RAM冲突了么? 在数据手册上说INITRM “This register initializes the position of the internal RAM within the on-chip system memory map.”是对RAM11到RAM15可以进行操作,那么其RAM00到RAM10之怎么操作的呢? 请帮忙解答谢谢了先!
[此贴子已经被作者于2007-3-11 2:05:25编辑过] |