5.2.2.3.2 Building and Loading the Project and Setting up Debug Environment
Now, right-click on the project name and click Rebuild Project.
The project will build successfully.
Click Run → Debug to launch a debugging session. In case of dual-CPU
devices, a window may appear for the user to select the CPU on which the debug
is to be performed. In this case, select CPU1.
The project will then load on the device and the CCS debug view will become active. The code will halt at the start of the main routine.
To add the variables in the watch/expressions window, click View → Scripting
Console to open the scripting console dialog box. On the upper right corner of
this console, click open to browse to the setupdebugenv_lab3.js
script file located inside the project folder. This will populate the watch
window with the appropriate variables needed to debug the system.
Click the Continuous Refresh button on the watch window to
enable continuous update of values from the controller.
Enable real-time mode by hovering your mouse on the buttons on the horizontal toolbar and clicking the button.