SlideShare ist ein Scribd-Unternehmen logo
1 von 39
Getting Started with Code
Composer Studio v3.3 for
TMS320F2812
OBJECTIVE
To understand the basic features and
functions to create and debug a project in CCS
v3.3
To get familar with CCS v3.3
More in-depth explanations of Code
Composer Studio’s various features .
Ex: Breakpoints,watch window, single stepping,
memory etc..,
Finally, you will able to work with CCS v3.3
Introduction
Code Composer Studio is the Integrated
Design Environment for the Texas Instruments
DSP/DSC/MC.
DSP – TMS320C6745
DSC – TMS320F2812
MC – MSP430F5529
Code Composer Studio is the environment for
project development for all tools needed to
build an application for the Specific Target.
Contents at a Glance
Setting up a Target
Create a project
Bulid a Project
Running a project
Breakpoints
Source stepping
Watch window
Launching The CCS v3.3
 Click this icon shown on your
desktop.
 To launch Code Composer Studio
IDE for the first time, configure Code
Composer Studio for a specific target.
Setting Up The Target
 Double-click the
Setup CCStudio icon
on desktop.
Target Information
In Family, Select C28xx.
In platform, Select XDS 100 USB Emulator.
In Endianness, Select little.
Then Select F2812 XDS100 USB Emulator
factory board.
Select Add.
Select Save and Quit.
Creating a New Project
 Launch Code Composer Studio.
 From the CCStudio Project menu, choose New.
Project Name : Type the project name.
Location field : Type or browse to the folder where you
want to save project
By default, Project Type is set as Executable (.out) and
Target is set as the current configuration of CCS.
From the CCStudio File menu, choose New – Source
File.
Type the program in untitled window then , File –
Save. The Save As dialog box will appear. Choose our
project path and type practice.c – Click save.
Add files to the project by choosing Add Files to
Project from the Project menu. You can also right-click
the project in the Project View window on the left and
then select Add Files to Project.
Add practice.c, DSP281x_GlobalVariableDefs.c, and
F2812_EzDSP_RAM_lnk.cmd (this is a linker command
file that maps sections to memory) from the folder you
created.
Project - Build Options.
In compiler tab –
preprocessor -
Include Search Path(-i) :
C:tidcsc28DSP281xv1
20DSP281x_headersinc
lude - preprocessor path
In linker tab,
1. Select Basic –
a. stack size(-stack):
0x400
2. Select Libraries –
a. Search path(-i):
C:CCStudio_v3.3C2000cg
toolslib
b. Incl Libraries(-l):
rts2800_ml.lib
3. Click Ok.
Now that you have created a functional program, you
can build it. Use the Project - Rebuild All
The Rebuild All
Command is
mainly used to
rebuild the
project when the
project options
or any files in the
project have
changed.
An output window will show the build process and
status. When the build is finished, the output window
will display Build complete 0 errors, 0 warnings.
Connecting the Target
Note: Before doing this step be sure that power
cable and usb cable has plugged.
After the program has been built successfully,
connect the target by going to Debug - Connect.
The Target is now connected with code composer
studio, at once the disassembly window will open.
Status Displayed in status bar at the bottom of the
CCStudio window.
Load the Project
After the Target has been connected successfully,
load the program by going to File - Load Program. By
default, CCS IDE will create a subdirectory called
Debug within your project directory and store the
.out file in it. Select practice.out and click Open to
load the program.
File – Load Program – Debug – open – Practice.out –
open.
Note: Remember to reload the program by choosing
File - Reload Program if you rebuild the project after
making changes.
Go Main
To begin execution of the Main function,
Select, Debug – Go Main.
 The execution halts at the Main function and you
