I am trying to open a CCS session from the DSS script as described here:
http://wiki.davincidsp.com/index.php/Debug_Server_Scripting#Debugging_Your_JavaScript
My script executes the following:
server = env.getServer("CCSServer.1");
session = server.openSession(".*");
// A breakpoint is inserted here before the script is run and waits until CCS is opened
// Next it tries to reset and load the target
session.target.reset();
session.memory.loadProgram(DSPProgramDirectory + programName);
The reset() or loadProgram() commands do not work as the script reports the exception that the functions are not found.
Please let me know if you need more information. I tried this is CCS v4.1 and 4.0.2 with the same results.