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.

CCSv4 & CCSv4 DSS does not accept Chinese characters in directory names for "out" or "zip" files

Other Parts Discussed in Thread: MSP430G2402, MSP430G2553, CCSTUDIO

CCSv4 DSS is quite useful.

For example C:\Program Files\Texas Instruments\ccsv4\scripting\examples\loadti\loadti.bat" -a -c MSP430G2402.ccxml example_program.out

Can load a MSP430G2402 "out" file without needing to start up CCSv4 GUI, however CCSv4 DSS does not accept directory names with Chinese characters in them.

I tried using a Chinese character directory name , but without any Chinese character equivalent of any of the English characters which are not allowed for a file/folder name (like / \ ? * |)

The result

*       CCS4 can accept this as a workspace.

*       CCS4 will not import a zipped MSP project archive from a directory which has a Chinese character name, but if I move the same zipped MSP project archive out of the Chinese character name directory, then CCS4 will accept it.

*       CCS4 DSS has the same issue but with "out" files in a directory name with Chinese characters.

 

Can this be fixed so that CCSv4 and CCsv4 DSS will accept Chinese character names (but without any Chinese character equivalent of any of the English characters which are not allowed for a file/folder name (like / \ ? * |)

 

I am using CCSv4 4.2.3.00004

  • Hi Paul,

    Are you getting a "File is not available" error?

    ki

  • Hi Ki,

     

    No, at least for DSS, I am getting a different error see below.

    Note the Chinese character directory name (D:\My Documents\回覆) that I used for test shows in the DOS window batch file command correctly, but DSS reports "回覆" back as  "??" after that" .

    Actually the "ccxml" file is in the same directory as the "bat" and "out" files.

    my batch file looks like this:

    =============

    call "C:\Program Files\Texas Instruments\ccsv4\scripting\examples\loadti\loadti.bat" -a -c MSP430G2553.ccxml TestProgram.out
    pause

    =============

    No matter what the Chinese character name is the problem still occurs.

     

    Paul

     


    D:\My Documents\回覆>call "C:\Program Files\Texas Instruments\ccsv4\scri
    pting\examples\loadti\loadti.bat" -a -c MSP430G2553.ccxml TestProgram.out

    ***** DSS Generic Loader *****

    START: 20:03:17 GMT+0800 (CST)

    Configuring Debug Server for specified target...
    Done
    SEVERE: The target configuration path: D:\My Documents\??\MSP430G2553.cc
    xml contains invalid characters:
    ?
    ?
    SEVERE: Can not initialize DebugServer. The target configuration path: D:\My Doc
    uments\??\MSP430G2553.ccxml contains invalid characters:
    ?
    ?
    SEVERE: Could not start server: DebugServer.1: Can not initialize DebugServer. T
    he target configuration path: D:\My Documents\??\MSP430G2553.ccxml contains invalid characters:
    ?
    ?
    org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.envir
    onment.ScriptingException: Could not start server: DebugServer.1: Can not initia
    lize DebugServer. The target configuration path: D:\My Documents\??\MSP4
    30G2553.ccxml contains invalid characters:
    ?
    ? (C:\Program Files\Texas Instruments\ccsv4\scripting\examples\loadti\main.js#16
    4)
            at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:17
    05)
            at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
            at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:20
    1)
            at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:74)

            at org.mozilla.javascript.gen.c1._c4(C:\Program Files\Texas Instruments\
    ccsv4\scripting\examples\loadti\main.js:164)
            at org.mozilla.javascript.gen.c1.call(C:\Program Files\Texas Instruments
    \ccsv4\scripting\examples\loadti\main.js)
            at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java
    :106)
            at org.mozilla.javascript.gen.c1._c0(C:\Program Files\Texas Instruments\
    ccsv4\scripting\examples\loadti\main.js:9)
            at org.mozilla.javascript.gen.c1.call(C:\Program Files\Texas Instruments
    \ccsv4\scripting\examples\loadti\main.js)
            at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:3
    37)
            at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:275
    5)
            at org.mozilla.javascript.gen.c1.call(C:\Program Files\Texas Instruments
    \ccsv4\scripting\examples\loadti\main.js)
            at org.mozilla.javascript.gen.c1.exec(C:\Program Files\Texas Instruments
    \ccsv4\scripting\examples\loadti\main.js)
            at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)

            at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:4
    22)
            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 s
    tart server: DebugServer.1: Can not initialize DebugServer. The target configura
    tion path: D:\My Documents\??\MSP430G2553.ccxml contains invalid charact
    ers:
    ?
    ?
            at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(Debug
    Server.java:144)
            at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.jav
    a:1333)
            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)
            ... 21 more
    Press any key to continue . . .

  • Yes I see those issues also. DOS doesn't know how to display the Chinese characters so it just displays it as "??". And CCS support for Chinese characters is limited to source code commenting and C/IO. It doesn't really support source (or executable) file names and paths.