ccs4 tutorial
TRANSCRIPT
![Page 1: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/1.jpg)
ECE 6277 (FALL 2010)
GEORGIA INSTITUTE OF TECHNOLOGY
CODE COMPOSER STUDIO 4.0 TUTORIAL
![Page 2: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/2.jpg)
INTRODUCTION
Code Composer Studio (CCS) is the integrated development environment for TI's DSPs, microcontrollers and application processors.
Includes a suite of tools used to develop and debug embedded applications.
Includes compilers for each of TI's device families, source code editor, project build environment, debugger, profiler, simulators and many other features.
This course will cover embedded software development for TI’s TMS320C55x DSP’s
![Page 3: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/3.jpg)
Code Composer Studio
CCS includes a C compiler, an assembler, a linker, an archiver, a hex conversion utility, a cross-reference utility, and an absolute lister.
C55x C compiler: Generates assembly source code from the C source files.
Assembler: Translates assembly source files, either handcoded by DSP programmers or generated by the C compiler, into machine language object files.
![Page 4: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/4.jpg)
Code Composer Studio
Assembly tools: Use the common object file format (COFF) to facilitate modular programming.
Archiver: Allows users to collect a group of files into a single archived file.
Linker: Combines object files and libraries into a single executable COFF object module.
Hex conversion utility: Converts a COFF object file into a format that can be downloaded to an EPROM programmer or a flash memory program utility.
![Page 5: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/5.jpg)
DSK 5510 Board
![Page 6: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/6.jpg)
Creating a New project
![Page 7: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/7.jpg)
Creating a New project
Type the Project Name here
![Page 8: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/8.jpg)
Creating a New project
Select Project Type to be C5500
Enable both Debug and Release Configurations
![Page 9: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/9.jpg)
Creating a New Project
Output Type -> ExecutableDevice Variant -> TMS320C55x-> TMS320C5501Linker Command File -> link.cmdRuntime Support Library -> rts55x.lib
![Page 10: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/10.jpg)
Creating a New Source File
Give a name to the file. Include the extension to the filename (.c, .asm)
![Page 11: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/11.jpg)
Build Settings
Right click on the Project Name and go to Build Properties
Tool Settings -> C5500 Compiler -> Runtime Model Options -> select Memory Model
![Page 12: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/12.jpg)
Building the project
![Page 13: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/13.jpg)
Creating a Target Configuration File
Choose C55xx Rev 3.0 CPU Cycle Accurate Simulator and save
![Page 14: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/14.jpg)
Debugging
![Page 15: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/15.jpg)
Running the Code
![Page 16: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/16.jpg)
Viewing Registers, Memory, Variables
![Page 17: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/17.jpg)
Viewing Registers, Memory, Variables
![Page 18: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/18.jpg)
Profile Setup
View -> Other
![Page 19: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/19.jpg)
Profile Setup
Select Activate at the bottom
Check all the activities
Run the code
View the Profile
![Page 20: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/20.jpg)
Viewing Profile
Tools-> Profile-> View Function Profile Results
![Page 21: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/21.jpg)
Viewing Profile
![Page 22: CCS4 Tutorial](https://reader033.vdocuments.net/reader033/viewer/2022052820/552537c5550346ca6e8b470c/html5/thumbnails/22.jpg)
Links
http://processors.wiki.ti.com/index.php/CCSv4_Getting_Started_Guide
Go Jackets!!!!!!!