2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME avr32
|
|
|
|
set _ENDIAN big
|
2010-08-15 19:55:17 +00:00
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CPUTAPID 0x21e8203f
|
2010-08-15 19:55:17 +00:00
|
|
|
|
2012-03-26 13:41:39 +00:00
|
|
|
adapter_nsrst_delay 100
|
2010-08-15 19:55:17 +00:00
|
|
|
jtag_ntrst_delay 100
|
|
|
|
|
|
|
|
reset_config trst_and_srst separate
|
|
|
|
|
|
|
|
# jtag scan chain
|
|
|
|
# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
|
2011-10-29 21:32:17 +00:00
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
|
2010-08-15 19:55:17 +00:00
|
|
|
|
|
|
|
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
|
|
|
|
target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME
|
|
|
|
|