SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Getting Started with Code
Composer Studio v4 for
TMS320F2812
OBJECTIVE
To understand the basic features and
functions to create and debug a project in CCS
v4
To get familar with CCS v4
More in-depth explanations of Code
Composer Studio’s various features .
Finally, you will able to work with CCS v4
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 a workspace location
Create a project
Add files to the Project
Create a Target Configuration file
Build a Project
Run a project
Console window
Launching The CCS v4
 Click this icon shown on your
desktop.
 To launch Code Composer Studio
IDE for the first time, configure Code
Composer Studio for a fixed
workspace location.
Setting The Workspace Location
 Double-click the p
CCStudio v4 icon on
desktop.
Note: Be sure that workspace location is empty for a
fresh project
Tick the use this as the default and do not ask
again(Optional).
Note: Again to get the workspace launcher at
startup. open ccs go to window – preference
– general – startup and shutdown – tick
“prompt for workspace on startup”.
Click ok.
The empty workspace editor will open.
Create a New Project
Launch Code
Composer
Studio.
From the
CCStudio File
menu, choose
New – CCS
Project.
In the Project Name
field : Type the project
name.
Tick the use default
Location Check box or
browse to the folder
you created as
workspace loaction.
Click Next.
In the Project type
field: Select C2000.
Tick Debug and
Release in configuration
box.
Click Next.
Again, Click Next.
Output
Type:Executable.
Device Variant:
TMS320C28XX &
TMS320F2812.
Click Finish.
CCS creates a
project.
From the CCStudio C/C++ Projects, Right click the led
[ Active – Debug ] New – Source File.
In the source file field, Type the source file name with
extension. (led.c)
Click Finish.
Type the program in led.c editorwindow then , File –
Save.
Add a Files to Project
After Creating the project and source file we must
add some addition files to our project.
These addition files may vary depend upon the
projects which we used.
Create/add new source files to your project by right-
clicking on the project in the “C/C++ Projects”
From the CCStudio C/C++ Projects, Right click the led
[ Active – Debug ] Select the Add files to project.
Then browse and select all the needed files.
Click Open. The selected all the files are added to
your project.
Create a Target Configuration File
From the CCStudio C/C++ Projects, Right click the led [ Active –
Debug ] New – Source File.
New Target Configuration dialog appears. Then Click
Finish
NewTargetConfiguration.ccxml
This file will help to communicate between hardware
and softeware. While connecting the hardware to
the software the target configuration file will run. If
any initialize needed we can add gel file additionally
in the target configuration.
 In General setup,
Connection : XDS 100 USB emulator version 1
Device : TMS320F2812( Target Device ).
Tick the TMS320F2812 & Click Save.
Build a Project
Before Building the project we must modify project
properties , add the include files and path according
to our usage.
From the CCStudio C/C++ Projects, Right click the led
[ Active – Debug ] – Properties.
Compiler Option
In C/C++ Build, go to C2000 compiler
– Include Options (Add dir to #include search path(--
include_path,-I)) select this add icon and add
the following two path by indivdually.
"${XDAIS_CG_ROOT}/packages/ti/xdais“
"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/in
clude"
Linker Option
IN C/C++ Build, go to c2000 linker
Basic option - stack size : 0x400.
Include lib or cmd file as input (--library,-I):
"rts2800_ml.lib"
File search path (Add <dir> to library search
path(-- include_path,-i)) select this add icon
and add the following two path by indivdually.
"${PROJECT_ROOT}"
"C:ProgramFilesTexasInstrumentsccsv4toolscom
pilerc2000lib"
Build a Project
From the CCStudio C/C++ Projects, Right click the led
[ Active – Debug ] – Build Project or Rebuild Project.
Note: Once the project is successfully build you will
get 0 Errors. If Errors arise check the code and
project properties then rebuild the project.
Run a project
Target – Debug Active Project.
Note: at this step, Target will connect, gel file will
run, led.out will load to target then finally Keep the
cursor at main() of program to start execute.
This is Debug workspace., at this we can debug a
code using breakpoints, single stepping, watch window,
memory etc..,
Target – Run.
For led code, check the output at on board. The Leds
is will on and off with few delay.
Target – Halt.
Target – Terminate all.
Again, the ccs will return to edit workspace from
debug workspce.
Console Window
The Output window is located at the bottom
of the screen by default. By default, the printf
function displays in console window, showing
information such as the contents of Stdout
and the build log.
H elp
CCS provides many help tools through the H elp
menu. Select H elp Contents to search by contents.
Select H elp Tutorial to access tutorials to guide you
through the CCStudio development process.
Select H elp Web Resources to obtain the most
current help topics and other guidance. U ser
manuals are PDF files that provide information on
specific features or processes.
Y ou can access updates and a number of optional
plug-ins through H elp U pdate Advisor.
Presented by
S.THIYAGARAJAN,
Senior R & D Engg,
Pantech Solutions,
Chennai - 96
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

