Datasheet
www.ti.com
Build and Compile a Project Using Code Composer Studio
A.2 Build and Compile a Project Using Code Composer Studio
After a project is created with all source codes developed, one can compile the project using CCS.
A.2.1 Creating a Project
The example below describes the typical compile process for UCD3138 firmware. The project file name is
Cyclone.pjt and it is located in the folder named Training 02. The final result of the compile process is a
file with the file extension of .x0. Because the project name is Cyclone.pjt, the final file name of Cyclone.x0
is naturally chosen. Cyclone.x0 is the final firmware code downloaded to the UCD3138 device memory for
the UCD3138 intended functional operation. The following are the steps for a typical compile process:
1. Copy file folder Training 02 and paste into any desired directory inside the PC.
2. Launch CCS and open the CCS project file Cyclone.pjt from the directory where Training 02 was
saved. The window shown in Figure 15 appears.
• Note, because the project Cyclone.pjt has been created and designed for UCD3138 functions,
CCS can be launched without connecting an emulator.
3. From CCS project window, Right click on Cyclone.pjt (Debug) and then select Build Options. The
window shown in Figure 16 appears when the Linker tab is selected.
• Figure 16 shows the project Build Options have been selected to create the file Cyclone.out from
CCS.
4. Convert the file Cyclone.out to Cyclone.x0. Cyclone.x0 is the final firmware code downloaded to the
UCD3138 device memories. To convert Cyclone.out to Cyclone.x0, first click theGeneral tab under
Build Options for Cyclone.pjt (Debug), as shown in Figure 17. Second, under the Build Command,
confirm that the file to be converted is Cyclone.out. Third, click ok to close Build Options.
Steps 4, 5, and 6 are only necessary once per project. If using a platform with TI developed
firmware, these steps have been set up and there is no need to repeat.
5. Select Project Rebuild All, as shown in Figure 18. Project Rebuild All generates the file Cyclone.x0
based on Cyclone.out, and saves the file of Cyclone.x0 inside the folder where Cyclone.pjt is saved.
Figure 15. Open a Project File with Example of Cyclone.pjt – Initial Open.
17
SLUU886A–February 2012–Revised July 2013 Summary of Using Code Composer Studio v3.3
Submit Documentation Feedback
Copyright © 2012–2013, Texas Instruments Incorporated