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.
Tool/software: Code Composer Studio
I have a motion control application running in a TMS320F2812.
I have a DSS application which over JTAG polls once a second to evaluate the value of a single RAM location.
The velocity command input signal, which is coming in on SPI, is corrupted randomly only if DSS polling is active. The average time between corruption is on the order of about 10 seconds.
When DSS polling is not active, there is no corruption.
It was my understanding that DSS is completely unobtrusive to the program if all that is being done is reading (evaluating) variables.
Does anyone have a suggestion?
Thank you Rafael.
I tried to enable real time mode but got the error message "SEVERE: C28xx: Realtime was not enabled".
I will continue exploring the Debugging information on the web for a solution.
Regards,
Karl
Karl,
How exactly are you trying to enable it? One method is mentioned at the last example of the DSS section below:
software-dl.ti.com/.../sdto_dss_handbook.html
debugSession.options.setBoolean("AllowInterruptsWhenHalted",true);
As the example indicates, the target must be halted before enabling it.
Hope this helps,
Rafael
Hi Rafael,
I solved the problem of not being able to enable Real-time mode in DSS but I still have my original problem of "Debug Scripting Server (DSS) Interferes With Program".
Regarding ""SEVERE: C28xx: Realtime was not enabled", here is what I found:
I got a clue to the solution from CCS. In CCS, when you click on Enable Real-time mode, CCS will, if necessary, pop-up a dialog indicating "Can't enter realtime mode unless debug events are enabled. Bit 1 of ST1 must be 0.". So, in DSS, I cleared the DBGM bit first and then was able to enable Real-time mode.
The last example in software-dl.ti.com/.../sdto_dss_handbook.html doesn't mention the DBGM bit.
What I find confusing is that I can monitor variables in the expression window of CCS (with or without Real-time mode enabled) and it does not interfere with the program.
Karl
Hi Rafael,
As I mentioned before, my original problem of DSS interfering with my program still exists.
The purpose of my DSS application is to retrieve captured data from a TMS320F2812. The DSS application polls a "data ready" flag in the TMS320F2812 once a second. When the "data ready" flag is true it goes ahead and saves the data from the TMS320F2812's memory.
As a work-around to the "Debug Scripting Server (DSS) Interferes With Program" problem, I am now monitoring the "Data Ready" flag using CCS Debug mode. CCS Debug mode does not interfere with the program. When th"Data Ready" flag is TRUE, I exit CCS and run the DSS application. I have to exit CCS Debug mode to free up the emulator for DSS to access it.
It would be more efficient for me if I didn't have to exit CCS Debug mode.
Here's my question: Is there a way to attach DSS to a running CCS Debug session? I found instructions for attaching CCS to a running debug session created by DSS but I need the opposite - Attach DSS to a running debug session created by CCS.
In case it matters my DSS application is implemented in Jython.