VLSI Training presentation
VLSI Training presentationVLSI Training presentation
VLSI Training presentation
Daola Khungur
 

Was ist angesagt? (20)

Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report Digital signal Processing all matlab code with Lab report
Digital signal Processing all matlab code with Lab report
 
PCB DESIGN USING KICAD || SHASHANK M GOWDA
PCB DESIGN USING KICAD || SHASHANK M GOWDA  PCB DESIGN USING KICAD || SHASHANK M GOWDA
PCB DESIGN USING KICAD || SHASHANK M GOWDA
 
Soc architecture and design
Soc architecture and designSoc architecture and design
Soc architecture and design
 
Vlsi design-manual
Vlsi design-manualVlsi design-manual
Vlsi design-manual
 
Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manual
 
Rc delay modelling in vlsi
Rc delay modelling in vlsiRc delay modelling in vlsi
Rc delay modelling in vlsi
 
Vlsi design
Vlsi designVlsi design
Vlsi design
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
DSP Processor
DSP Processor DSP Processor
DSP Processor
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Silicon on Insulator (SOI) Technology
Silicon on Insulator (SOI) TechnologySilicon on Insulator (SOI) Technology
Silicon on Insulator (SOI) Technology
 
Pspice Introduction
Pspice IntroductionPspice Introduction
Pspice Introduction
 
Digital Signal Processing Lab Manual ECE students
Digital Signal Processing Lab Manual ECE studentsDigital Signal Processing Lab Manual ECE students
Digital Signal Processing Lab Manual ECE students
 
VLSI Training presentation
VLSI Training presentationVLSI Training presentation
VLSI Training presentation
 
Signals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 BatchSignals And Systems Lab Manual, R18 Batch
Signals And Systems Lab Manual, R18 Batch
 
Lecture 5: The Convolution Sum
Lecture 5: The Convolution SumLecture 5: The Convolution Sum
Lecture 5: The Convolution Sum
 
Noise Analysis of Trans-impedance Amplifier (TIA) in Variety Op Amp for use i...
Noise Analysis of Trans-impedance Amplifier (TIA) in Variety Op Amp for use i...Noise Analysis of Trans-impedance Amplifier (TIA) in Variety Op Amp for use i...
Noise Analysis of Trans-impedance Amplifier (TIA) in Variety Op Amp for use i...
 
VLSI Introduction to PSPICE
VLSI Introduction to PSPICEVLSI Introduction to PSPICE
VLSI Introduction to PSPICE
 
Ardui no
Ardui no Ardui no
Ardui no
 
Logic Simulation, Modeling, and Testing
Logic Simulation, Modeling, and TestingLogic Simulation, Modeling, and Testing
Logic Simulation, Modeling, and Testing
 

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 (13)

Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812
 
Tms320 f2812
Tms320 f2812Tms320 f2812
Tms320 f2812
 
Tms320F2812 Digital I/0
Tms320F2812 Digital I/0Tms320F2812 Digital I/0
Tms320F2812 Digital I/0
 
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 v4 for tms320 f2812

Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
meharikiros2
 

Ähnlich wie Getting started with code composer studio v4 for tms320 f2812 (20)

Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorial
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
Visual c++ demo
Visual c++ demoVisual c++ demo
Visual c++ demo
 
Containers Lab
Containers Lab Containers Lab
Containers Lab
 
generate IP CORES
generate IP CORESgenerate IP CORES
generate IP CORES
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C in7-days
C in7-daysC in7-days
C in7-days
 
Simple build tool
Simple build toolSimple build tool
Simple build tool
 
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
C++ was developed by Bjarne Stroustrup, as an extension to the C language. cp...
 
C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...C++ helps you to format the I/O operations like determining the number of dig...
C++ helps you to format the I/O operations like determining the number of dig...
 
C++Basics2022.pptx
C++Basics2022.pptxC++Basics2022.pptx
C++Basics2022.pptx
 
Prg 218 entire course
Prg 218 entire coursePrg 218 entire course
Prg 218 entire course
 
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptxIntroduction-to-C-Part-1.pptx
Introduction-to-C-Part-1.pptx
 
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJIntroduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
Introduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).docIntroduction-to-C-Part-1 (1).doc
Introduction-to-C-Part-1 (1).doc
 
Introduction to Objective - C
Introduction to Objective - CIntroduction to Objective - C
Introduction to Objective - C
 
Introduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdfIntroduction-to-C-Part-1.pdf
Introduction-to-C-Part-1.pdf
 
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
 

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
 
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
 
