diff options
-rw-r--r-- | program_evm/program_evm.js | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/program_evm/program_evm.js b/program_evm/program_evm.js index 17c92c6..f883bb2 100644 --- a/program_evm/program_evm.js +++ b/program_evm/program_evm.js | |||
@@ -160,24 +160,24 @@ if (arguments.length > 0 && arguments.length < 3) | |||
160 | board_spec = board_spec.replace(/ls$/, "l"); | 160 | board_spec = board_spec.replace(/ls$/, "l"); |
161 | } | 161 | } |
162 | 162 | ||
163 | if (board_spec.match(/k2h$/)) | 163 | if (board_spec.match(/k2h$/) || board_spec.match(/k2e$/) || board_spec.match(/k2l$/)) |
164 | { | 164 | { |
165 | emulation_spec = "XDS2xx emulator"; | 165 | emulation_spec = "XDS2xx emulator"; |
166 | } | 166 | } |
167 | 167 | ||
168 | // for now, use the same software for lx and l variants | 168 | // for now, use the same software for lx and l variants |
169 | board_spec = board_spec.replace(/lx$/, "l"); | 169 | board_spec = board_spec.replace(/lx$/, "l"); |
170 | 170 | ||
171 | // for now, treat evm6618l as an alias for evm6670l | 171 | // for now, treat evm6618l as an alias for evm6670l |
172 | board_spec = board_spec.replace(/evm6618/, "evm6670"); | 172 | board_spec = board_spec.replace(/evm6618/, "evm6670"); |
173 | 173 | ||
174 | targetFlag = board_spec; | 174 | targetFlag = board_spec; |
175 | 175 | ||
176 | endian_spec = (big_endian ? "-be" : ""); | 176 | endian_spec = (big_endian ? "-be" : ""); |
177 | 177 | ||
178 | board_binaries = script_binaries + targetFlag + endian_spec + "/"; | 178 | board_binaries = script_binaries + targetFlag + endian_spec + "/"; |
179 | targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE"); | 179 | targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE"); |
180 | if (!targetConfig) | 180 | if (!targetConfig) |
181 | targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + (xds200 ? "s" : "") + host_os + ".ccxml"; | 181 | targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + (xds200 ? "s" : "") + host_os + ".ccxml"; |
182 | 182 | ||
183 | print("board: " + targetFlag); | 183 | print("board: " + targetFlag); |
@@ -289,6 +289,18 @@ switch (targetFlag) | |||
289 | var nandNorAddress = 0x80000000; | 289 | var nandNorAddress = 0x80000000; |
290 | var iblByteSwap = false; | 290 | var iblByteSwap = false; |
291 | break; | 291 | break; |
292 | case "evmk2e": | ||
293 | cpu_id = "C66xx_0"; | ||
294 | var nAddress = 0x0C000000; | ||
295 | var nandNorAddress = 0x80000000; | ||
296 | var iblByteSwap = false; | ||
297 | break; | ||
298 | case "evmk2l": | ||
299 | cpu_id = "C66xx_0"; | ||
300 | var nAddress = 0x0C000000; | ||
301 | var nandNorAddress = 0x80000000; | ||
302 | var iblByteSwap = false; | ||
303 | break; | ||
292 | default: | 304 | default: |
293 | script.traceWrite("Could not file cpu id for target " + targetFlag + "\n"); | 305 | script.traceWrite("Could not file cpu id for target " + targetFlag + "\n"); |
294 | 306 | ||