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();