mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-20 01:36:35 +10:00
avr32: basic target script
This commit is contained in:
parent
d23428a47f
commit
c54c323cf3
18
tcl/target/avr32.cfg
Normal file
18
tcl/target/avr32.cfg
Normal file
@ -0,0 +1,18 @@
|
||||
set _CHIPNAME avr32
|
||||
set _ENDIAN big
|
||||
|
||||
# force an error till we get a good number
|
||||
set _CPUTAPID 0x21e8203f
|
||||
|
||||
jtag_nsrst_delay 100
|
||||
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)
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
|
||||
|
||||
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
|
||||
target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME
|
||||
|
Loading…
Reference in New Issue
Block a user