2 # Change the default telnet port...
5 # Port for TCL connection.
10 # GDB can also flash my flash!
12 gdb_flash_program disable
13 gdb_breakpoint_override soft
16 #ft2232_device_desc "Amontec JTAGkey"
18 ft2232_vid_pid 0x0403 0xcff8
20 #use combined on interfaces or targets that can't set TRST/SRST separately
21 reset_config srst_only srst_pulls_trst
23 if { [info exists CHIPNAME] } {
24 set _CHIPNAME $CHIPNAME
29 if { [info exists ENDIAN] } {
35 if { [info exists CPUTAPID ] } {
36 set _CPUTAPID $CPUTAPID
38 set _CPUTAPID 0x3f0f0f0f
41 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
43 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
44 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
46 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0
48 #flash bank <driver> <base> <size> <chip_width> <bus_width>
49 flash bank at91sam7 0 0 0 0 0