X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fscripts%2Fopenocd_new_at91sam7_ftdi_ram.cfg;h=d5e6ae8a70467b0f3e15d9cea4ae750a90cea00d;hb=8b2b3759daf3222963cbb3cd4364fef556622e87;hp=ff1d23ea3f23f2ec864b237d7c213879bf6483fe;hpb=8760253ef58f5ee8ef32861c19fdaf8d9163ffd4;p=bertos.git diff --git a/bertos/cpu/arm/scripts/openocd_new_at91sam7_ftdi_ram.cfg b/bertos/cpu/arm/scripts/openocd_new_at91sam7_ftdi_ram.cfg index ff1d23ea..d5e6ae8a 100644 --- a/bertos/cpu/arm/scripts/openocd_new_at91sam7_ftdi_ram.cfg +++ b/bertos/cpu/arm/scripts/openocd_new_at91sam7_ftdi_ram.cfg @@ -1,49 +1,49 @@ - -# Change the default telnet port... -telnet_port 4444 - -# Port for TCL connection. -tcl_port 6666 - -# GDB connects here -gdb_port 3333 -# GDB can also flash my flash! -gdb_memory_map enable -gdb_flash_program disable -gdb_breakpoint_override soft - -interface ft2232 -#ft2232_device_desc "Amontec JTAGkey" -ft2232_layout jtagkey -ft2232_vid_pid 0x0403 0xcff8 - -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config srst_only srst_pulls_trst - -if { [info exists CHIPNAME] } { - set _CHIPNAME $CHIPNAME -} else { - set _CHIPNAME sam7 -} - -if { [info exists ENDIAN] } { - set _ENDIAN $ENDIAN -} else { - set _ENDIAN little -} - -if { [info exists CPUTAPID ] } { - set _CPUTAPID $CPUTAPID -} else { - set _CPUTAPID 0x3f0f0f0f -} - -jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID - -set _TARGETNAME [format "%s.cpu" $_CHIPNAME] -target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi - -$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0 - -#flash bank -flash bank at91sam7 0 0 0 0 0 + +# Change the default telnet port... +telnet_port 4444 + +# Port for TCL connection. +tcl_port 6666 + +# GDB connects here +gdb_port 3333 +# GDB can also flash my flash! +gdb_memory_map enable +gdb_flash_program disable +gdb_breakpoint_override soft + +interface ft2232 +#ft2232_device_desc "Amontec JTAGkey" +ft2232_layout jtagkey +ft2232_vid_pid 0x0403 0xcff8 + +#use combined on interfaces or targets that can't set TRST/SRST separately +reset_config srst_only srst_pulls_trst + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME sam7 +} + +if { [info exists ENDIAN] } { + set _ENDIAN $ENDIAN +} else { + set _ENDIAN little +} + +if { [info exists CPUTAPID ] } { + set _CPUTAPID $CPUTAPID +} else { + set _CPUTAPID 0x3f0f0f0f +} + +jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID + +set _TARGETNAME [format "%s.cpu" $_CHIPNAME] +target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi + +$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0 + +#flash bank +flash bank at91sam7 0 0 0 0 0