Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: DSS javascript examples, console input

$
0
0

I'm using DSS with CCSv5.4 via Matlab.  Matlab generates code and builds an executable (.out) file, connects to my target (TMS320F28338 through XDS100v1), loads the executable and runs it.  I want to be able to use the CCS GUI to set breakpoints, start, pause, use watch windows etc.  To do this, I currently load a CCS session as described here (http://processors.wiki.ti.com/index.php/DSS_-_Launching_CCS_from_DSS) and here (http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/245685.aspx).  

This involves running dss with the  -dss.debug flag, which opens the Rhino JavaScript Debugger and setting a breakpoint before continuing (after the CCS Session opens).  

Is it possible to use console inputs to avoid using the Rhino Debugger?  Instead of putting a breakpoint in the Rhino debugger, I would just like the javascript to stop until the user hits enter or something to indicate that CCS is open, and then hits enter again to close the CCS debug session.

I've tried to use something like this: http://stackoverflow.com/questions/4508897/console-input-function-for-rhino to get user input, but I'm not getting anywhere.  I have no experience with javascript, but have briefly looked at the DebugServerExamples that ship with CCSv5.4.  

Is there a way to query user input within the windows command prompt while using DSS?


Viewing all articles
Browse latest Browse all 91752

Trending Articles