+ All Categories
Home > Documents > Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11,...

Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11,...

Date post: 23-Dec-2015
Category:
Upload: alexandra-cobb
View: 213 times
Download: 0 times
Share this document with a friend
Popular Tags:
44
Getting Started with Getting Started with Code Composer Studio™ Code Composer Studio™ IDE v2.0 IDE v2.0 Presentation begins live from Presentation begins live from Dallas Dallas July 11, 7:00 a.m. and 11:00 July 11, 7:00 a.m. and 11:00 a.m. a.m. Central Daylight Time (CDT) Central Daylight Time (CDT) Code Composer Studio, TMS320, CodeMaestro, C6000, eXpressDSP, DSP/BIOS and RTDX are trademarks of Texas Instruments Incorporated
Transcript
Page 1: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Getting Started with Getting Started with Code Composer Studio™ IDE Code Composer Studio™ IDE

v2.0v2.0

Presentation begins live from DallasPresentation begins live from DallasJuly 11, 7:00 a.m. and 11:00 a.m.July 11, 7:00 a.m. and 11:00 a.m.

Central Daylight Time (CDT)Central Daylight Time (CDT)

Code Composer Studio, TMS320, CodeMaestro, C6000, eXpressDSP, DSP/BIOS and RTDX are trademarks of Texas Instruments Incorporated

Page 2: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Getting Started with Getting Started with Code Composer Code Composer StudioStudio™ ™ IDE v2.0IDE v2.0

Code Composer Studio, TMS320, CodeMaestro, C6000, eXpressDSP, DSP/BIOS and RTDX are trademarks of Texas Instruments Incorporated

1

Page 3: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Host:Host:

Mark WilsonMark WilsonDirector, North AmericanDirector, North AmericanDSP Field ApplicationsDSP Field Applications

2

Page 4: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Presenter:Presenter:

John StevensonJohn StevensonIDE/Debug Technology ManagerIDE/Debug Technology ManagerSoftware Development SystemsSoftware Development Systems

3

Page 5: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

ObjectivesObjectives

Learn how to migrate development to Code Composer Studio™ v2.0

Tips for using the new features ofCode Composer Studio v2.0

4

Page 6: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Plu

g-I

ns

LinkAsm

CompileAsm Opto

Edit

DSPBoard

Debug

SIMProbe In

Probe OutGraphsProfiling

DSK

EVM

Third Party

XDSStudio Includes:Code Generation ToolsDSP/BIOS™: Real-Time Kernel

Real-Time Analysis (RTA)

DSP/BIOSLibrary

Simulator, Plug-ins, RTDX

Code Composer Studio™Code Composer Studio™

5

Page 7: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Migration StepsMigration Steps

Step 1: Setting up your system Step 2: Building your application Step 3: Editing your code Step 4: Debugging Step 5: Optimizing Step 6: Support

6

Page 8: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 1: Setting Up Your SystemStep 1: Setting Up Your System

7

Page 9: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

System CharacteristicsSystem Characteristics

Operating systems Supported

Windows™ 98, 98SE, NT (SP4) & 2000 Not supported

Windows 95, ME & UNIX®

Environment variables dosrun.bat

Directory structure Common locations

Multiple installations Different instruction set architectures (ISAs)

Side-by-side Merged

Co-existence with CCSv1.2

8

Page 10: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Connecting a Target (CCS Setup)Connecting a Target (CCS Setup)

Default target Simulator

Memory map GEL startup files Overwrite old

settings

Initialization order For multiple

processors

Different shortcuts for different targets cc_setup.exe –i”configname.ccs” -startCCS

9

Page 11: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

WorkspacesWorkspaces

Less sensitiveWill load as much of the workspace as

possible

Features may not translate as expectedMay see old windows

Workspaces contain projectsConvert workspace first

Toolbar locations

10

Page 12: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 2: Building Your ApplicationStep 2: Building Your Application

11

Page 13: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Project ManagerProject Manager

Multiple project support Build active project

Multiple configuration support Different build options

(e.g., debug, release, etc.)

Libraries

ConfigurationProject

12

Page 14: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Converting ProjectsConverting Projects

Project file File format Build options Include search path Run-time libraries Linker cmd file

DSP/BIOS CDB file Chip Support Library (CSL) Linking

Visual Linker

13

Page 15: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Project File ConversionProject File Conversion

File format *.mak => *.pjt Copy of old file kept Now text editable Configurations

DSP/BIOS™-generated files Ignore *cfg.h* & *cfg.s*

Libraries Run-Time Support Library

Now in <installdir>/<target>/cgtools/lib Same file for both C & C++

TMS320™ DSP Algorithm Standard Now in <installdir>/<target>/xdais/lib

14

Page 16: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Build OptionsBuild Options

Build options Copied exactly

Search paths Directory name

changes SSL replaced by

CSL Located in DSP/BIOS

directory

15

Page 17: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

CDB File ConversionCDB File Conversion

Open the file Double-click on the file in the project manager

Say yes to converting the file A backup file is saved

Save the file HWI support C++

16

Page 18: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

LinkingLinking

