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

Post on 23-Dec-2015

213 views 0 download

Tags:

transcript

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

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

Host:Host:

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

2

Presenter:Presenter:

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

3

ObjectivesObjectives

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

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

4

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

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

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

7

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

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

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

Step 2: Building Your ApplicationStep 2: Building Your Application

11

Project ManagerProject Manager

Multiple project support Build active project

Multiple configuration support Different build options

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

Libraries

ConfigurationProject

12

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

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

Build OptionsBuild Options

Build options Copied exactly

Search paths Directory name

changes SSL replaced by

CSL Located in DSP/BIOS

directory

15

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

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

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

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

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

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

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

Symbol BrowserSymbol Browser

Project-like view Source code navigation File list Function definitions

Support team development C++

Class browser

23

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

Step 3: Editing Your CodeStep 3: Editing Your Code

25

EditorEditor

Tool-tip variable watching

Customize keywords Selection margin

Organization Resize

Cursor mode

26

CodeMaestro™CodeMaestro™

FeaturesSuggest wordComplete wordAuto-parameter infoAuto-member infoCase correct

27

External EditorExternal Editor

Use your favorite editor

CodeWrightEmacs…

28

Step 4: DebuggingStep 4: Debugging

29

Watch WindowWatch Window

Local variables tab Multiple watch windows

30

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

Step 5: OptimizingStep 5: Optimizing

32

New Profiler InterfaceNew Profiler Interface

Data in ColumnsCode Size

Tabs Organize Elements

Toolbar

33

Function ProfilingFunction Profiling

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

34

Range ProfilingRange Profiling

Source files Select and drag Use dialog box Right click

Disassembly Visible selection

35

Start and End PointsStart and End Points

Turn the profiler on and off Ignore sections of code

Already optimized Startup routines

36

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

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

Step 6: SupportStep 6: Support

39

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

Update AdvisorUpdate Advisor

New method for obtaining Updates Patches Fixes New utilities

Requires online registration Service code

Accessing Periodic check

Browser requirements

41

Update AdvisorUpdate Advisor

42

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