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.

GUI Composer Runtime

Other Parts Discussed in Thread: CCSTUDIO

Hi i am pretty new by using MSP432P401r, i already debbuged my programme with CCS 6.1.2 and it worked well but as i tried to make GUI work through Runtime app a message like this appeared to me:

Restarting Program Model...
Initializing target : null
sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server:
DebugServer.1: No configuration was supplied (<Unknown source>#8) in <Unknown source> at line number
8Restart Completed.

Thanks in advance

Alejandro

  • Hello Alejandro,
    GC Runtime posted on GUI Composer wiki is at CCS 6.1.1 level, which I did not support MSP432. I'll need to repackage a newer version that includes support for MSP432. It will take me few days to do repackage and test.

    Martin
  • Hi Martin,

    Thank you for your fast answer. I'll wait for your final results and conclusions.

    Alejandro
  • Hi Alejandro,

    I have put together a windows version of GC Runtime that includes latest available components including MSP432 support. Could you run the installer, then copy your application to guicomposer\webapps folder and try running your app after exporting? I tried a simple MSP432 example and it worked without issues for me. First time you run it you may get a message in the console about emulator firmware upgrade. If you do, then let it finish and then click "Initialize" button again. 

    Please let me know if this worked for you. I'll then add updated GC runtime package to main wiki. 

    Martin

  • Hi Martin,

    After trying what you wrote it still doesn´t work. I followed all your steps, download the GC runtime, copy my programm into guicomposer\webapps folder and once i have exported it, try to run it. It looks like something is going to happen but then it just appears this screen to me, loading permanently.

    Hope you can help me,

    Alejandro

  • Alejandro,

    Martin is away until next week. Is it possible to send the GC app to me, I can take a look.

    Patrick
  • sand.zip

    I am not pretty sure what you want me to send you i attached the file.

    Let me know if your were asking for another thing!

    Alejandro

  • Hi Alejandro,
    Attached file is what we are looking for. I dropped your app into GC Runtime installation that I posted above. I have used 432 LaunchPad ( i believe this is what you are using) and during debug access initialization I got errors. The appInitScript.js that is part of your app does not seem to have quite the correct content (at least not for MSP432). Do you recall if you manually modified or copied this file? If not, then would be able to let us know which version of CCS you used to create your app? In some early releases that template file did not always have correct content. In any case, I made tweaks necessary to make it work with 432 (see below for lines that I commented out). After this GC app performed the initialization correctly and the app started to work. Meaning that GUI appeared with no errors and I was able to turn the dial widget and number spinner box was updated. I see that you bound both to "z" variable, thus I am concluding that writing and reading actually worked.

    If after modifying the script, things still get stuck in Loading then we may need to collect some additional logs. GC Runtime is starting a local webserver and the application window that appears (where you see the Loading message) is just a wrapped web browser. It is possible that your issue has to do with problem establishing a communication channel between server and client. Is it possible that some firewall setting could be affecting communication?

    martin


    ----------------------- appInitScript.js -----------------------------

    importPackage(Packages.com.ti.ccstudio.scripting.environment)

    function initTarget() {
    var debugServer = ScriptingEnvironment.instance().getServer("DebugServer.1");

    print("Initializing target : " + appConfigFile+"\n");
    debugServer.setConfig(appConfigFile /* internal variable */);
    var session = debugServer.openSession("*", "*" /* TODO: */);

    //session.options.setBoolean("UseLegacyStopMode", true);

    if (!session.target.isConnected()) {
    print("Connecting target: "+session.getName()+"\n");
    session.target.connect();
    }

    print("Loading program: "+appProgramFile+"\n");
    session.memory.loadProgram(appProgramFile /* internal variable */);

    //print("Enabling Realtime\n");
    //session.expression.evaluate("ST1.DBGM = 0");
    //session.expression.evaluate("GEL_EnableRealtime()");

    print("Running Program...\n");
    session.target.runAsynch();
    }

    initTarget();
  • Hi Martin,

    I recall changing the appInitScript.js because of something i read but then i  have tried the hole process again with your suggestion changing the code however it still doesn´t work. I also took a look of the firewall but it wasn´t affecting anyway.

    In addition to that, i have tried to make it run in another computer but same result. 

    Alejandro

  • Hello Alejandro,
    Could you enable GC logging as described on wiki listed below and attach generated log?

    processors.wiki.ti.com/.../Tracing

    Thank you,
    Martin
  • 3527.all.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    Install location:
    file:/c:/ti/guicomposer/eclipse/
    Configuration file:
    file:/c:/ti/guicomposer/eclipse/configuration/config.ini loaded
    Configuration location:
    file:/c:/ti/guicomposer/eclipse/configuration/
    Framework located:
    file:/c:/ti/guicomposer/eclipse/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar
    Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
    eclipse.properties not found
    Framework classpath:
    file:/c:/ti/guicomposer/eclipse/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar
    file:/c:/ti/guicomposer/eclipse/plugins/
    file:/c:/ti/guicomposer/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.0.1.v20140709-1414.jar
    Splash location:
    null
    Debug options:
    file:/c:/ti/guicomposer/eclipse/traceAll.properties loaded
    Time to load bundles: 11
    Starting application: 3393
    Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: C:\ti\guicomposer\ccs_base\DebugServer\bin\LibraryLoader.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.ti.debug.engine.xpcom.Runtime.preXPCOMInit(Runtime.java:163)
    at com.ti.debug.engine.xpcom.Runtime.startBare(Runtime.java:116)
    at com.ti.debug.engine.xpcom.Runtime.createComponent(Runtime.java:170)
    at com.ti.utility.filesystem.DirectoryService.<init>(DirectoryService.java:26)
    at com.ti.utility.filesystem.DirectoryService.<init>(DirectoryService.java:9)
    at com.ti.utility.filesystem.DirectoryService$SingletonHolder.<clinit>(DirectoryService.java:44)
    at com.ti.utility.filesystem.DirectoryService.instance(DirectoryService.java:49)
    at com.ti.common.core.utils.ds.CoreUtilsProvider.getSharedTemporaryFileDir(CoreUtilsProvider.java:24)
    at com.ti.common.core.CoreUtils.getSharedTemporaryFileDir(CoreUtils.java:128)
    at com.ti.gui.composer.common.internal.ServerFileOperations.setPaths(ServerFileOperations.java:111)
    at com.ti.gui.composer.common.internal.ServerFileOperations.<clinit>(ServerFileOperations.java:34)
    at com.ti.gui.composer.common.internal.WebBindingRegistry.<init>(WebBindingRegistry.java:98)
    at com.ti.gui.composer.common.internal.GCServerInfo$3.run(GCServerInfo.java:209)
    at java.lang.Thread.run(Unknown Source)
    Application Started: 8668
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    All right Martin,

    here you are!

    Alejandro

  • Thank you Alejandro. There is definitely a problem as it looks like there are some missing runtime files. At this point it looks like something did not get installed properly. Would you be able to attach the installation log as well? It should be in location below on your system. Could you also let me know which operating system you are using?

    Could you attach versionNumber_install.log file that should be located in C:\Program Files (x86)\InstallJammer Registry\guicomposer_11E8186A-7B66-4900-8DFE-07FA1CC2B2F0

    Martin
  • Hi Martin,

    Here attached you will find the file with all the .log inside. The operating system is windows 7.

    guicomposer_11E8186A-7B66-4900-8DFE-07FA1CC2B2F0.zip

    Alejandro

  • Hello Alejandro, 

    The log helped identify an issue with installer package. I have re-created a new package and posted it. Please use the link below to try it out. 

    Please let me know if this resolves the issue. 

    Martin

    GCRuntime

  • Hello Martin,

    I get an error after clicking the link you have writen.

    Alejandro

  • ok no problem , downloading!

    don´t know what happened

    Alejandro
  • Could you try again? Please refresh (or reload) the page on your browser. I noticed that my original link did not quite have the right content and I edited the post to have correct link.

    martin
  • Hi Martin,

    It finally works! Thank you very much for your help!

    Alejandro
  • thanks for confirming!

    Martin