program_evm: Update program evm for k2h & k2l DEV.MCSDK-03.00.04.17
authorSam Nelson <sam.nelson@ti.com>
Tue, 21 Jan 2014 13:41:14 +0000 (08:41 -0500)
committerSam Nelson <sam.nelson@ti.com>
Tue, 21 Jan 2014 13:41:14 +0000 (08:41 -0500)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
program_evm/program_evm.js

index 17c92c674ce25d95390412ecf09df91aaf9ff075..f883bb22ba44c7143de2a8b9ced51e19155e67d9 100644 (file)
@@ -160,24 +160,24 @@ if (arguments.length > 0 && arguments.length < 3)
         board_spec = board_spec.replace(/ls$/, "l");
     }
 
-    if (board_spec.match(/k2h$/))
+    if (board_spec.match(/k2h$/) || board_spec.match(/k2e$/) || board_spec.match(/k2l$/))
     {
         emulation_spec = "XDS2xx emulator";
     }
-       
-    // for now, use the same software for lx and l variants
+
+       // for now, use the same software for lx and l variants
     board_spec = board_spec.replace(/lx$/, "l");
-    
+
     // for now, treat evm6618l as an alias for evm6670l
     board_spec = board_spec.replace(/evm6618/, "evm6670");
-        
+
     targetFlag = board_spec;
-    
+
     endian_spec = (big_endian ? "-be" : "");
-    
+
     board_binaries = script_binaries + targetFlag + endian_spec + "/";
     targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE");
-    if (!targetConfig)    
+    if (!targetConfig)
         targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + (xds200 ? "s" : "") + host_os + ".ccxml";
 
     print("board: " + targetFlag);
@@ -289,6 +289,18 @@ switch (targetFlag)
                var nandNorAddress = 0x80000000;
                var iblByteSwap = false;
         break;
+       case "evmk2e":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
+       case "evmk2l":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
        default:
                script.traceWrite("Could not file cpu id for target " + targetFlag + "\n");