[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 490f5f1 tcl: Add new ECM35xx config files.
From:       gerrit () openocd ! org (gerrit)
Date:       2017-12-27 2:00:33
Message-ID: 20171227020033.5AE0C25225BF () mail ! openocd ! org
[Download RAW message or body]

This is an automated email from Gerrit.

Rick Foos (rfoos@solengtech.com) just uploaded a new patch set to Gerrit, which you \
can find at http://openocd.zylin.com/4318

-- gerrit

commit 490f5f1e928b4056a71cda35ba68ed6d581152d1
Author: Rick Foos <rfoos@solengtech.com>
Date:   Tue Dec 26 10:37:31 2017 -0600

    tcl: Add new ECM35xx config files.
    
    Change-Id: Ifd36f45405d68447e394d5b408aa1e37d8f57cb8
    Signed-off-by: Rick Foos <rfoos@solengtech.com>

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 <rfoos@solengtech.com>
+#
+# 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 <rfoos@solengtech.com>
+#
+# 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 <rfoos@solengtech.com>
+
+# 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 <rfoos@solengtech.com>
+#
+# 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
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic