<< Chapter < Page Chapter >> Page >
A brief tutorial on how to get started using Code Composer Studio.

Introduction

This is a brief tutorial over Code Composer Studio which is a programming environment used to implement various algorithms and load code onto a DSP. If you would like a more in-depth tutorial, please feel free to click on Help -->Tutorial in Code Composer.

Starting code composer studio

Before starting, it would be a good idea to create a folder where you will be saving your project files. Label the folder ELEC424_Tutorial .

To open Code Composer Studio in a Windows 2000 system, click on Start and select Programs --> Texas Instruments --> Code Composer Studio DSK Tools 2 (‘C2000) --> Code Composer Studio .

You should see the following screen:

Creating a file

To create a new source code file, click on File --> Source File . A window titled ‘ Untitled1 ’ will appear within the Composer environment:

You can double-click on the ‘ Untitled1 ’ window to make it larger.

To save your file, click on File --> Save . The following prompt will appear:

There are several Save as type… options. Choose the appropriate one for your code. It will give your file the proper file extension. It is also lets the linker know when you compile your code what kind of language the file is written in.

When you are done, click Save .

Creating a new project

After you have finished creating the files you need to run on the DSP, you will now want to create a project that will include all the files. Select Project --> New…

The following prompt will appear:

Fill in the project name in Project Name . Browse to the folder you created for the project in Location . Make sure you select Executable (.out) in Project Type , and select TMS320C28XX in Target . When you are done, click Finish .

Example.pjt will appear in the left-hand side of the Composer environment. Click on the ‘ + ’ to expand the project:

Before expanding project
After expanding project

Adding new files to the project

In order to add new files, select Project --> Add Files to Project… The following prompt will appear:

Select the file you want to add. To make it easier, you can narrow your search of a particular file by choosing which type of file you want in the Files of type…

When you are done, click Open .

You should now see the file after clicking on the ‘ + ’ in the left-hand window:

Compiling files and building projects

Once you have added all the files you want to be included in your project, you will now need to build your project. Select Project --> Rebuild All . You should see the following window at the bottom of the Code Composer Studio Environment:

If there are errors in your code, they will be listed with the corresponding line numbers. Correct them and rebuild your project.

Loading/reloading programs

After your code has been successfully compiled and built, you must now load your program onto the DSP. Select File --> Load Program… You will see the following prompt dialog:

When you rebuild your project, Code Composer Studio is set at default to create a new folder in your directory called Debug . This is where the executable file is created. Double-click on the Debug folder and you should see your *.out file:

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, High-speed and embedded systems design (under construction). OpenStax CNX. Feb 18, 2004 Download for free at http://cnx.org/content/col10212/1.12
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'High-speed and embedded systems design (under construction)' conversation and receive update notifications?

Ask