I would like to load a GEL file using the Debug Sever Scripting (DSS). Therfore I am trying to use the following JavaScript exmaple:
// Import the DSS packages into our namespace to save on typing
importPackage(Packages.com.ti.debug.engine.scripting)
importPackage(Packages.com.ti.ccstudio.scripting.environment)
importPackage(Packages.java.lang)
// Create our scripting environment object - which is the main entry point into any script and
// the factory for creating other Scriptable ervers and Sessions
var script = new ScriptingEnvironment()
// Get the Debug Server and start a Debug Session
debugServer = script.getServer("DebugServer.1")
debugServer.setConfig("DSK6416myTest.ccxml")
debugSession = debugServer.openSession("Spectrum Digital DSK-EVM-eZdsp onboard USB Emulator_0/C64xx_0")
debugSession.target.connect();
// Call of my GEL file utilizing the evaluate function
debugSession.expression.evaluate("GEL_LoadGel(myGELfile.gel)")
When executing the JavaScript I get the following error:
82 |
1938 |
0 |
SEVERE |
raise |
Evaluation of expression: "GEL_LoadGel(myGELfile.gel)" failed. identifier not found: myGELfile |
I thought I could use any GEL function in DSS. How about GEL_LoadGEL("myGELfile.gel")? Or do I overlook something?