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.

Peripheral Watch Scripts in CCSv4

Hi All -

 

I hope that posting this question to the C2000 area will be relevant to the group.

I have just successfully installed CCS4 and converted an existing CCS3.3 project.  I can run the code generation tools and the debugger but I am missing one of my favorite debug tools.  In CCS3.3 under the GEL menu I usually see scripts to add peripheral block registers to the watch window; for example Watch ADC Registers, Watch ePWM Registers, etc.  Are similar scripts available for CCSv4 for the C2000 targets?  If so, can someone point me to the appropriate setup documentation? I am using a x2806 target board.

Thanks in advance,

Gary

  • Hi All -

    To answer my post above after some searching the TI Wiki at http://www.tiexpressdsp.com/index.php/C2000_Getting_Started_with_Code_Composer_Studio_v4 I found the following paragraph:

    Register WatchAdd() in Device GEL Replaced by View->Registers

    The C2000 device GEL files include “WatchAdd()” functions to all the peripheral registers, allowing the user to quickly add any peripheral’s registers to the watch window in CCSv3.x when not using the TI-provided C/C++ header files. Because the WatchAdd() function no longer works in CCSV4, the peripheral registers are now available via the Registers window, which can be accessed from "View->Registers". If using the TI-provided C/C++ header files (downloadable from device product folders on the TI website) while debugging, register structures defined in the header files can also be added to the Watch Window same as before. Expanding these register structures allows access to individual bit fields as well (i.e., adding "AdcRegs" to the Watch Window, will display all the ADC registers and their bit field expansions).

    As described in the Wiki reference above, I was able to access the peripheral register contents in the watch window.  The following screenshot from the CCSv4 Debug View show the pop-up menu that appears when right-clicking in the watch window and choosing "Add Global Variables..."   From this menu I could choose the appropriate peripheral structure, for example  "Epwm1Regs" that is declared in "DSP280x_GlobalVariableDefs.c" and described in detail in the TI Header File "DSP280x_EPwm.h" .

    I hope this helps others migrating to CCSv4.

    -Gary