summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSajesh Kumar Saran2011-12-02 20:48:39 -0600
committerSajesh Kumar Saran2011-12-02 20:48:39 -0600
commitbd46d037cc91acbdeacb6ebc60d5d6436e8e175a (patch)
tree1aa0f2bbb3825554711f0f3fa09d1d8a845022d4
parentbfebaff38084bcc75d44a72f84de5a7e9ba1642a (diff)
parent83db21737b92c83488cbbc97fa3aa33594b3a26a (diff)
downloadmcsdk-tools-bd46d037cc91acbdeacb6ebc60d5d6436e8e175a.tar.gz
mcsdk-tools-bd46d037cc91acbdeacb6ebc60d5d6436e8e175a.tar.xz
mcsdk-tools-bd46d037cc91acbdeacb6ebc60d5d6436e8e175a.zip
Merge branch 'next' of gtgit01.gt.design.ti.com:git/projects/mcsdk-tools into next
-rw-r--r--factory_images/configs/evm6670l/evm6670l-linuxhost.ccxml29
-rw-r--r--factory_images/configs/evm6670l/evm6670l.ccxml23
-rw-r--r--factory_images/configs/evm6670l/evm6670le-linuxhost.ccxml23
-rw-r--r--factory_images/configs/evm6670l/evm6670le.ccxml23
-rw-r--r--factory_images/configs/evm6678l/evm6678l-linuxhost.ccxml23
-rw-r--r--factory_images/configs/evm6678l/evm6678l.ccxml25
-rw-r--r--factory_images/configs/evm6678l/evm6678le-linuxhost.ccxml23
-rw-r--r--factory_images/configs/evm6678l/evm6678le.ccxml26
-rw-r--r--factory_images/program_evm.js356
-rw-r--r--factory_images/program_evm_userguide.pdfbin151504 -> 0 bytes
-rw-r--r--program_evm/gel/README.txt4
-rw-r--r--program_evm/program_evm_userguide.doc (renamed from factory_images/program_evm_userguide.doc)bin364544 -> 538112 bytes
-rw-r--r--program_evm/program_evm_userguide.pdfbin429457 -> 439861 bytes
13 files changed, 2 insertions, 553 deletions
diff --git a/factory_images/configs/evm6670l/evm6670l-linuxhost.ccxml b/factory_images/configs/evm6670l/evm6670l-linuxhost.ccxml
deleted file mode 100644
index 4e2929d..0000000
--- a/factory_images/configs/evm6670l/evm6670l-linuxhost.ccxml
+++ /dev/null
@@ -1,29 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Texas Instruments XDS100v1.5 USB Emulator_0">
4 <instance XML_version="1.2" desc="Texas Instruments XDS100v1.5 USB Emulator_0" href="connections/TIXDS100v15_Connection.xml" id="Texas Instruments XDS100v1.5 USB Emulator_0" xml="TIXDS100v15_Connection.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Texas Instruments XDS100v1.5 USB Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds100icepick_d.xml" id="drivers" xml="tixds100icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds100c66xx.xml" id="drivers" xml="tixds100c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds100cs_dap.xml" id="drivers" xml="tixds100cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6670_0" href="devices/C6670.xml" id="TMS320C6670_0" xml="C6670.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6670_0" partnum="TMS320C6670" simulation="no">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_3">
14 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" deviceSim="false" id="C66xx_3" isa="TMS320C66XX">
15 <property Type="choicelist" Value="0" id="bypass"/>
16 <property Type="choicelist" Value="0" id="Slave Processor"/>
17 </cpu>
18 </subpath>
19 <subpath id="subpath_0">
20 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
21 <property Type="filepathfield" Value="../../emulation/boards/evmc6670l/gel/evmc6670l.gel" id="GEL File"/>
22 </cpu>
23 </subpath>
24 </router>
25 </device>
26 </platform>
27 </connection>
28 </configuration>
29</configurations>
diff --git a/factory_images/configs/evm6670l/evm6670l.ccxml b/factory_images/configs/evm6670l/evm6670l.ccxml
deleted file mode 100644
index 4dec39e..0000000
--- a/factory_images/configs/evm6670l/evm6670l.ccxml
+++ /dev/null
@@ -1,23 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">
4 <instance XML_version="1.2" desc="Texas Instruments XDS100v1 USB Emulator_0" href="connections/TIXDS100usb_Connection.xml" id="Texas Instruments XDS100v1 USB Emulator_0" xml="TIXDS100usb_Connection.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds100icepick_d.xml" id="drivers" xml="tixds100icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds100c66xx.xml" id="drivers" xml="tixds100c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds100cs_dap.xml" id="drivers" xml="tixds100cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6670_0" href="devices/C6670.xml" id="TMS320C6670_0" xml="C6670.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6670_0" partnum="TMS320C6670">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_0">
14 <cpu HW_revision="1.0" XML_version="1.2" desc="C66xx_0" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
15 <property Type="filepathfield" Value="..\..\emulation\boards\evmc6670l\gel\evmc6670l.gel" id="GEL File"/>
16 </cpu>
17 </subpath>
18 </router>
19 </device>
20 </platform>
21 </connection>
22 </configuration>
23</configurations>
diff --git a/factory_images/configs/evm6670l/evm6670le-linuxhost.ccxml b/factory_images/configs/evm6670l/evm6670le-linuxhost.ccxml
deleted file mode 100644
index 06e4eb0..0000000
--- a/factory_images/configs/evm6670l/evm6670le-linuxhost.ccxml
+++ /dev/null
@@ -1,23 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
4 <instance XML_version="1.2" desc="Blackhawk XDS560v2-USB Mezzanine Emulator_0" href="connections/BH-XDS560v2-USB_Mezzanine.xml" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0" xml="BH-XDS560v2-USB_Mezzanine.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds560icepick_d.xml" id="drivers" xml="tixds560icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds560c66xx.xml" id="drivers" xml="tixds560c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6670_0" href="devices/C6670.xml" id="TMS320C6670_0" xml="C6670.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6670_0" partnum="TMS320C6670" simulation="no">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_0">
14 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" deviceSim="false" id="C66xx_0" isa="TMS320C66XX">
15 <property Type="filepathfield" Value="../../emulation/boards/evmc6670l/gel/evmc6670l.gel" id="GEL File"/>
16 </cpu>
17 </subpath>
18 </router>
19 </device>
20 </platform>
21 </connection>
22 </configuration>
23</configurations>
diff --git a/factory_images/configs/evm6670l/evm6670le.ccxml b/factory_images/configs/evm6670l/evm6670le.ccxml
deleted file mode 100644
index 06e4eb0..0000000
--- a/factory_images/configs/evm6670l/evm6670le.ccxml
+++ /dev/null
@@ -1,23 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
4 <instance XML_version="1.2" desc="Blackhawk XDS560v2-USB Mezzanine Emulator_0" href="connections/BH-XDS560v2-USB_Mezzanine.xml" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0" xml="BH-XDS560v2-USB_Mezzanine.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds560icepick_d.xml" id="drivers" xml="tixds560icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds560c66xx.xml" id="drivers" xml="tixds560c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6670_0" href="devices/C6670.xml" id="TMS320C6670_0" xml="C6670.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6670_0" partnum="TMS320C6670" simulation="no">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_0">
14 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" deviceSim="false" id="C66xx_0" isa="TMS320C66XX">
15 <property Type="filepathfield" Value="../../emulation/boards/evmc6670l/gel/evmc6670l.gel" id="GEL File"/>
16 </cpu>
17 </subpath>
18 </router>
19 </device>
20 </platform>
21 </connection>
22 </configuration>
23</configurations>
diff --git a/factory_images/configs/evm6678l/evm6678l-linuxhost.ccxml b/factory_images/configs/evm6678l/evm6678l-linuxhost.ccxml
deleted file mode 100644
index 4e18ccd..0000000
--- a/factory_images/configs/evm6678l/evm6678l-linuxhost.ccxml
+++ /dev/null
@@ -1,23 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Texas Instruments XDS100v1.5 USB Emulator_0">
4 <instance XML_version="1.2" desc="Texas Instruments XDS100v1.5 USB Emulator_0" href="connections/TIXDS100v15_Connection.xml" id="Texas Instruments XDS100v1.5 USB Emulator_0" xml="TIXDS100v15_Connection.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Texas Instruments XDS100v1.5 USB Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds100icepick_d.xml" id="drivers" xml="tixds100icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds100c66xx.xml" id="drivers" xml="tixds100c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds100cs_dap.xml" id="drivers" xml="tixds100cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6678_0" href="devices/C6678.xml" id="TMS320C6678_0" xml="C6678.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6678_0" partnum="TMS320C6678">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_0">
14 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
15 <property Type="filepathfield" Value="../../emulation/boards/evmc6678l/gel/evmc6678l.gel" id="GEL File"/>
16 </cpu>
17 </subpath>
18 </router>
19 </device>
20 </platform>
21 </connection>
22 </configuration>
23</configurations>
diff --git a/factory_images/configs/evm6678l/evm6678l.ccxml b/factory_images/configs/evm6678l/evm6678l.ccxml
deleted file mode 100644
index 7e009d6..0000000
--- a/factory_images/configs/evm6678l/evm6678l.ccxml
+++ /dev/null
@@ -1,25 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3
4
5<configuration XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">
6 <instance XML_version="1.2" desc="Texas Instruments XDS100v1 USB Emulator_0" href="connections/TIXDS100usb_Connection.xml" id="Texas Instruments XDS100v1 USB Emulator_0" xml="TIXDS100usb_Connection.xml" xmlpath="connections"/>
7 <connection XML_version="1.2" id="Texas Instruments XDS100v1 USB Emulator_0">
8 <instance XML_version="1.2" href="drivers/tixds100icepick_d.xml" id="drivers" xml="tixds100icepick_d.xml" xmlpath="drivers"/>
9 <instance XML_version="1.2" href="drivers/tixds100c66xx.xml" id="drivers" xml="tixds100c66xx.xml" xmlpath="drivers"/>
10 <instance XML_version="1.2" href="drivers/tixds100cs_dap.xml" id="drivers" xml="tixds100cs_dap.xml" xmlpath="drivers"/>
11 <platform XML_version="1.2" id="platform_0">
12 <instance XML_version="1.2" desc="TMS320C6678_0" href="Devices/C6678.xml" id="TMS320C6678_0" xml="C6678.xml" xmlpath="Devices"/>
13 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6678_0" partnum="TMS320C6678">
14 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
15 <subpath id="subpath_0">
16 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
17 <property Type="filepathfield" Value="..\..\emulation\boards\evmc6678l\gel\evmc6678l.gel" id="GEL File"/>
18 </cpu>
19 </subpath>
20 </router>
21 </device>
22 </platform>
23 </connection>
24 </configuration>
25</configurations>
diff --git a/factory_images/configs/evm6678l/evm6678le-linuxhost.ccxml b/factory_images/configs/evm6678l/evm6678le-linuxhost.ccxml
deleted file mode 100644
index 3dc3152..0000000
--- a/factory_images/configs/evm6678l/evm6678le-linuxhost.ccxml
+++ /dev/null
@@ -1,23 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3<configuration XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
4 <instance XML_version="1.2" desc="Blackhawk XDS560v2-USB Mezzanine Emulator_0" href="connections/BH-XDS560v2-USB_Mezzanine.xml" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0" xml="BH-XDS560v2-USB_Mezzanine.xml" xmlpath="connections"/>
5 <connection XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
6 <instance XML_version="1.2" href="drivers/tixds560icepick_d.xml" id="drivers" xml="tixds560icepick_d.xml" xmlpath="drivers"/>
7 <instance XML_version="1.2" href="drivers/tixds560c66xx.xml" id="drivers" xml="tixds560c66xx.xml" xmlpath="drivers"/>
8 <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>
9 <platform XML_version="1.2" id="platform_0">
10 <instance XML_version="1.2" desc="TMS320C6678_0" href="devices/C6678.xml" id="TMS320C6678_0" xml="C6678.xml" xmlpath="devices"/>
11 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6678_0" partnum="TMS320C6678" simulation="no">
12 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
13 <subpath id="subpath_0">
14 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" deviceSim="false" id="C66xx_0" isa="TMS320C66XX">
15 <property Type="filepathfield" Value="../../emulation/boards/evmc6678l/gel/evmc6678l.gel" id="GEL File"/>
16 </cpu>
17 </subpath>
18 </router>
19 </device>
20 </platform>
21 </connection>
22 </configuration>
23</configurations>
diff --git a/factory_images/configs/evm6678l/evm6678le.ccxml b/factory_images/configs/evm6678l/evm6678le.ccxml
deleted file mode 100644
index b8ea037..0000000
--- a/factory_images/configs/evm6678l/evm6678le.ccxml
+++ /dev/null
@@ -1,26 +0,0 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<configurations XML_version="1.2" id="configurations_0">
3
4
5
6<configuration XML_version="1.2" id="Blackhawk XDS560v2-USB System Trace Emulator_0">
7 <instance XML_version="1.2" desc="Blackhawk XDS560v2-USB System Trace Emulator_0" href="connections/BH-XDS560v2-USB_Connection.xml" id="Blackhawk XDS560v2-USB System Trace Emulator_0" xml="BH-XDS560v2-USB_Connection.xml" xmlpath="connections"/>
8 <connection XML_version="1.2" id="Blackhawk XDS560v2-USB System Trace Emulator_0">
9 <instance XML_version="1.2" href="drivers/tixds560icepick_d.xml" id="drivers" xml="tixds560icepick_d.xml" xmlpath="drivers"/>
10 <instance XML_version="1.2" href="drivers/tixds560c66xx.xml" id="drivers" xml="tixds560c66xx.xml" xmlpath="drivers"/>
11 <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>
12 <platform XML_version="1.2" id="platform_0">
13 <instance XML_version="1.2" desc="TMS320C6678_0" href="Devices/C6678.xml" id="TMS320C6678_0" xml="C6678.xml" xmlpath="Devices"/>
14 <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6678_0" partnum="TMS320C6678">
15 <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
16 <subpath id="subpath_0">
17 <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
18 <property Type="filepathfield" Value="..\..\emulation\boards\evmc6678l\gel\evmc6678l.gel" id="GEL File"/>
19 </cpu>
20 </subpath>
21 </router>
22 </device>
23 </platform>
24 </connection>
25 </configuration>
26</configurations>
diff --git a/factory_images/program_evm.js b/factory_images/program_evm.js
deleted file mode 100644
index f050b87..0000000
--- a/factory_images/program_evm.js
+++ /dev/null
@@ -1,356 +0,0 @@
1// factory_defaults dss script
2// Import the DSS packages into our namespace to save on typing
3importPackage(Packages.com.ti.debug.engine.scripting);
4importPackage(Packages.com.ti.ccstudio.scripting.environment);
5importPackage(Packages.java.lang);
6importPackage(Packages.java.io);
7importPackage(Packages.java.util);
8
9// Create our scripting environment object - which is the main entry point into
10// any script and the factory for creating other Scriptable ervers and Sessions
11var script = ScriptingEnvironment.instance()
12
13var debugScriptEnv = ScriptingEnvironment.instance();
14
15// Get the Debug Server and start a Debug Session
16var debugServer = script.getServer("DebugServer.1");
17
18// Create a log file in the current directory to log script execution
19script.traceBegin("BFTRunLog.xml", "DefaultStylesheet.xsl")
20
21//***************Functions define***************************
22//****************Open file to write***********************
23// if attr is true, bytes will be written to the end of the file rather than the beginning
24function fileWriterOpen(path, attr)
25{
26 if (attr)
27 {
28 file = new java.io.FileWriter(path, true);
29 return file;
30 }
31 else
32 {
33 file = new java.io.FileWriter(path, false);
34 return file;
35 }
36}
37
38//****************Write to file***********************
39function fileWrite(file, string)
40{
41 file.write(string);
42}
43
44//**************** Close file*************************
45function fileClose(file)
46{
47 file.close();
48}
49
50//****************Get New Time Stamp***********************
51function localTime()
52{
53 // get time stamp
54 var currentTime = new Date();
55 var year = currentTime.getFullYear();
56 var month = currentTime.getMonth() + 1;
57 month = month + "";
58 if (month.length == 1)
59 {
60 month = "0" + month;
61 }
62 var day = currentTime.getDate();
63 var hour = currentTime.getHours();
64 var minute = currentTime.getMinutes();
65 minute = minute + "";
66 if (minute.length == 1)
67 {
68 minute = "0" + minute;
69 }
70 var second = currentTime.getSeconds();
71 second = second + "";
72 if (second.length == 1)
73 {
74 second = "0" + second;
75 }
76
77 return (year+"_"+month+"_"+day+"_"+hour+minute+second);
78}
79
80/**
81 * Get error code from the given exception.
82 * @param {exception} The exception from which to get the error code.
83 */
84function getErrorCode(exception)
85{
86 var ex2 = exception.javaException;
87 if (ex2 instanceof Packages.com.ti.ccstudio.scripting.environment.ScriptingException) {
88 return ex2.getErrorID();
89 }
90 return 0;
91}
92function fileCopy(source,destination)
93{
94 inputFile = new File(source);
95 outputFile = new File(destination);
96 infile = new java.io.FileReader(inputFile);
97 out = new java.io.FileWriter(outputFile);
98 var c;
99
100 while ((c = infile.read()) != -1)
101 out.write(c);
102
103 infile.close();
104 out.close();
105}
106
107//*******************************************
108// Declarations and Inititalizations
109var nandwriter_dir = java.lang.System.getProperty("user.dir");
110var dss_script_dir = java.lang.System.getenv("DSS_SCRIPT_DIR");
111var host_os = "";
112var script_logs = nandwriter_dir+"/logs/";
113var script_configs = nandwriter_dir+"/configs/";
114var script_binaries = nandwriter_dir+"/binaries/";
115var targetConfig = "";
116var writeAll = false;
117var big_endian = false;
118var targetFlag = "unknown";
119var targetConfig = "unknown";
120var emul560 = false;
121
122if (java.lang.System.getProperty("os.name").match(/Linux/i))
123{
124 host_os = "-linuxhost";
125}
126
127// Parse the arguments
128if (arguments.length > 0 && arguments.length < 3)
129{
130 // parse the board spec
131 var board_spec = arguments[0].toLowerCase();
132 board_spec = board_spec.replace(/^tmd(x|s)/, "");
133 board_spec = board_spec.replace(/^evmc/, "evm");
134
135 // find endian, user wants
136 if (board_spec.match(/-be$/))
137 {
138 big_endian = true;
139 board_spec = board_spec.replace(/-be$/, "");
140 }
141 else
142 board_spec = board_spec.replace(/-le$/, "");
143
144 // find onboard emulation option for this board
145 if (board_spec.match(/lx?e$/))
146 {
147 emul560 = true;
148 board_spec = board_spec.replace(/e$/, "");
149 }
150
151 // for now, use the same software for lx and l variants
152 board_spec = board_spec.replace(/lx$/, "l");
153
154 // for now, treat evm6618l as an alias for evm6670l
155 board_spec = board_spec.replace(/evm6618/, "evm6670");
156
157 targetFlag = board_spec;
158
159 endian_spec = (big_endian ? "-be" : "");
160
161 board_binaries = script_binaries + targetFlag + endian_spec + "/";
162 targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE");
163 if (!targetConfig)
164 targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + host_os + ".ccxml";
165
166 print("board: " + targetFlag);
167 print("endian: " + (big_endian ? "Big" : "Little"));
168 print("emulation: " + (emul560 ? "XDS560 mezzanine" : "onboard XDS100"));
169 print("binaries: " + board_binaries);
170 print("ccxml: " + targetConfig);
171
172 var dir = new File(board_binaries);
173 if (!dir.exists())
174 {
175 print("board binaries directory not found");
176 java.lang.System.exit(2);
177 }
178
179 if(arguments[1])
180 var writerImages = arguments[1];
181 else
182 writeAll = true;
183}
184else
185{
186 script.traceWrite("syntax error in command line");
187 print("Syntax: program_evm.js <device> [images_to_write]")
188 print(" <device> is the board name with optional -le (little endian, default) or -be (big endian)")
189 print(" example: TMDXEVM6678L-le")
190 print(" [images_to_write] OPTIONAL is a list of the images to be written")
191 print(" example: eeprom50,nor")
192 print(" If not specified all (eeprom50,eeprom51,nand,nor) will be written")
193 script.traceEnd()
194 java.lang.System.exit(1);
195}
196
197var i2cwriterbinary = board_binaries + "eepromwriter_" + targetFlag + ".out";
198var nandwriterbinary = board_binaries + "nandwriter_" + targetFlag + ".out";
199var norwriterbinary = board_binaries + "norwriter_" + targetFlag + ".out";
200var eepromwriter_input51 = board_binaries + "eepromwriter_input51.txt";
201var eepromwriter_input50 = board_binaries + "eepromwriter_input50.txt";
202var eepromwriter_input = board_binaries + "eepromwriter_input.txt";
203var eeprom50 = board_binaries + "eeprom50.bin";
204var eeprom51 = board_binaries + "eeprom51.bin";
205var nand = board_binaries + "nand.bin";
206var nor = board_binaries + "nor.bin";
207
208start = localTime();
209var logFile = fileWriterOpen(script_logs+targetFlag+"_"+start+".txt", 1);
210
211// Configure target
212debugServer.setConfig(targetConfig);
213debugSession = debugServer.openSession("*","C66xx_0");
214debugSession.target.connect();
215debugSession.target.reset();
216
217//POST
218if(writeAll || writerImages.match(/eeprom50/))
219{
220 //Write EEPROM
221 start = localTime();
222 fileWrite(logFile, "Start POST write @ "+start+"\r\n");
223 script.traceWrite("Start writing POST");
224 script.traceWrite("Writer:" + i2cwriterbinary + "\r\n");
225 script.traceWrite("POST:" + eeprom50 + "\r\n");
226
227 fileCopy(eepromwriter_input50,eepromwriter_input);
228 debugSession.memory.loadProgram(i2cwriterbinary);
229 var nPage = 0x0;
230 var nAddress = 0x80000000;
231 var sFilename = eeprom50 ;
232 var nTypeSize = 32;
233 var bByteSwap = false;
234 try
235 {
236 debugSession.memory.loadRaw(nPage, nAddress, sFilename, nTypeSize, bByteSwap);
237 }
238 catch (ex)
239 {
240 errCode = getErrorCode(ex);
241 script.traceWrite("Error code #" + errCode + ", could not load file " + sFilename +
242 " to target memory!");
243 }
244 debugSession.target.run()
245 end = localTime();
246 fileWrite(logFile, "\nEnd POST write @ " + end + "\n\n");
247}
248
249//IBL
250if(writeAll || writerImages.match(/eeprom51/))
251{
252 start = localTime();
253 fileWrite(logFile, "Start IBL write @ "+start+"\r\n");
254 script.traceWrite("Start writing IBL");
255 script.traceWrite("Writer:" + i2cwriterbinary + "\r\n");
256 script.traceWrite("IBL:" + eeprom51 + "\r\n");
257
258 fileCopy(eepromwriter_input51,eepromwriter_input);
259 debugSession.memory.loadProgram(i2cwriterbinary);
260 var nPage = 0x0;
261 var nAddress = 0x80000000;
262 var sFilename = eeprom51;
263 var nTypeSize = 32;
264 var bByteSwap = false;
265 try
266 {
267 debugSession.memory.loadRaw(nPage, nAddress, sFilename, nTypeSize, bByteSwap);
268 }
269 catch (ex)
270 {
271 errCode = getErrorCode(ex);
272 script.traceWrite("Error code #" + errCode + ", could not load file " + sFilename +
273 " to target memory!");
274 }
275
276 debugSession.target.run()
277 end = localTime();
278 fileWrite(logFile, "\nEnd IBL write @ " + end + "\n\n");
279}
280
281//NAND
282if(writeAll || writerImages.match(/nand/))
283{
284 start_nand = localTime();
285 fileWrite(logFile, "\nStart NAND write @ " + start_nand + "\n\n");
286 script.traceWrite("Writer:" + nandwriterbinary + "\r\n");
287 script.traceWrite("NAND:" + nand + "\r\n");
288 debugSession.memory.loadProgram(nandwriterbinary);
289 var nPage = 0x0;
290 var nAddress = 0x80000000;
291 var sFilename = nand;
292 var nTypeSize = 32;
293 var bByteSwap = true;
294
295 try
296 {
297 script.traceWrite("Start loading nand.bin");
298 debugSession.memory.loadRaw(nPage, nAddress, sFilename, nTypeSize, bByteSwap);
299
300 }
301 catch (ex)
302 {
303 errCode = getErrorCode(ex);
304 script.traceWrite("Error code #" + errCode + ", could not load file " + sFilename +
305 " to target memory!");
306 }
307 script.traceWrite("Start programming NAND");
308 debugSession.target.run()
309 script.traceWrite("End programming NAND");
310 end_nand = localTime();
311 fileWrite(logFile, "\nEnd NAND write @ " + end_nand + "\n\n");
312}
313
314//NOR
315if(writeAll || writerImages.match(/nor/))
316{
317 start_nor = localTime();
318 fileWrite(logFile, "\nStart NOR write @ " + start_nor + "\n\n");
319 script.traceWrite("Writer:" + norwriterbinary + "\r\n");
320 script.traceWrite("NOR:" + nor + "\r\n");
321 debugSession.memory.loadProgram(norwriterbinary);
322 var nPage = 0x0;
323 var nAddress = 0x80000000;
324 var sFilename = nor ;
325 var nTypeSize = 32;
326 var bByteSwap = true;
327 try
328 {
329 script.traceWrite("Start loading nor.bin");
330 debugSession.memory.loadRaw(nPage, nAddress, sFilename, nTypeSize, bByteSwap);
331
332 }
333 catch (ex)
334 {
335 errCode = getErrorCode(ex);
336 script.traceWrite("Error code #" + errCode + ", could not load file " + sFilename +
337 " to target memory!");
338 }
339 script.traceWrite("Start programming NOR");
340 script.traceWrite(localTime());
341 debugSession.target.run()
342 script.traceWrite("End programming NOR");
343 end_nor = localTime();
344 fileWrite(logFile, "\nEnd NOR write @ " + end_nor + "\n\n");
345}
346
347// Close log file
348fileWrite(logFile, "\n\n\n");
349fileClose(logFile);
350
351debugSession.terminate();
352debugServer.stop()
353
354// Stop logging and exit.
355script.traceEnd();
356java.lang.System.exit(0);
diff --git a/factory_images/program_evm_userguide.pdf b/factory_images/program_evm_userguide.pdf
deleted file mode 100644
index f12ba80..0000000
--- a/factory_images/program_evm_userguide.pdf
+++ /dev/null
Binary files differ
diff --git a/program_evm/gel/README.txt b/program_evm/gel/README.txt
index 608774f..0ddc6d9 100644
--- a/program_evm/gel/README.txt
+++ b/program_evm/gel/README.txt
@@ -9,7 +9,7 @@ Steps to update GELs for C66x EVMs
9 9
104: Close the CCS if open 104: Close the CCS if open
11 11
125: Copy the evmc6670l.gel file present in this directory to <CCS_INSTALL_DIR>/ccs_base_5.0.3.00028/emulation/boards/evmc6670l/gel and replace with the GEL present in the directory 125: Replace the GEL file present in the <CCS_INSTALL_DIR>/ccs_base_5.0.3.00028/emulation/boards/evmc6670l/gel directory with the evmc6670l.gel file present in this directory
13 13
146: Copy the evmc6678l.gel file present in this directory to <CCS_INSTALL_DIR>/ccs_base_5.0.3.00028/emulation/boards/evmc6678l/gel and replace with the GEL present in the directory 146: Replace the GEL file present in the <CCS_INSTALL_DIR>/ccs_base_5.0.3.00028/emulation/boards/evmc6678l/gel directory with the evmc6678l.gel file present in this directory
15 15
diff --git a/factory_images/program_evm_userguide.doc b/program_evm/program_evm_userguide.doc
index 2fab197..8efa86b 100644
--- a/factory_images/program_evm_userguide.doc
+++ b/program_evm/program_evm_userguide.doc
Binary files differ
diff --git a/program_evm/program_evm_userguide.pdf b/program_evm/program_evm_userguide.pdf
index a25fdfc..9eefa84 100644
--- a/program_evm/program_evm_userguide.pdf
+++ b/program_evm/program_evm_userguide.pdf
Binary files differ