1 # Change the default telnet port...
4 # Port for TCL connection.
11 ft2232_device_desc "Amontec JTAGkey"
13 ft2232_vid_pid 0x0403 0xcff8
16 #use combined on interfaces or targets that can't set TRST/SRST separately
17 reset_config srst_only srst_pulls_trst
19 if { [info exists CHIPNAME] } {
20 set _CHIPNAME $CHIPNAME
25 if { [info exists ENDIAN] } {
31 if { [info exists CPUTAPID ] } {
32 set _CPUTAPID $CPUTAPID
34 set _CPUTAPID 0x3f0f0f0f
37 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
39 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
40 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
42 $_TARGETNAME configure -event reset-start "script at91sam7_write_to_flash.script"
44 $_TARGETNAME configure -event reset-end "shutdown"
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