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.

CCSv4 Watch variable values not visible

Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

OS: Windows 7 64bit

CCS Version: 4.1.2.00027

Board: TMDS2MTRPFCKIT (Dual Motor Control and PFC Developers Kit)

Chip: TMS320F28035

Emulator: XDS100v2 USB Emulator for the TMS320F28035 (FTID Driver version 2.4.16.0)

Values for watch window variables are not visible during execution. Instead there is an error that reads "Could not read memory at 0x00008D20@Data: Execution state prevented access" in place of the value. When halted, the value is read just fine though. The program executes just fine as well, I am just not able to see variable values for any variables during execution. The steps I took to reproduce the bug are found below.

After installing CCSv4, I imported the Example_2803xLEDBlink project directly from ControlSuite, set up the Target Configuration, built the project and ran it. Then I added a global variable to to the project to count the number of times the LED toggled and added this variable to the watch window. When not running, the value is displayed correctly, but during execution I get the error described above.

I also get the same error using other projects from the Control Suite. In particular, the 2xPM_Sensorless project for the Low Voltage Multiaxis PFC Kit. For this project I followed the directions outlined in the documentation included with the project and both the Watch Window variables and Graphs are not available during execution but are when the processor is halted.

In order to develop software for motor control development the continuous refresh feature is critical for me, so any help will be greatly appreciated.

There is a similar issue already on the forums, (http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/112/p/11678/45581.aspx#45581), however none of the solutions there helped. Some screen shots of the watch window during execution and while halted are below if they help.

During execution - Values not visible (either with manual or continuous refresh)

Processor Halted - Values are visible

  • Michael,

    Have you enabled real-time mode?  Right click on your project and select debug properties.  Go to the target tab (if it is blank go back to the debugger tab say connect to exact CPU and select the 28x), on the target tab there is a section called real-time options.  Check the box to enable silicon real-time mode.

    If you have a debug session running you can also enable this from the Target menu.  Target->Advanced->EnableSiliconRealtimeMode

    Regards,

    John

     

  • John,

    Thanks for the reply - such a simple solution! Looks like I missed that part of the directions. Although it looks like CCS can't connect to the processor if real-time mode is enabled before connecting. I assume this is normal behavior though.

    Thanks again,

    Michael

  • Thomas,

    I believe we had an issue in 4.0.0 and 4.0.1 where real-time mode was not enabled on XDS100.  If you let the update manager update your CCS to 4.1.2 you should be able to enable real-time mode.

    Regards,

    John