|
程序中的这一段:
.sect \"codestart\"
code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot.asm in RTS library
.endif
改为:
sect \"codestart\"
code_start:
.if WD_DISABLE == 1
LB 0x3F8000 ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot.asm in RTS library
.endif
另外:*.cmd文件中的
BEGIN : origin = 0x3f7ff6, length = 0x000002
做完以上工作,就可以进行程序烧写,烧写完毕,检查ox3F7ff6和ox3F7ff7中的内容应为:0x8000,0x0070;
就可以进行在线RAM仿真了.当然仿真前,还要记得将以上两个部分改回来:
.sect \"codestart\"
code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot.asm in RTS library
.endif
以及:
BEGIN : origin = 0x3f8000, length = 0x000002 |
|