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.

Question on Debug Server Scripting Methods

Hi,

I am writing scripts using Java in Eclipse IDE. I have ezDSP 28335 board & I am using Code composer version 4.2.4.00033 . I want to know which Class & Method can I use in order to identify whether my target is disconnected while my script is running. Using script.traceBegin(), I am able to see an error message in Eclipse when I disconnect target. However, I want to get an indication through DSS  methods. I tried searching the methods to achieve this in DSS API documentation but could not able to find it. Please help!!

Thanks,

Bhavin

  • Hi Bhavin,

    Bhavinkumar Parmar said:
    I want to know which Class & Method can I use in order to identify whether my target is disconnected while my script is running.

    The API you need is:

    isConnected

    public boolean isConnected()
                        throws ScriptingException
    Query the debugger to determine if the current target is connected or disconnected.

    Returns:
    true if the current target is connected (or if the target does not support connect/disconnect). false if the current target is disconnected.
    Throws:
    ScriptingException

    It is under the Target class.

    Thanks

    ki

  • Hi Ki,

    Thanks for your quick response. I am aware of isConnected() API. This is not the API that I can use. I want to get an indication at any point of time when my target is disconnected starting from the start of a Debugsession till the end of my script execution. I cannot get that indication with isConnected().  Using this API, I will be able to know if my target is disconnected only when I use this API.

    Thanks,

    Bhavin

  • Sounds like you want to listen to some event that will get posted when a disconnect happens and then handle the event via some callback. This is not supported. Sorry

    ki