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