will notice the program counter (yellow arrow) in the
left margin beside the function. This is called the
selection margin.
BreakPoints
To set a breakpoint, place the cursor on the desired
line and press F9 or by selecting the Toggle
Breakpoint toolbar button.
When a breakpoint has been set, a red icon will
appear in the selection margin. To remove the
breakpoint, simply press F9 or the Toggle Breakpoint
toolbar button again.
 You can also open the Breakpoints Manager ( Debug
– Breakpoints ) to view all the breakpoints, set new
ones, or change the breakpoint action.
In practice.c, set a breakpoint at the line: k=i*i; As
execution was halted at the main function(in go main
step),
Select Debug – Run , you can press F5 , select the
Run toolbar button to run the program.
 Once execution reaches the breakpoint, it halts, as
displayed in the status bar at the bottom of the
CCStudio window.
After reached the breakpoint, it halts later you give
run or Single stepping. Now we will see the source
stepping to run further.
Source Stepping
Source stepping is only possible when program
execution has been halted. Since you halted at the
breakpoint, you can now execute the program line
by line using source stepping.
Step into the while(1) Loop function by selecting the
Source-Single Step button on the side toolbar. Step
through a few times to observe the executions. The
Step Over and Step Out functions are also available
below the Single Step button.
Assembly stepping is also available. Whereas source
stepping steps through the lines of code, assembly
stepping steps through the assembly instructions.
Now we will see something about Watch Window,
later we follow the execution of above example
program, then we understand about breakpoints ,
source stepping and watch window together.
Watch Window
In the debugging process, you should view the value
of the variables to ensure that the function executes
properly. Variables can be viewed in the watch
window when the CPU has been halted.
The watch window can be opened by selecting View
– Watch Window. The Watch Locals tab shows all the
relevant variables in the current execution. Once the
program reached breakpoint then , it halts.
Select , View – Watch Window., watch window box
appear in ccs itself
As you continue to Step Into the while loop, the
values of the variables change through each
execution.
Example: As per our previous discussion, program
execution reached breakpoint then it halts, we
opened the watch window to viewing the varibles.
Now the value of k is zero, then follow the below
steps to understand breakpoint, source stepping and
watch window.
 Degug – run (or) click this icon Now
see the watch window
Again Degug – run (or) click this icon
Now see the watch window
In addition, you can view the values of specific
variables by hovering the mouse pointer over the
variable or by placing the variables in the Watch1 tab.
Output Window
 The Output window is
located at the bottom
of the screen by default.
It can also be accessed
by View – Output
Window. By default, the
printf function displays
the same Output
window, showing
information such as the
contents of Stdout and
the build log.
Help
CCS provides many help tools through the Help
menu. Select Help Contents to search by contents.
Select Help Tutorial to access tutorials to guide you
through the CCStudio development process.
Select Help Web Resources to obtain the most
current help topics and other guidance. User
manuals are PDF files that provide information on
specific features or processes.
You can access updates and a number of optional
plug-ins through Help Update Advisor.
Presented by
S.THIYAGARAJAN,
Senior R & D Engg,
Pantech Solutions,
Chennai - 96
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
Dr.YNM
 

Was ist angesagt? (20)

Omron plc training
Omron plc trainingOmron plc training
Omron plc training
 
LECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSLECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORS
 
Vlsi stick daigram (JCE)
Vlsi stick daigram (JCE)Vlsi stick daigram (JCE)
Vlsi stick daigram (JCE)
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Microcontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basicsMicrocontroller pic 16f877 architecture and basics
Microcontroller pic 16f877 architecture and basics
 
Random process and noise
Random process and noiseRandom process and noise
Random process and noise
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)
 
Vlsi testing
Vlsi testingVlsi testing
Vlsi testing
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
 
Disassembler and simulators
Disassembler and simulatorsDisassembler and simulators
Disassembler and simulators
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
 
Rtos by shibu
Rtos by shibuRtos by shibu
Rtos by shibu
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing Techniques
 
CMOS Logic
CMOS LogicCMOS Logic
CMOS Logic
 
Project 8: Make Your Own Piano
Project 8: Make Your Own PianoProject 8: Make Your Own Piano
Project 8: Make Your Own Piano
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Signal classification of signal
Signal classification of signalSignal classification of signal
Signal classification of signal
 
Homomorphic speech processing
Homomorphic speech processingHomomorphic speech processing
Homomorphic speech processing
 
