1 #Marvell/Intel PXA270 Script
\r
2 # set jtag_nsrst_delay to the delay introduced by your reset circuit
\r
3 # the rest of the needed delays are built into the openocd program
\r
5 # set the jtag_ntrst_delay to the delay introduced by a reset circuit
\r
6 # the rest of the needed delays are built into the openocd program
\r
8 #use combined on interfaces or targets that can
\92t set TRST/SRST separately
\r
9 reset_config trst_and_srst separate
\r
11 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
\r
12 jtag_device 7 0x1 0x7f 0x7e
\r
13 #target configuration
\r
14 daemon_startup reset
\r
15 target xscale little reset_halt 0 pxa27x
\r
16 # maps to PXA internal RAM. If you are using a PXA255
\r
17 # you must initialize SDRAM or leave this option off
\r
18 working_area 0 0x5c000000 0x10000 nobackup
\r
19 run_and_halt_time 0 30
\r
20 #flash bank <driver> <base> <size> <chip_width> <bus_width>
\r
21 # works for P30 flash
\r
22 flash bank cfi 0x00000000 0x1000000 2 4 0
\r