Other Parts Discussed in Thread: CCSTUDIO
My use case: I need to check the processor name connected through XDS100V2(through launchpad or dock). So, i tried exploring options in debug server scripting.
Below lines i executed: Scripting consolue in CCSV6
importPackage(Packages.com.ti.ccstudio.scripting.environment);
importPackage(Packages.com.ti.debug.engine.scripting.setup.ProcessorID);
importPackage(Packages.java.lang);
var env = ScriptingEnvironment.instance();
myServer = env.getServer("DebugServer.1");
myServer.setConfig("C:/ti/ccsv6/ccs_base/scripting/bin/f28055.ccxml");
mySession = myServer.openSession("*","*");
here a new session is created, then if i use
print("*** CPU Name: " + mySession.getBoardName());
print("*** CPU Name: " + mySession.getCPUName());
This provides what name present in my input xml file.
Question: So, i wanted to use class ProcessorID present in com.ti.debug.engine.scripting.setup.ProcessorID.
How to call this class?
obj = ProcessorID(); //fails
mySession.ProcessorID.getProcessorID(); //fails
Let me know how to call this class
Q2: Whats the easier way to fetch the connected boards processor name?