ccs4 tutorial

22
ECE 6277 (FALL 2010) GEORGIA INSTITUTE OF TECHNOLOGY CODE COMPOSER STUDIO 4.0 TUTORIAL

Upload: raj-parab

Post on 08-Apr-2015

961 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: CCS4 Tutorial

ECE 6277 (FALL 2010)

GEORGIA INSTITUTE OF TECHNOLOGY

CODE COMPOSER STUDIO 4.0 TUTORIAL

Page 2: CCS4 Tutorial

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

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

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

DSK 5510 Board

Page 6: CCS4 Tutorial

Creating a New project

Page 7: CCS4 Tutorial

Creating a New project

Type the Project Name here

Page 8: CCS4 Tutorial

Creating a New project

Select Project Type to be C5500

Enable both Debug and Release Configurations

Page 9: CCS4 Tutorial

Creating a New Project

Output Type -> ExecutableDevice Variant -> TMS320C55x-> TMS320C5501Linker Command File -> link.cmdRuntime Support Library -> rts55x.lib

Page 10: CCS4 Tutorial

Creating a New Source File

Give a name to the file. Include the extension to the filename (.c, .asm)

Page 11: CCS4 Tutorial

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

Building the project

Page 13: CCS4 Tutorial

Creating a Target Configuration File

Choose C55xx Rev 3.0 CPU Cycle Accurate Simulator and save

Page 14: CCS4 Tutorial

Debugging

Page 15: CCS4 Tutorial

Running the Code

Page 16: CCS4 Tutorial

Viewing Registers, Memory, Variables

Page 17: CCS4 Tutorial

Viewing Registers, Memory, Variables

Page 18: CCS4 Tutorial

Profile Setup

View -> Other

Page 19: CCS4 Tutorial

Profile Setup

Select Activate at the bottom

Check all the activities

Run the code

View the Profile

Page 20: CCS4 Tutorial

Viewing Profile

Tools-> Profile-> View Function Profile Results

Page 21: CCS4 Tutorial

Viewing Profile

Page 22: CCS4 Tutorial

Links

http://processors.wiki.ti.com/index.php/CCSv4_Getting_Started_Guide

Go Jackets!!!!!!!