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.

DSS within CCStudio - general question

Other Parts Discussed in Thread: CCSTUDIO

I've been working on a script using DSS from the command line. It would be nice to be able to use this from within CCStudio, and there is some documentation covering this. That said, I need a way to debug from within CCStudio, and this leaves me with two questions

1. Is it possible to launch the rhino debugger from within CCS?

2. Can I access stdin/out? The script I was using uses TraceWrite() for detailed logging, but also logs a summary of the scripting activity directly to cmd via Println(), this is useful for debugging, and some functions also wait for response from stdin

  • Hello,

    Murph612 said:
    1. Is it possible to launch the rhino debugger from within CCS?

    No. You would use the Scripting Console to run your DSS scripts and the Scripting Console is essentially a javascript/rhino shell.

    If you want to be able to debug your script with Rhino debugger while automating the IDE, I suggestion you run your script from the rhino debugger and have the script launch CCS.

    http://processors.wiki.ti.com/index.php/DSS_-_Launching_CCS_from_DSS

    Murph612 said:
    2. Can I access stdin/out? The script I was using uses TraceWrite() for detailed logging, but also logs a summary of the scripting activity directly to cmd via Println(), this is useful for debugging, and some functions also wait for response from stdin

    As you mentioned, stdout can appear in the scripting log. It will also output to the Debug console if running from the CCS IDE. You can also stream stdout to a separate file using the CIOLogging APIs in DSS.

    stdin in a bit more complicated. If you are running from the IDE, you can enter stdin from the C/IO debug console. But this is not supported natively when running DSS from the command-line via rhino.

    thanks

    ki

  • Thank you Ki-Soo, you've been very helpful with multiple questions that I've asked. I currently have a script that launches CCS. What I'm wondering now is if I can transfer execution to the JavaScript console within the IDE (as if I had "loaded" the script).

    At the end of the day I wan't to be able to do my GUI based debugging, then call functions from my script at some point when the target is halted. Do you know of any way to do this? Alternately, would it be possible to add menu items which would call these functions like you might with GEL scripting? Currently the only method I have to accomplish all this is to launch in debug, and busy loop after initialization; I can then halt my script and do stuff from the rhino debug shell, but this is pretty messy IMO.

  • Nevermind, I will create separate thread for this question, thanks again Ki-Soo. new thread:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/373517.aspx