1 # OpenOCD Configuration Script
2 # Target: Atmel AT91SAM7XC256
4 # Delay times of the Software- and Target reset lines
8 #reset_config <signals> [combination] [trst_type] [srst_type]
11 if { [info exists CHIPNAME] } {
12 set _CHIPNAME $CHIPNAME
14 set _CHIPNAME sam7x256
17 if { [info exists ENDIAN] } {
23 if { [info exists CPUTAPID ] } {
24 set _CPUTAPID $CPUTAPID
26 set _CPUTAPID 0x3f0f0f0f
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
31 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
33 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
35 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
37 # Bank is 256KB - auto config
38 flash bank at91sam7 0 0 0 0 0