fixed some small bugs in program_evm.js and added two .ccxml files for 6657xds200
authorJingting Zhou <zhoujt@ti.com>
Thu, 6 Sep 2012 16:22:09 +0000 (12:22 -0400)
committerJingting Zhou <zhoujt@ti.com>
Thu, 6 Sep 2012 16:22:09 +0000 (12:22 -0400)
program_evm/program_evm.js

index 3bc06d2b2f54c8699e7891959e918f1ca3464ae0..b5d6d52d11f8bd287b922cec02c58c4b6ec33e57 100644 (file)
@@ -114,11 +114,13 @@ var script_configs = nandwriter_dir+"/configs/";
 var script_binaries = nandwriter_dir+"/binaries/";
 var targetConfig = "";
 var writeAll = false;
+var writerImages = "";
 var big_endian = false;
 var targetFlag = "unknown";
 var targetConfig = "unknown";
 var emul560 = false;
 var xds200 = false;
+var emulation_spec = "onboard XDS100";
 testEnv.cioFile = null;
 
 if (java.lang.System.getProperty("os.name").match(/Linux/i))
@@ -147,18 +149,16 @@ if (arguments.length > 0 && arguments.length < 3)
     if (board_spec.match(/lx?e$/))
     {
         emul560 = true;
+       emulation_spec = "XDS560 mezzanine";
         board_spec = board_spec.replace(/e$/, "");
     }
       
-       if (board_spec.match(/ls$/))
+    if (board_spec.match(/ls$/))
     {
         xds200 = true;
+       emulation_spec = "XDS200 emulator";
         board_spec = board_spec.replace(/ls$/, "l");
-    }
-       
-       var emulation_spec = emul560 ? "XDS560 mezzanine" : "onboard XDS100";
-       
-       emulation_spec = xds200 ? "XDS200 emulator" : "onboard XDS100";
+    }    
        
     // for now, use the same software for lx and l variants
     board_spec = board_spec.replace(/lx$/, "l");
@@ -189,7 +189,7 @@ if (arguments.length > 0 && arguments.length < 3)
     }
     
     if(arguments[1])
-        var writerImages = arguments[1];
+        writerImages = arguments[1];
     else
         writeAll = true;   
 }