summaryrefslogtreecommitdiff
path: root/testing/examples/SAM7X256Test/prj/eclipse_rom.gdb
diff options
context:
space:
mode:
Diffstat (limited to 'testing/examples/SAM7X256Test/prj/eclipse_rom.gdb')
-rw-r--r--testing/examples/SAM7X256Test/prj/eclipse_rom.gdb32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/examples/SAM7X256Test/prj/eclipse_rom.gdb b/testing/examples/SAM7X256Test/prj/eclipse_rom.gdb
new file mode 100644
index 00000000..3aabf849
--- /dev/null
+++ b/testing/examples/SAM7X256Test/prj/eclipse_rom.gdb
@@ -0,0 +1,32 @@
+target remote localhost:3333
+monitor reset
+monitor sleep 500
+monitor poll
+monitor soft_reset_halt
+monitor arm7_9 force_hw_bkpts enable
+
+# WDT_MR, disable watchdog
+monitor mww 0xFFFFFD44 0x00008000
+
+# RSTC_MR, enable user reset
+monitor mww 0xfffffd08 0xa5000001
+
+# CKGR_MOR
+monitor mww 0xFFFFFC20 0x00000601
+monitor sleep 10
+
+# CKGR_PLLR
+monitor mww 0xFFFFFC2C 0x00481c0e
+monitor sleep 10
+
+# PMC_MCKR
+monitor mww 0xFFFFFC30 0x00000007
+monitor sleep 10
+
+# PMC_IER
+monitor mww 0xFFFFFF60 0x00480100
+monitor sleep 100
+
+load
+break main
+continue