]> git.sur5r.net Git - openocd/blob - src/target/target/at91sam9260.cfg
Add warning to generated Doxyfile to edit Doxyfile.in.
[openocd] / src / target / target / at91sam9260.cfg
1 ######################################
2 # Target:    Atmel AT91SAM9260
3 ######################################
4
5 if { [info exists CHIPNAME] } { 
6    set  _CHIPNAME $CHIPNAME    
7 } else {         
8    set  _CHIPNAME at91sam9260
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   # force an error till we get a good number
21    set _CPUTAPID 0x0792603f
22 }
23
24 reset_config trst_and_srst
25
26 #
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
28
29 jtag_nsrst_delay 200
30 jtag_ntrst_delay 200
31
32 ######################
33 # Target configuration
34 ######################
35
36 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
37 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
38
39 # Internal sram1 memory
40 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000 -work-area-size 0x1000 -work-area-backup 1
41
42