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.

Writing nand.bin to the flash

Other Parts Discussed in Thread: CCSTUDIO

Hi all,

I'm trying to load the linux kernel on the c6678 evm.
I followed the steps described in the Linux-C6x-2.0-GA User Guide. I connected the evm to the PC via JTAG cable.

When I execute the following command : $DSS_SCRIPT_DIR/dss.sh program_evm.js evmc6678l-le "eeprom51, nand"
I have the following errors:

targetFlag: evmc6678l
ccxml:/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml

Start writing to EEPROM
2012_02_3_101241
SEVERE: Cannot read System Setup data from XML file /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml while parsing file: /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml
SEVERE: Can not initialize DebugServer. Cannot read System Setup data from XML file /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml while parsing file: /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml
SEVERE: Could not start server: DebugServer.1: Can not initialize DebugServer. Cannot read System Setup data from XML file /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml while parsing file: /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can not initialize DebugServer. Cannot read System Setup data from XML file /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml while parsing file: /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml (program_evm.js#189)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:74)
    at org.mozilla.javascript.gen.c1._c0(program_evm.js:189)
    at org.mozilla.javascript.gen.c1.call(program_evm.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
    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:500)
    at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:422)
    at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)
    at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)
    at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)
    at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)
    at org.mozilla.javascript.Context.call(Context.java:540)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)
    at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)
    at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)
Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server: DebugServer.1: Can not initialize DebugServer. Cannot read System Setup data from XML file /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/evmc6678l.ccxml
Error parsing file:
Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml while parsing file: /home/rachid/my-linux-c6x/program_evm/configs/evmc6678l/Devices/C6678.xml
    at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:148)
    at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1337)
    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:142)
    ... 18 more

I'm using Ubuntu 10.04 as host, Linux-c6x release 2.0 and ccs v5.0.3.

Thanks,

Rachid

  • I just solved this question,and may help you. from Wiki:

    The DSS script under program_evm directory is using the default ccxml files that are created under CCS 5.0.3; So, for CCS 5.1 please provide the customized ccxml file that user created; Example steps below are for a Windows PC for C6670 EVM XDS560V2 mezzanine card. Please follow similar steps for using the dss script for CCS 5.1 under Linux.

    1. program_evm>set PROGRAM_EVM_TARGET_CONFIG_FILE=C:\Documents and Settings\user\CCSTargetConfigurations\evmc6670_CCS51_mezzanine.ccxml (note that there are no double quotes to be given in this path)
    1. program_evm>set DSS_SCRIPT_DIR="C:\ti\ccsv5\ccs_base\scripting\bin" (please observe the double quotes in the path here)
    1. program_evm>%DSS_SCRIPT_DIR%\dss.bat program_evm.js TMDSEVM6670Le-Le