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.
Dear TI support,
I'd like to ask you to share the DebugServer API for using from C/C++ programs, similar to what is available for JavaScript, Java, Perl, Python. I saw somewhere in wiki, that one should ask it here on forum.
Particularly, I'm interesting in using of CIO.
Thanks,
Andrey
The documentation for Debug Server API is included with CCS. If you have CCS installed, you can find the documentation in the directory mentioned here
http://processors.wiki.ti.com/index.php/Debug_Server_Scripting#DSS_API
Andrey,
This isn't something we really support. The actual C++ interface to libDebugServer.so is asynchronous, based on Mozilla's xpcom, and not well documented in most of the headers. All of which makes it quite difficult to use. In addition, backwards compatibility is not maintained between versions. As such, we don't publish those headers. I suppose you could call the DSS APIs from C/C++ using JNI, but JNI is not very convenient.
If you are set on C/C++, I would recommend you take a look at the test server example (located in ccsv6/ccs_base/scripting/examples/TestServer). This launches a DSS script that opens a port and accepts/sends json messages to call functions and return results. The example client script is written in perl, but this would likely be the easiest way to talk to it using C/C++ (there are a number of free C/C++ socket and json libraries available to work with this example).
Darian