Introduction to Brain Computer Interface
Introduction to Brain Computer InterfaceIntroduction to Brain Computer Interface
Introduction to Brain Computer Interface
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Getting started with code composer studio v4 for tms320 f2812

  • 1. Getting Started with Code Composer Studio v4 for TMS320F2812
  • 2. OBJECTIVE To understand the basic features and functions to create and debug a project in CCS v4 To get familar with CCS v4 More in-depth explanations of Code Composer Studio’s various features . Finally, you will able to work with CCS v4
  • 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 a workspace location Create a project Add files to the Project Create a Target Configuration file Build a Project Run a project Console window
  • 5. Launching The CCS v4  Click this icon shown on your desktop.  To launch Code Composer Studio IDE for the first time, configure Code Composer Studio for a fixed workspace location.
  • 6. Setting The Workspace Location  Double-click the p CCStudio v4 icon on desktop.
  • 7. Note: Be sure that workspace location is empty for a fresh project
  • 8. Tick the use this as the default and do not ask again(Optional). Note: Again to get the workspace launcher at startup. open ccs go to window – preference – general – startup and shutdown – tick “prompt for workspace on startup”. Click ok.
  • 9. The empty workspace editor will open.
  • 10. Create a New Project Launch Code Composer Studio. From the CCStudio File menu, choose New – CCS Project.
  • 11. In the Project Name field : Type the project name. Tick the use default Location Check box or browse to the folder you created as workspace loaction. Click Next.
  • 12. In the Project type field: Select C2000. Tick Debug and Release in configuration box. Click Next. Again, Click Next.
  • 14. From the CCStudio C/C++ Projects, Right click the led [ Active – Debug ] New – Source File.
  • 15. In the source file field, Type the source file name with extension. (led.c) Click Finish.
  • 16.
  • 17. Type the program in led.c editorwindow then , File – Save.
  • 18. Add a Files to Project After Creating the project and source file we must add some addition files to our project. These addition files may vary depend upon the projects which we used. Create/add new source files to your project by right- clicking on the project in the “C/C++ Projects”
  • 19. From the CCStudio C/C++ Projects, Right click the led [ Active – Debug ] Select the Add files to project.
  • 20. Then browse and select all the needed files.
  • 21. Click Open. The selected all the files are added to your project.
  • 22. Create a Target Configuration File From the CCStudio C/C++ Projects, Right click the led [ Active – Debug ] New – Source File.
  • 23. New Target Configuration dialog appears. Then Click Finish
  • 24. NewTargetConfiguration.ccxml This file will help to communicate between hardware and softeware. While connecting the hardware to the software the target configuration file will run. If any initialize needed we can add gel file additionally in the target configuration.  In General setup, Connection : XDS 100 USB emulator version 1 Device : TMS320F2812( Target Device ). Tick the TMS320F2812 & Click Save.
  • 25.
  • 26. Build a Project Before Building the project we must modify project properties , add the include files and path according to our usage. From the CCStudio C/C++ Projects, Right click the led [ Active – Debug ] – Properties.
  • 27. Compiler Option In C/C++ Build, go to C2000 compiler – Include Options (Add dir to #include search path(-- include_path,-I)) select this add icon and add the following two path by indivdually. "${XDAIS_CG_ROOT}/packages/ti/xdais“ "C:/tidcs/c28/DSP281x/v120/DSP281x_headers/in clude"
  • 28.
  • 29. Linker Option IN C/C++ Build, go to c2000 linker Basic option - stack size : 0x400. Include lib or cmd file as input (--library,-I): "rts2800_ml.lib" File search path (Add <dir> to library search path(-- include_path,-i)) select this add icon and add the following two path by indivdually. "${PROJECT_ROOT}" "C:ProgramFilesTexasInstrumentsccsv4toolscom pilerc2000lib"
  • 30.
  • 31. Build a Project From the CCStudio C/C++ Projects, Right click the led [ Active – Debug ] – Build Project or Rebuild Project. Note: Once the project is successfully build you will get 0 Errors. If Errors arise check the code and project properties then rebuild the project.
  • 32. Run a project Target – Debug Active Project. Note: at this step, Target will connect, gel file will run, led.out will load to target then finally Keep the cursor at main() of program to start execute.
  • 33.
  • 34.
  • 35.
  • 36. This is Debug workspace., at this we can debug a code using breakpoints, single stepping, watch window, memory etc..,
  • 37. Target – Run. For led code, check the output at on board. The Leds is will on and off with few delay. Target – Halt.
  • 38.
  • 40. Again, the ccs will return to edit workspace from debug workspce.
  • 41. Console Window The Output window is located at the bottom of the screen by default. By default, the printf function displays in console window, showing information such as the contents of Stdout and the build log.
  • 42. H elp CCS provides many help tools through the H elp menu. Select H elp Contents to search by contents. Select H elp Tutorial to access tutorials to guide you through the CCStudio development process. Select H elp Web Resources to obtain the most current help topics and other guidance. U ser manuals are PDF files that provide information on specific features or processes. Y ou can access updates and a number of optional plug-ins through H elp U pdate Advisor.
  • 43. Presented by S.THIYAGARAJAN, Senior R & D Engg, Pantech Solutions, Chennai - 96 THANK YOU