]> git.sur5r.net Git - openocd/blob - src/target/board/crossbow_tech_imote2.cfg
Add warning to generated Doxyfile to edit Doxyfile.in.
[openocd] / src / target / board / crossbow_tech_imote2.cfg
1 # Crossbow Technology iMote2
2
3 if { [info exists CHIPNAME] } { 
4    set  _CHIPNAME $CHIPNAME    
5 } else {         
6    set  _CHIPNAME imote2
7 }
8
9 if { [info exists ENDIAN] } {   
10    set  _ENDIAN $ENDIAN    
11 } else {         
12    set  _ENDIAN little
13 }
14
15 if { [info exists CPUTAPID ] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18   # force an error till we get a good number
19    set _CPUTAPID 0xffffffff
20 }
21
22 # PXA271 and an Intel Strataflash of 32 Megabytes (p30)
23
24 # Marvell/Intel PXA270 Script
25 # set jtag_nsrst_delay to the delay introduced by your reset circuit
26 # the rest of the needed delays are built into the openocd program
27 jtag_nsrst_delay 800 
28 # set the jtag_ntrst_delay to the delay introduced by a reset circuit
29 # the rest of the needed delays are built into the openocd program
30 jtag_ntrst_delay 0
31 #use combined on interfaces or targets that can't set TRST/SRST separately
32 reset_config trst_and_srst separate
33 #jtag scan chain
34
35 jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID
36
37 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
38 target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
39 $_TARGETNAME configure -work-area-virt 0x0x5c000000 -work-area-phys 0x0x5c000000 -work-area-size 0x10000 -work-area-backup 1
40 # maps to PXA internal RAM. If you are using a PXA255
41 # you must initialize SDRAM or leave this option off
42
43
44 #flash bank <driver> <base> <size> <chip_width> <bus_width>
45 # works for P30 flash
46 flash bank cfi 0x00000000 0x2000000 2 2 0