
Build/Compile a Project Using Code Composer Studio
A.2
Build/Compile a Project Using Code Composer Studio
After a project is created with all source codes developed, one can compile the project using CCS. On the
matter how to create a project, please refer to , Code Composer Studio Development Tools v3.3 – Getting
Started Guide. The example below is to describe typical compile process for UCD3138 firmware. The
project file name is “Cyclone.pjt” in a folder named “Training 02”. The final result is a file with extension
“.x0”. As the project name is “Cyclone.pjt”, the final file name “Cyclone.x0” is chosen. “Cyclone.x0” is the
final firmware code to be downloaded to the UCD3138 device memory for UCD3138 intended functional
operation. Here are the steps for a typical compile process.
1. Copy file folder “Training 02” in any desired directory inside your PC.
2. Launch CCS and open the CCS project file “Cyclone.pjt” from the directory where “Training 02” was
saved. The following window appears shown in
.
3. Note that as project “Cyclone.pjt” has been created and orientated for UCD3138 functions, CCS can
be launched without connecting an emulator.
4. From CCS project window, Right click on “Cyclone.pjt (Debug)” and then select “Build Options…” the
window as shown in
appears when the “Linker” tab is selected.
5.
shows the project “Build Options” have been selected to create the file “Cyclone.out” from
CCS.
6. The next step is to convert file “Cyclone.out” to “Cyclone.x0”. “Cyclone.x0” will be the final firmware
code to be downloaded to the UCD3138 device memories. To convert “Cyclone.out” to “Cyclone.x0”,
the first step is to click “General” tab under “Build Options for Cyclone.pjt (Debug)”, as
shown, under the “Build Command”, confirm the file to be converted is “Cyclone.out”, then click ok to
close “Build Options”.
7. Steps 4, 5, and 6 are only necessary once per project. If using a TI developed firmware as a platform,
these steps have been set up and no need to repeat.
8. As shown in
, select “Project M Rebuild All”. This generates the file “Cyclone.x0” based on
“Cyclone.out”, and the file of “Cyclone.x0” is saved inside the folder where “Cyclone.pjt” is saved.
Figure 25. Open a Project File “Cyclone.pjt” – Initial Open
27
SLUUA80 – January 2013
Summary of Using Code Composer Studio v3.3
Copyright © 2013, Texas Instruments Incorporated