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 . . . . . . . . . . . . . . . . . . . . . . . . . 5–2
5.2 Reviewing the Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–3
5.3 Modifying the Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–6
5.4 Viewing Thread Execution with the Execution Graph . . . . . . . . . . 5–10
5.5 Changing and Viewing the Load . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–12
5.6 Analyzing Thread Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–15
5.7 Adding Explicit STS Instrumentation . . . . . . . . . . . . . . . . . . . . . . . 5–17
5.8 Viewing Explicit Instrumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–18
5.9 Things to Try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–20
5.10 Learning More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–20
Topic Page