8051 (microcontroller)class1
8051 (microcontroller)class18051 (microcontroller)class1
8051 (microcontroller)class1
 

Andere mochten auch

Types of motors and control techniques using TI motor control kit
Types of motors and control techniques using TI motor control kitTypes of motors and control techniques using TI motor control kit
Types of motors and control techniques using TI motor control kit
Pantech ProLabs India Pvt Ltd
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
Dr.YNM
 

Andere mochten auch (12)

Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4Introduction to Code Composer Studio 4
Introduction to Code Composer Studio 4
 
Tms320 f2812
Tms320 f2812Tms320 f2812
Tms320 f2812
 
Led blinking using TMS320C6745
Led blinking using TMS320C6745Led blinking using TMS320C6745
Led blinking using TMS320C6745
 
Switch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSPSwitch & LED using TMS320C6745 DSP
Switch & LED using TMS320C6745 DSP
 
Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilogLcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilog
 
Brainsense -Brain computer Interface
Brainsense -Brain computer InterfaceBrainsense -Brain computer Interface
Brainsense -Brain computer Interface
 
Types of motors and control techniques using TI motor control kit
Types of motors and control techniques using TI motor control kitTypes of motors and control techniques using TI motor control kit
Types of motors and control techniques using TI motor control kit
 
Lcd
LcdLcd
Lcd
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Lcd interfacing
Lcd interfacingLcd interfacing
Lcd interfacing
 

Ähnlich wie Getting started with code composer studio v3.3 for tms320 f2812

Ähnlich wie Getting started with code composer studio v3.3 for tms320 f2812 (20)

How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
Debugging programs with Keil uVision
Debugging programs with Keil uVisionDebugging programs with Keil uVision
Debugging programs with Keil uVision
 
Dsplab v1
Dsplab v1Dsplab v1
Dsplab v1
 
ID E's features
ID E's featuresID E's features
ID E's features
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
Vb%20 tutorial
Vb%20 tutorialVb%20 tutorial
Vb%20 tutorial
 
codeblocks-instructions.pdf
codeblocks-instructions.pdfcodeblocks-instructions.pdf
codeblocks-instructions.pdf
 
Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorial
 
Prg 218 entire course
Prg 218 entire coursePrg 218 entire course
Prg 218 entire course
 
A d swincc15e
A d swincc15eA d swincc15e
A d swincc15e
 
C language industrial training report
C language industrial training reportC language industrial training report
C language industrial training report
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.com
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.com
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C in7-days
C in7-daysC in7-days
C in7-days
 
Cis 170 Education Organization -- snaptutorial.com
Cis 170   Education Organization -- snaptutorial.comCis 170   Education Organization -- snaptutorial.com
Cis 170 Education Organization -- snaptutorial.com
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
 

Mehr von Pantech ProLabs India Pvt Ltd

Mehr von Pantech ProLabs India Pvt Ltd (20)

Registration process
Registration processRegistration process
Registration process
 
Choosing the right processor for embedded system design
Choosing the right processor for embedded system designChoosing the right processor for embedded system design
Choosing the right processor for embedded system design
 
Brain Computer Interface
Brain Computer InterfaceBrain Computer Interface
Brain Computer Interface
 
Electric Vehicle Design using Matlab
Electric Vehicle Design using MatlabElectric Vehicle Design using Matlab
Electric Vehicle Design using Matlab
 
Image processing application
Image processing applicationImage processing application
Image processing application
 
Internet of Things using Raspberry Pi
Internet of Things using Raspberry PiInternet of Things using Raspberry Pi
Internet of Things using Raspberry Pi
 
Internet of Things Using Arduino
Internet of Things Using ArduinoInternet of Things Using Arduino
Internet of Things Using Arduino
 
Brain controlled robot
Brain controlled robotBrain controlled robot
Brain controlled robot
 
Brain Computer Interface-Webinar
Brain Computer Interface-WebinarBrain Computer Interface-Webinar
Brain Computer Interface-Webinar
 
