1 ######################################
2 # Target: Atmel AT91SAM9RL
3 ######################################
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
8 set _CHIPNAME at91sam9rl
11 if { [info exists ENDIAN] } {
17 if { [info exists CPUTAPID ] } {
18 set _CPUTAPID $CPUTAPID
20 # force an error till we get a good number
21 set _CPUTAPID 0x0792603f
24 reset_config trst_and_srst separate trst_push_pull srst_open_drain
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
29 adapter_nsrst_delay 300
34 ######################
35 # Target configuration
36 ######################
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
41 # Internal sram1 memory
42 $_TARGETNAME configure -work-area-phys 0x00300000 -work-area-size 0x10000 -work-area-backup 1