This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCSDK: program_evm cannot find device xml configuration file, fails

Other Parts Discussed in Thread: CCSTUDIO, TCI6636K2H

I have a keystone EVM board (66K2H), have done a search on the forum prior to posting, and am trying to use 'program_evm' to upgrade the built in NAND flash with the latest multicore sdk image, but encountering problems. I am getting a 'file not found' error. I've followed the instructions on the wiki to the best of my ability, and double-checked that CCS has the appropriate (I believe) emulation packs installed. It is claiming I am missing a file in "C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml", which I am, but expected it to be installed when I installed the MCSDK and CCS. Did I miss anything obvious?

Software versions:
Windows XP Pro
CCS v. 5.5
Multi-core SDK 03_00_02_14
Latest TI emu pack
Run CCS 'check for updates', found updates and installed them.

Environment variables:
DSS_SCRIPT_DIR="C:\ti\ccsv5\ccs_base\scripting\bin"
PROGRAM_EVM_TARGET_CONFIG_FILE=C:\Documents and Settings\XXXXXXXX\ti\CCSTargetConfigurations\evm_board.ccxml

Failure Log:

-----------------
C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm>%DSS_SCRIPT_DIR%\dss.bat program_evm.js evmk2h -ls
board: evmk2h
endian: Little
emulation: XDS2xx emulator
binaries: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm/binaries/evmk2h/
ccxml: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm/configs/evmk2h/evmk2h.ccxml
 
SEVERE: Cannot read System Setup data from XML file C:\ti\mcsdk_bios_3_00_01_12
tools\program_evm/configs/evmk2h/evmk2h.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could
not be opened. Id=C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml While parsing file: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml
SEVERE: Could not start server: DebugServer.1: Cannot read System Setup data from XML file C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm/configs/evmk2h/evmk2h.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml while parsing file: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml

org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Cannot read System Setup data from XML file C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm/configs/evmk2h/evmk2h.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml while parsing file: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml (program_evm.js#306)
      at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
      at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
      at org.mozilla.javascript.gen.c1._c0(program_evm.js:306)
      at org.mozilla.javascript.gen.c1.call(program_evm.js)
      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
      at org.mozilla.javascript.gen.c1.call(program_evm.js)
      at org.mozilla.javascript.gen.c1.exec(program_evm.js)
      at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
      at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
      at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
      at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
      at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
      at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
      at org.mozilla.javascript.Context.call(Context.java:528)
      at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
      at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
      at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:88)
Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Cannot read System Setup data from XML file C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm/configs/evmk2h/evmk2h.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml while parsing file: C:\ti\mcsdk_bios_3_00_01_12\tools\program_evm\configs\evmk2h\devices\TCI6638.xml
      at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:161)
      at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1345)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
      ... 18 more

---------------

  • The reason for the failure is the change of filenames in the emupack.

    The work around is to edit the ccxml file to update the target configuration and rerun program_evm.


    Edit the file: mcsdk_bios_<version>/tools/program_evm/configs/evmk2h/evmk2h-linuxhost.ccxml, as follows

    -                <instance XML_version="1.2" desc="TCI6638_0" href="devices/TCI6638.xml" id="TCI6638_0" xml="TCI6638.xml" xmlpath="devices"/>
    -                <device HW_revision="1" XML_version="1.2" description="TCI6638" id="TCI6638_0" partnum="TCI6638">
    +                <instance XML_version="1.2" desc="TCI6636K2H_0" href="devices/TCI6636K2H.xml" id="TCI6636K2H_0" xml="TCI6636K2H.xml" xmlpath="devices"/>
    +                <device HW_revision="1" XML_version="1.2" description="TCI6636K2H" id="TCI6636K2H_0" partnum="TCI6636K2H">

    -                                <property Type="filepathfield" Value="../../emulation/boards/evmtci6638k2k/gel/evmtci6638k2k.gel" id="GEL File"/>
    +                                <property Type="filepathfield" Value="../../emulation/boards/xtcievmk2x/gel/xtcievmk2x.gel" id="GEL File"/>

    If using Windows:
    Edit the file: mcsdk_bios_<version>/tools/program_evm/configs/evmk2h/evmk2h.ccxml, as follows
    -                <instance XML_version="1.2" desc="TCI6638_0" href="devices/TCI6638.xml" id="TCI6638_0" xml="TCI6638.xml" xmlpath="devices"/>
    -                <device HW_revision="1" XML_version="1.2" description="TCI6638" id="TCI6638_0" partnum="TCI6638">
    +                <instance XML_version="1.2" desc="TCI6636K2H_0" href="devices/TCI6636K2H.xml" id="TCI6636K2H_0" xml="TCI6636K2H.xml" xmlpath="devices"/>
    +                <device HW_revision="1" XML_version="1.2" description="TCI6636K2H" id="TCI6636K2H_0" partnum="TCI6636K2H">

    -                                <property Type="filepathfield" Value="..\..\emulation\boards\evmtci6638k2k\gel\evmtci6638k2k.gel" id="GEL File"/>
    +                                <property Type="filepathfield" Value="..\..\emulation\boards\xtcievmk2x\gel\xtcievmk2x.gel" id="GEL File"/>