Use the following steps to build and load the project and to set up the debug environment.
- Right-click on the project name and click Rebuild Project.
- The project builds successfully.
- In the Project Explorer, make sure the correct target configuration file is set as Active under targetConfigs.
- Click Run → Debug to launch a debugging session.
- 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 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 on Open and then browse to setupdebugenv_chX.js the script file located inside the project folder. This populates the watch window with the appropriate variables needed to debug the system.
- Click on the Continuous Refresh button
on the watch window to enable continuous update of values from the controller.