]> git.sur5r.net Git - openocd/blob - tcl/target/lpc3250.cfg
e902fb419c828746512970101a58ba19d87bffb3
[openocd] / tcl / target / lpc3250.cfg
1 # lpc3250 config
2 #
3
4 if { [info exists CHIPNAME] } {
5    set  _CHIPNAME $CHIPNAME
6 } else {
7    set  _CHIPNAME lpc3250
8 }
9
10 if { [info exists ENDIAN] } {
11    set  _ENDIAN $ENDIAN
12 } else {
13    set  _ENDIAN little
14 }
15
16 if { [info exists CPUTAPID ] } {
17    set _CPUTAPID $CPUTAPID
18 } else {
19    set _CPUTAPID 0x17900f0f
20 }
21
22 if { [info exists SJCTAPID ] } {
23    set _SJCTAPID $SJCTAPID
24 } else {
25    set _SJCTAPID 0x1b900f0f
26 }
27
28 jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_SJCTAPID
29
30 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
31
32 set _TARGETNAME $_CHIPNAME.cpu
33 target create $_TARGETNAME arm926ejs -endian little -chain-position $_TARGETNAME -work-area-phys 0x00000000 -work-area-size 0x7d0000 -work-area-backup 0
34
35 proc power_restore {} { puts "Sensed power restore. No action." }
36 proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }