Updated program_evm.js for 6657 xds200
authorJingting Zhou <zhoujt@ti.com>
Fri, 24 Aug 2012 17:54:50 +0000 (13:54 -0400)
committerJingting Zhou <zhoujt@ti.com>
Fri, 24 Aug 2012 17:54:50 +0000 (13:54 -0400)
program_evm/program_evm.js

index 959a3b64f99ea9e60dbf415438583a9b6973be41..e5b903936054ceee3bcdbda8de3e148344913bb2 100644 (file)
@@ -118,6 +118,7 @@ var big_endian = false;
 var targetFlag = "unknown";
 var targetConfig = "unknown";
 var emul560 = false;
+var xds200 = false;
 testEnv.cioFile = null;
 
 if (java.lang.System.getProperty("os.name").match(/Linux/i))
@@ -148,7 +149,17 @@ if (arguments.length > 0 && arguments.length < 3)
         emul560 = true;
         board_spec = board_spec.replace(/e$/, "");
     }
-        
+      
+       if (board_spec.match(/ls$/))
+    {
+        xds200 = true;
+        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");
     
@@ -162,11 +173,11 @@ if (arguments.length > 0 && arguments.length < 3)
     board_binaries = script_binaries + targetFlag + endian_spec + "/";
     targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE");
     if (!targetConfig)    
-        targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + host_os + ".ccxml";
+        targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + (xds200 ? "s" : "") + host_os + ".ccxml";
 
     print("board: " + targetFlag);
     print("endian: " + (big_endian ? "Big" : "Little"));
-    print("emulation: " + (emul560 ? "XDS560 mezzanine" : "onboard XDS100"));
+    print("emulation: " + emulation_spec);
     print("binaries: " + board_binaries);
     print("ccxml: " + targetConfig);