]> git.sur5r.net Git - openocd/blob - src/target/target/at91sam9260.cfg
Rick Altherr <kc8apf@kc8apf.net> - update syntax
[openocd] / src / target / target / at91sam9260.cfg
1 # Thanks to Pieter Conradie for this script! 
2 # Target:    Atmel AT91SAM9260
3 ######################################
4
5 reset_config trst_and_srst
6
7 #jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
8 jtag_device 4 0x1 0xf 0xe
9
10 jtag_nsrst_delay 200
11 jtag_ntrst_delay 0
12
13 ######################
14 # Target configuration
15 ######################
16
17 target create target0 arm926ejs -endian little -chain-position 0 -variant arm926ejs
18
19 [new_target_name] configure -event reset-init { script event/at91sam9260_reset.script }
20
21 [new_target_name] configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
22
23 #####################
24 # Flash configuration
25 #####################
26
27 #flash bank cfi <base> <size> <chip width> <bus width> <target#>
28 flash bank cfi 0x10000000 0x01000000 2 2 0
29