⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ice_reset.dat

📁 AT91fr40162的FLASH读写程序
💻 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 + -