TIDUE53J March 2018 – February 2025 TMS320F28P550SG , TMS320F28P550SJ , TMS320F28P559SG-Q1 , TMS320F28P559SJ-Q1
To build the project, right-click on the project name and click Rebuild Project. The project builds successfully.
To load the project, first make sure in the Project Explorer the correct target configuration file is set as Active under targetConfigs (*.ccxml file). Then, click Run → Debug to launch a debugging session. In case of dual-CPU devices, a window can appear for the user to select the CPU on which the debug is to be performed. In this case, select CPU1. The project then loads on the device and the CCS debug view becomes active. The code halts at the start of the main routine.
To debug the system, monitor the variables in the
watch/expressions window. To populate this window
with the correct variables, click View →
Scripting Console to open the scripting
console dialog box. On the upper right corner of
this console, click on Open and then browse
to the
setupdebugenv_lab<Number>.js
script file located inside the project folder.
This populates the watch window with the
appropriate variables needed to debug the system.
Enable Continuous Refresh button on the watch
window to enable continuous update of values from
the controller.
Real-time emulation is a special emulation feature that allows windows within Code Composer Studio to be updated while the MCU is running. This allows graphs and watch views to updated, but also allows the user to change values in watch or memory windows, and see the effect of these changes in the system without halting the processor. To enable real-time mode click on this button on the top bar of CCS. If a message box appears, select YES to enable debug events. This sets bit 1 (DGBM bit) of status register 1 (ST1) to a 0. DGBM is the debug enable mask bit. When the DGBM bit is set to 0, memory and register values can be passed to the host processor for updating the debugger windows.
In different labs, sometimes the currents and
voltages measured or the control variables need to
be verified by viewing the data in the graph
window. For this Graph window can be used which in
conjunction with a piece of code that runs on the
controller can show a snapshot of how the values
are being sensed by the controller. The values are
logged by the datalogger typically in the slower
ISRs. To import the graph into the CCS view select
Tools → Graph → DualTime, and click Import and
point to the graph1.GraphProp
file inside the project folder. Two graphs appear
in CCS. Click Continuous Refresh on these graphs.
A second set of graphs can also be added by
importing the graph2.GraphProp file.