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.

Stand alone application acting erratically

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I am using  am using the TMDSRM48USB with the newest version of GUI Compser. The GUI works fine when running with CCS but  acts erratically as a stand alone application. I did a search in the forum and it looks like replacing the appInitScript.js with the following script will resolve my problems, but I am getting an error. Any assistance would be greatly appreciated.

Best Regards,

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 Albert,

    What version of CCS did you use to create the app? And what version of the GC runtime you are using to run the app? You need to make sure that CCS version needs to match the correct version of the GC runtime.

    Also, I am not familiar with the device that you are using. But you can compare whether the driver in CCS is also available in the GC runtime that you are using.

    Patrick

  • Thank You for your reply Patrick. I am using CCS 5.3 and using GUI composer  Runtime 5.5. On the wiki page it says that the newest GUI Composer Runtime  is compatible with versions of CCS5.5 and older. If you think this is the problem, then I will uninstall it and and install version 5.3.

    Also, I came across this sentence on the Wiki page. ---

     However, if your application requires non-intrusive target access and your HW (device/emulator) supports it then please modify "appInitScript.js" and comment out or remove this line

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

    How can I be sure if my device/emulator supports real-time?

    -Regards

     

  • Hi Albert,

    The version of GC should be fine. 

    In CCS, is your application required enabling the realtime option to be able to have the expressions view update when the target is running. If the answer is yes, then you need to do the steps on wiki page to have realtime enable.

    The error that you have in the GC console is refering to the register is not accessible. I am not sure why, can you try to enter the same register in CCS's expressions view and see if you see an error or not?

    Patrick