Specifications
2-1
Chapter 2
Developing a Simple Program
This chapter introduces Code Composer Studio and shows the basic process
used to create, build, debug, and test programs.
In this chapter, you create and test a simple program that displays a hello
world message.
This tutorial introduces you to some of the key features of Code Composer
Studio. The intention is not to provide an exhaustive description of every
feature. Instead, the objective is to prepare you to begin DSP software
development with Code Composer Studio.
In order to use this tutorial, you should have already installed Code Composer
Studio according to the installation instructions. It is recommended that you
use Code Composer Studio with a target board rather than with the simulator.
If you have Code Composer and the Code Generation Tools, but not Code
Composer Studio, or if you are using the simulator, you can perform the steps
in Chapter 2 and Chapter 4 only.
2.1 Creating a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–2
2.2 Adding Files to a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–3
2.3 Reviewing the Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–4
2.4 Building and Running the Program . . . . . . . . . . . . . . . . . . . . . . . . . . 2–5
2.5 Changing Program Options and Fixing Syntax Errors . . . . . . . . . . 2–7
2.6 Using Breakpoints and the Watch Window. . . . . . . . . . . . . . . . . . . . 2–9
2.7 Using the Watch Window with Structures. . . . . . . . . . . . . . . . . . . . 2–11
2.8 Profiling Code Execution Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–12
2.9 Things to Try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–14
2.10 Learning More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–14
Topic Page