Linker Specifying the linker

Text or Visual Linker

Linker command file (*.cmd) References to object and library files

Recommend to add to project (can now specify link order)

Visual Linker RCP file Create a backup of the file Open the file Save the file

17

Page 19: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Chip Support LibraryChip Support Library

What it is? Peripheral management functions Replaces DEVLIB (dev6x.lib) and SSL Integrated with DSP/BIOS™

Naming conventions (eXpressDSP™) PER_funcName() PER_varName() PER_TypeName() PER_MACRO_NAME csl_legacy.h will perform the conversion

18

Page 20: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Chip Support LibraryChip Support Library

File name changes Header files now begin with “csl_”

csl_dma.h

Located in DSP/BIOS include directory Source archive

csl.src => csl6000.src

Hardware abstraction layer 1.2 files are obsolete

Can use with csl_legacy.h

New macros are more orthogonal

19

Page 21: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Chip Support LibraryChip Support Library

CSL_Init() No longer needs to be called

Argument changes Address is now void* instead of unsigned int

CACHE_flush() CACHE_clean() CACHE_invalidate()

Support for big and little endian Big has an “e” at the end

csl6201e.lib

20

Page 22: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Version ControlVersion Control

Version control integration Supports standard SCC API Show status of files Add files to source control Check-in/check-out Get latest version

Access features of SCC tool

View revision history Show differences

21

Page 23: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Building Outside of CCS IDEBuilding Outside of CCS IDE

External makefile build User can build custom makefiles within CCS CCS can launch build, load the result, and scan the

makefile to populate the project tree with a list of files

Export of CCS project to standard make format Allows (Unix®) developers to build with other make

utilities

Timake.exe Standalone build utility (i.e., build CCS project without

running CCS)

22

Page 24: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Symbol BrowserSymbol Browser

Project-like view Source code navigation File list Function definitions

Support team development C++

Class browser

23

Page 25: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Running Other ApplicationsRunning Other Applications

Running applications before/after building Initial & final build steps for a project Pre- & post-build steps for source files

Custom build steps Alternative build

Use a tool other than the standard compiler

Exclude from build File can be active in specific configurations

24

Page 26: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 3: Editing Your CodeStep 3: Editing Your Code

25

Page 27: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

EditorEditor

Tool-tip variable watching

Customize keywords Selection margin

Organization Resize

Cursor mode

26

Page 28: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

CodeMaestro™CodeMaestro™

FeaturesSuggest wordComplete wordAuto-parameter infoAuto-member infoCase correct

27

Page 29: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

External EditorExternal Editor

Use your favorite editor

CodeWrightEmacs…

28

Page 30: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 4: DebuggingStep 4: Debugging

29

Page 31: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Watch WindowWatch Window

Local variables tab Multiple watch windows

30

Page 32: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

RTDX™RTDX™

Simulation Real-time analysis

Multiprocessor support RTDX tools

Diagnostics tool Test communications link

Configuration tool RTDX settings

Channel viewer List of available channels Enable/disable channels

31

Page 33: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 5: OptimizingStep 5: Optimizing

32

Page 34: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

New Profiler InterfaceNew Profiler Interface

Data in ColumnsCode Size

Tabs Organize Elements

Toolbar

33

Page 35: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Function ProfilingFunction Profiling

Profile all functions Select one or more functions Handles all branches for you

34

Page 36: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Range ProfilingRange Profiling

Source files Select and drag Use dialog box Right click

Disassembly Visible selection

35

Page 37: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Start and End PointsStart and End Points

Turn the profiler on and off Ignore sections of code

Already optimized Startup routines

36

Page 38: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

EventsEvents

Tracking different events 100+ events on C6211 simulator 1 event on C5510 simulator

Detailed chip-specific simulators Have the most events

1 event at a time

37

Page 39: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Profile-Based CompilerProfile-Based Compiler

Integrated in CCS environment No icon on desktop Uses CCS Profiler Generates a project configuration

Runs on hardware or simulator C6000™

DSP only

38

Page 40: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Step 6: SupportStep 6: Support

39

Page 41: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Contacting SupportContacting Support

Update Advisor support questionnaire Access from within CCS Gathers CCS configuration info

DSP Developers’ Village:www.dspvillage.ti.com

Search for info in DSP KnowledgeBase Email tech support from DSP KnowledgeBase

Select: Email Technical Support

40

Page 42: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Update AdvisorUpdate Advisor

New method for obtaining Updates Patches Fixes New utilities

Requires online registration Service code

Accessing Periodic check

Browser requirements

41

Page 43: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Update AdvisorUpdate Advisor

42

Page 44: Getting Started with Code Composer Studio™ IDE v2.0 Presentation begins live from Dallas July 11, 7:00 a.m. and 11:00 a.m. Central Daylight Time (CDT)

Related Technical ReferencesRelated Technical Referencesincluding... including...

Application reports: “Migrating CCS 1.20/CCS 1.0 Projects to CCS v2” Links to additional application reports

CCSv2 Getting Started Guide

Code Composer Studio multimedia tutorial files Accessible from help Also available online

43


Recommended