📄 ice_reset.dat
字号:
Com Enable the vector catch for reset only
spp vector_catch 0x1
Com Set a breakpoint at address 0
br 0x0
Com br 0x68
Com This script follows the WD Enabling Sequence from the x40 Datasheet
Com Disable the Watchdog by clearing the bit WDEN:
Com This step is unnecessary if the WD is already disabled (reset state).
setmem 0xFFFF8000 0x2340 32
Com Initialize the WD Clock Mode Register:
Com (HPCV = 15 and WDCLKS = MCK/1024)
setmem 0xFFFF8004 0x0000373F 32
Com Restart the timer
setmem 0xFFFF8008 0x0000C071 32
Com Enable the watchdog: (Internal Reset enabled)
Com setmem 0xFFFF8000 0x00002341 32
Com Enable Internal Reset generation
setmem 0xFFFF8000 0x00002343 32
go
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -