0c4258f80f2aa576f6c094c3b23564b6b5772565
[bertos.git] / bertos / cpu / arm / scripts / openocd / at91sam7_new.gdb
1 target remote localhost:3333
2 monitor reset
3 monitor sleep 500
4 monitor poll
5 monitor soft_reset_halt
6
7 # WDT_MR, disable watchdog 
8 monitor mww 0xFFFFFD44 0x00008000
9
10 # RSTC_MR, enable user reset
11 monitor mww 0xfffffd08 0xa5000001
12
13 # CKGR_MOR
14 monitor mww 0xFFFFFC20 0x00000601
15 monitor sleep 10
16
17 # CKGR_PLLR
18 monitor mww 0xFFFFFC2C 0x00481c0e
19 monitor sleep 10
20
21 # PMC_MCKR
22 monitor mww 0xFFFFFC30 0x00000007
23 monitor sleep 10
24
25 # PMC_IER
26 monitor mww 0xFFFFFF60 0x00480100
27 monitor sleep 100
28
29 #Remap RAM to address 0
30 monitor mww 0xFFFFFF00 0x00000001
31 monitor sleep 100
32
33 break main
34 load
35 continue