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.

How to get Processor ID using debug server?

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?

  • Hi Arun,

    I've responded to your other post:
    e2e.ti.com/.../1864675

    Regards,
    Gautam
  • Hi Gautam,
    Ok, Yes i see there is memory section for Part ID, but that memory section is not a constant for all F28x boards.

    I want to write a generic utility to tap Part ID of any F28x boards connected to my host.(Can you suggest how)

    So, debug server option of reading processor ID sounds interestesting, but i couldnt make below class instantiation working in my js.
    obj = ProcessorID(); //fails

    mySession.ProcessorID.getProcessorID();

    Could you provide support on usage of ProcessorID class?(Main question)