2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME cs351x
|
2009-06-30 20:44:21 +00:00
|
|
|
}
|
|
|
|
|
2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN little
|
2009-06-30 20:44:21 +00:00
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-06-30 20:44:21 +00:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x00526fa1
|
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
2009-06-30 20:44:21 +00:00
|
|
|
|
|
|
|
# Create the GDB Target.
|
2009-09-04 05:17:03 +00:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-06-30 20:44:21 +00:00
|
|
|
target create $_TARGETNAME fa526 -endian $_ENDIAN -chain-position $_TARGETNAME -variant fa526
|
2009-09-04 05:17:03 +00:00
|
|
|
|
2009-06-30 20:44:21 +00:00
|
|
|
# There is 16K of SRAM on this chip
|
|
|
|
# FIXME: flash programming is not working by using this work area. So comment this out for now.
|
2011-10-29 21:32:17 +00:00
|
|
|
#$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x4000 -work-area-backup 1
|
2009-06-30 20:44:21 +00:00
|
|
|
|
|
|
|
# This chip has a DCC ... use it
|
|
|
|
arm7_9 dcc_downloads enable
|
|
|
|
|