2010-02-02 13:09:53 -06:00
|
|
|
# AT91R40008 target configuration file
|
|
|
|
|
|
|
|
# TRST is tied to SRST on the AT91X40 family.
|
|
|
|
reset_config srst_only srst_pulls_trst
|
2008-11-30 16:25:43 -06:00
|
|
|
|
|
|
|
|
2010-02-02 13:09:53 -06:00
|
|
|
if {[info exists CHIPNAME]} {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-09-21 13:48:22 -05:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME at91r40008
|
2008-11-30 16:25:43 -06:00
|
|
|
}
|
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-09-21 13:48:22 -05:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN little
|
2008-11-30 16:25:43 -06:00
|
|
|
}
|
|
|
|
|
2010-02-02 13:09:53 -06:00
|
|
|
# Setup the JTAG scan chain.
|
2011-10-29 16:32:17 -05:00
|
|
|
if { [info exists CPUTAPID] } {
|
2008-11-30 16:25:43 -06:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
2010-02-02 13:09:53 -06:00
|
|
|
set _CPUTAPID 0x1f0f0f0f
|
2008-11-30 16:25:43 -06:00
|
|
|
}
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
2009-09-04 00:17:03 -05:00
|
|
|
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2008-12-08 05:23:04 -06:00
|
|
|
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
|
2010-02-02 13:09:53 -06:00
|
|
|
$_TARGETNAME configure -work-area-phys 0x20000 -work-area-size 0x20000 -work-area-backup 0
|