Specifications

5-1
Chapter 5
Debugging Program Behavior
This chapter introduces techniques for debugging a program and several
DSP/BIOS plug-ins and modules.
In this chapter, you modify the example from Chapter 4 to create a program
that schedules its functions and allows for multi-threading. You view
performance information for debugging purposes. You also use more features
of DSP/BIOS, including the Execution Graph, the real-time analysis control
panel (RTA Control Panel), the Statistics View, and the CLK, SWI, STS, and
TRC modules.
This chapter requires a physical board and cannot be carried out using a
software simulator. Also, this chapter requires the DSP/BIOS components of
Code Composer Studio.
5.1 Opening and Examining the Project . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.2 Reviewing the Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.3 Modifying the Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
5.4 Viewing Thread Execution with the Execution Graph . . . . . . . . . . 510
5.5 Changing and Viewing the Load . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
5.6 Analyzing Thread Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
5.7 Adding Explicit STS Instrumentation . . . . . . . . . . . . . . . . . . . . . . . 517
5.8 Viewing Explicit Instrumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 518
5.9 Things to Try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
5.10 Learning More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
Topic Page