This is an automated email from Gerrit. Rick Foos ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4318
-- gerrit commit 490f5f1e928b4056a71cda35ba68ed6d581152d1 Author: Rick Foos <[email protected]> Date: Tue Dec 26 10:37:31 2017 -0600 tcl: Add new ECM35xx config files. Change-Id: Ifd36f45405d68447e394d5b408aa1e37d8f57cb8 Signed-off-by: Rick Foos <[email protected]> diff --git a/tcl/board/eta_ecm35xx_board.cfg b/tcl/board/eta_ecm35xx_board.cfg new file mode 100644 index 0000000..e64e02a --- /dev/null +++ b/tcl/board/eta_ecm35xx_board.cfg @@ -0,0 +1,16 @@ +# +# Eta Compute ECM35xx +# +# http://www.etacompute.com +# Rick Foos <[email protected]> +# +# ECM35xx EVK with FTDI4232. + +source [find interface/ftdi/eta_ft4232.cfg] +adapter_khz 1000 +transport select swd + +# Set higher debug level for development. +# debug_level 3 + +source [find target/eta_ecm35xx.cfg] diff --git a/tcl/board/eta_ecm35xx_fpga.cfg b/tcl/board/eta_ecm35xx_fpga.cfg new file mode 100644 index 0000000..dffc422 --- /dev/null +++ b/tcl/board/eta_ecm35xx_fpga.cfg @@ -0,0 +1,12 @@ +# +# Eta Compute ECM35xx +# +# http://www.etacompute.com +# Rick Foos <[email protected]> +# +# FPGA of ecm35xx with FTDI4232. + +set BOARDTYPE "FPGA" + +source [find board/eta_ecm35xx_board.cfg] + diff --git a/tcl/interface/ftdi/eta_ft4232.cfg b/tcl/interface/ftdi/eta_ft4232.cfg new file mode 100644 index 0000000..7f44d17 --- /dev/null +++ b/tcl/interface/ftdi/eta_ft4232.cfg @@ -0,0 +1,22 @@ +# +# Eta Compute Evaluation Kits +# +# http://www.etacompute.com +# Rick Foos <[email protected]> + +# This supports all ecm35xx eval boards using FT4232. + +interface ftdi +#ftdi_device_desc "Quad FT4232H" +ftdi_vid_pid 0x0403 0x6011 + +ftdi_layout_init 0x8c58 0xffab + +# Signals + +# Required for SWD transport. +ftdi_layout_signal SWD_EN -ndata 0x0020 -oe 0x2000 +# Use GPIOL7 as SWDIO_OE control +ftdi_layout_signal SWDIO_OE -ndata 0x80 +# Use GPIOL4 as nSRST +ftdi_layout_signal nSRST -data 0x10 -oe 0x10 diff --git a/tcl/target/eta_ecm35xx.cfg b/tcl/target/eta_ecm35xx.cfg new file mode 100644 index 0000000..339c389 --- /dev/null +++ b/tcl/target/eta_ecm35xx.cfg @@ -0,0 +1,54 @@ +# +# Eta Compute ECM35xx +# +# http://www.etacompute.com +# Rick Foos <[email protected]> +# +# script for ETA Compute's ecm35xx family. + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME ecm35xx +} + +# Work-area is a space in RAM used for flash programming +if { [info exists WORKAREASIZE] } { + set _WORKAREASIZE $WORKAREASIZE +} else { + set _WORKAREASIZE 0x4000 +} + +if { [info exists CPUTAPID ] } { + set _CPUTAPID $CPUTAPID +} else { + set _CPUTAPID 0x2ba01477 +} + +if { [info exists BOARDTYPE ] } { + set _BOARDTYPE $BOARDTYPE +} else { + set _BOARDTYPE "" +} + +source [find target/swj-dp.tcl] + +swj_newdap $_CHIPNAME cpu -irlen 8 -expected-id $_CPUTAPID + +set _TARGETNAME $_CHIPNAME.cpu +target create $_TARGETNAME cortex_m -endian little -chain-position $_TARGETNAME + +$_TARGETNAME configure -work-area-phys 0x10006000 -work-area-size $_WORKAREASIZE -work-area-backup 0 + +$_TARGETNAME configure -event gdb-attach { halt } + +set _FLASHNAME $_CHIPNAME.flash0 + +# Optional parameter for Board/FPGA type. +flash bank $_FLASHNAME etacorem3 0 0 0 0 $_TARGETNAME $_BOARDTYPE + +reset_config srst_only + +# If srst is not fitted use SYSRESET to perform a soft reset. +if { ![using_hla] } { cortex_m reset_config sysresetreq } + -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
