e0ea3161731206adcad7601e62172bef4cddb23e
[fw/openocd] / tcl / target / at91sam9.cfg
1 ######################################
2 # Target:    Atmel AT91SAM9
3 ######################################
4
5 if { [info exists AT91_CHIPNAME] } {
6         set _CHIPNAME $AT91_CHIPNAME
7 } else {
8         error "you must specify a chip name"
9 }
10
11 if { [info exists ENDIAN] } {
12         set _ENDIAN $ENDIAN
13 } else {
14         set _ENDIAN little
15 }
16
17 if { [info exists CPUTAPID] } {
18         set _CPUTAPID $CPUTAPID
19 } else {
20         set _CPUTAPID 0x0792603f
21 }
22
23 reset_config trst_and_srst separate trst_push_pull srst_open_drain
24
25 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
26
27 adapter srst delay 300
28 jtag_ntrst_delay 200
29
30 adapter speed 3
31
32 ######################
33 # Target configuration
34 ######################
35
36 set _TARGETNAME $_CHIPNAME.cpu
37 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME