TIDUEG2C March   2019  – March 2020

 

  1.   96

Building and Loading the Project and Setting up Debug Environment

  1. Now, right-click on the project name and click “Rebuild Project”.
  2. The project will build successfully.
  3. 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.
  4. 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.
  5. 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" to browse to thesetupdebugenv_lab3.js” script file located inside the project folder. This will populate the watch window with the appropriate variables needed to debug the system.
  6. Click on the Continuous Refresh button TIDM-02002 tidm-02002-continuous-refresh.png on the watch window to enable continuous update of values from the controller.
  7. Enable real-time mode by hovering your mouse on the buttons on the horizontal toolbar and clicking the TIDM-02002 tidm-02002-real-time-enable.png  TIDM-02002 tidm-02002-real-time-enable-dialog.png button.