Development of Deep Learning Architecture
Development of Deep Learning ArchitectureDevelopment of Deep Learning Architecture
Development of Deep Learning Architecture
 
Future of AI
Future of AIFuture of AI
Future of AI
 
Gate driver design and inductance fabrication
Gate driver design and inductance fabricationGate driver design and inductance fabrication
Gate driver design and inductance fabrication
 
Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745Median filter Implementation using TMS320C6745
Median filter Implementation using TMS320C6745
 
Waveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSPWaveform Generation Using TMS320C6745 DSP
Waveform Generation Using TMS320C6745 DSP
 
Interfacing UART with tms320C6745
Interfacing UART with tms320C6745Interfacing UART with tms320C6745
Interfacing UART with tms320C6745
 
Introduction to tms320c6745 dsp
Introduction to tms320c6745 dspIntroduction to tms320c6745 dsp
Introduction to tms320c6745 dsp
 
Brainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interfaceBrainsense -Introduction to brain computer interface
Brainsense -Introduction to brain computer interface
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Wearable Technology
Wearable TechnologyWearable Technology
Wearable Technology
 
MG3130 gesture recognition kit
MG3130 gesture recognition kitMG3130 gesture recognition kit
MG3130 gesture recognition kit
 

Kürzlich hochgeladen

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Getting started with code composer studio v3.3 for tms320 f2812

  • 1. Getting Started with Code Composer Studio v3.3 for TMS320F2812
  • 2. OBJECTIVE To understand the basic features and functions to create and debug a project in CCS v3.3 To get familar with CCS v3.3 More in-depth explanations of Code Composer Studio’s various features . Ex: Breakpoints,watch window, single stepping, memory etc.., Finally, you will able to work with CCS v3.3
  • 3. Introduction Code Composer Studio is the Integrated Design Environment for the Texas Instruments DSP/DSC/MC. DSP – TMS320C6745 DSC – TMS320F2812 MC – MSP430F5529 Code Composer Studio is the environment for project development for all tools needed to build an application for the Specific Target.
  • 4. Contents at a Glance Setting up a Target Create a project Bulid a Project Running a project Breakpoints Source stepping Watch window
  • 5. Launching The CCS v3.3  Click this icon shown on your desktop.  To launch Code Composer Studio IDE for the first time, configure Code Composer Studio for a specific target.
  • 6. Setting Up The Target  Double-click the Setup CCStudio icon on desktop.
  • 7. Target Information In Family, Select C28xx. In platform, Select XDS 100 USB Emulator. In Endianness, Select little. Then Select F2812 XDS100 USB Emulator factory board. Select Add. Select Save and Quit.
  • 8.
  • 9.
  • 10. Creating a New Project  Launch Code Composer Studio.  From the CCStudio Project menu, choose New.
  • 11. Project Name : Type the project name. Location field : Type or browse to the folder where you want to save project By default, Project Type is set as Executable (.out) and Target is set as the current configuration of CCS.
  • 12. From the CCStudio File menu, choose New – Source File.
  • 13. Type the program in untitled window then , File – Save. The Save As dialog box will appear. Choose our project path and type practice.c – Click save.
  • 14. Add files to the project by choosing Add Files to Project from the Project menu. You can also right-click the project in the Project View window on the left and then select Add Files to Project.
  • 15. Add practice.c, DSP281x_GlobalVariableDefs.c, and F2812_EzDSP_RAM_lnk.cmd (this is a linker command file that maps sections to memory) from the folder you created.
  • 16. Project - Build Options. In compiler tab – preprocessor - Include Search Path(-i) : C:tidcsc28DSP281xv1 20DSP281x_headersinc lude - preprocessor path
  • 17. In linker tab, 1. Select Basic – a. stack size(-stack): 0x400 2. Select Libraries – a. Search path(-i): C:CCStudio_v3.3C2000cg toolslib b. Incl Libraries(-l): rts2800_ml.lib 3. Click Ok.
  • 18. Now that you have created a functional program, you can build it. Use the Project - Rebuild All The Rebuild All Command is mainly used to rebuild the project when the project options or any files in the project have changed.
  • 19. An output window will show the build process and status. When the build is finished, the output window will display Build complete 0 errors, 0 warnings.
  • 20. Connecting the Target Note: Before doing this step be sure that power cable and usb cable has plugged. After the program has been built successfully, connect the target by going to Debug - Connect. The Target is now connected with code composer studio, at once the disassembly window will open. Status Displayed in status bar at the bottom of the CCStudio window.
  • 21.
  • 22. Load the Project After the Target has been connected successfully, load the program by going to File - Load Program. By default, CCS IDE will create a subdirectory called Debug within your project directory and store the .out file in it. Select practice.out and click Open to load the program. File – Load Program – Debug – open – Practice.out – open. Note: Remember to reload the program by choosing File - Reload Program if you rebuild the project after making changes.
  • 23.
  • 24. Go Main To begin execution of the Main function, Select, Debug – Go Main.  The execution halts at the Main function and you will notice the program counter (yellow arrow) in the left margin beside the function. This is called the selection margin.
  • 25.
  • 26. BreakPoints To set a breakpoint, place the cursor on the desired line and press F9 or by selecting the Toggle Breakpoint toolbar button. When a breakpoint has been set, a red icon will appear in the selection margin. To remove the breakpoint, simply press F9 or the Toggle Breakpoint toolbar button again.  You can also open the Breakpoints Manager ( Debug – Breakpoints ) to view all the breakpoints, set new ones, or change the breakpoint action.
  • 27.
  • 28. In practice.c, set a breakpoint at the line: k=i*i; As execution was halted at the main function(in go main step), Select Debug – Run , you can press F5 , select the Run toolbar button to run the program.  Once execution reaches the breakpoint, it halts, as displayed in the status bar at the bottom of the CCStudio window. After reached the breakpoint, it halts later you give run or Single stepping. Now we will see the source stepping to run further.
  • 29. Source Stepping Source stepping is only possible when program execution has been halted. Since you halted at the breakpoint, you can now execute the program line by line using source stepping.
  • 30. Step into the while(1) Loop function by selecting the Source-Single Step button on the side toolbar. Step through a few times to observe the executions. The Step Over and Step Out functions are also available below the Single Step button. Assembly stepping is also available. Whereas source stepping steps through the lines of code, assembly stepping steps through the assembly instructions. Now we will see something about Watch Window, later we follow the execution of above example program, then we understand about breakpoints , source stepping and watch window together.
  • 31. Watch Window In the debugging process, you should view the value of the variables to ensure that the function executes properly. Variables can be viewed in the watch window when the CPU has been halted. The watch window can be opened by selecting View – Watch Window. The Watch Locals tab shows all the relevant variables in the current execution. Once the program reached breakpoint then , it halts. Select , View – Watch Window., watch window box appear in ccs itself
  • 32.
  • 33. As you continue to Step Into the while loop, the values of the variables change through each execution. Example: As per our previous discussion, program execution reached breakpoint then it halts, we opened the watch window to viewing the varibles. Now the value of k is zero, then follow the below steps to understand breakpoint, source stepping and watch window.  Degug – run (or) click this icon Now see the watch window
  • 34.
  • 35. Again Degug – run (or) click this icon Now see the watch window
  • 36. In addition, you can view the values of specific variables by hovering the mouse pointer over the variable or by placing the variables in the Watch1 tab.
  • 37. Output Window  The Output window is located at the bottom of the screen by default. It can also be accessed by View – Output Window. By default, the printf function displays the same Output window, showing information such as the contents of Stdout and the build log.
  • 38. Help CCS provides many help tools through the Help menu. Select Help Contents to search by contents. Select Help Tutorial to access tutorials to guide you through the CCStudio development process. Select Help Web Resources to obtain the most current help topics and other guidance. User manuals are PDF files that provide information on specific features or processes. You can access updates and a number of optional plug-ins through Help Update Advisor.
  • 39. Presented by S.THIYAGARAJAN, Senior R & D Engg, Pantech Solutions, Chennai - 96 THANK YOU