ice_reset.dat
来自「AT91fr40162的FLASH读写程序」· DAT 代码 · 共 20 行
DAT
20 行
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 + =
减小字号Ctrl + -
显示快捷键?