3.2.2.4.4.1 Building and Loading the Project and Setting Up Debug
Open the vienna_settings.h file, set VIENNA_INCR_BUILD to 4,
and set VIENNA_VBUS_REF_SET_VOLTS to 650.
Right click the project name and click Rebuild Project. The project builds successfully.
Click Run → Debug; this launches a debugging session. In the case
of dual CPU devices, if a window appears indicating a CPU must be selected, then
perform a debug. In this case, select CPU1. The project then loads on the device
and CCS debug view becomes active. The code halts at the start of the main
routine.
To add the variables in the Watch or 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_build4.js script file located inside the
project folder. This file populates the Watch window with 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. Figure 3-29 illustrates the Watch window.
Figure 3-29 Build Level 4:
Expressions View
Enable real-time mode by hovering the mouse on the buttons on the horizontal toolbar and clicking the button.