logo资料库

CCS3,3使用手册中文版.pdf

第1页 / 共103页
第2页 / 共103页
第3页 / 共103页
第4页 / 共103页
第5页 / 共103页
第6页 / 共103页
第7页 / 共103页
第8页 / 共103页
资料共103页,剩余部分请下载后查看
Table of Contents
Preface
1 Introduction
1.1 Welcome to the World of eXpressDSP
1.2 Development Flow
2 Getting Started Quickly
2.1 Launching the Code Composer Studio Development Tools
2.1.1 Important Icons Used in Code Composer Studio
2.2 Creating a New Project
2.3 Building Your Program
2.4 Loading Your Program
2.5 Basic Debugging
2.5.1 Go to Main
2.5.2 Using Breakpoints
2.5.3 Source Stepping
2.5.4 Viewing Variables
2.5.5 Output Window
2.5.6 Symbol Browser
2.6 Introduction to Help
3 Target and Host Setup
3.1 Setting Up the Target
3.1.1 Code Composer Studio Setup Utility
3.1.1.1 Adding an Existing Configuration
3.1.1.2 Creating a New System Configuration
3.1.1.3 Creating Multiprocessor Configurations
3.1.1.4 Startup GEL Files
3.1.1.5 Device Drivers
3.1.2 Parallel Debug Manager
3.1.3 Connect/Disconnect
3.1.4 Status Bar
3.2 Host IDE Customization
3.2.1 Default Colors and Faults
3.2.2 Default Keyboard Shortcuts
3.2.3 Other IDE Customizations
4 Code Creation
4.1 Configuring Projects
4.1.1 Creating a Project
4.1.1.1 Adding Files to a Project
4.1.1.2 Removing a File
4.1.2 Project Configurations
4.1.2.1 Changing the Active Project Configuration
4.1.2.2 Adding a New Project Configuration
4.1.3 Project Dependencies
4.1.3.1 Creating Project Dependencies (Subprojects)
4.1.3.2 Project Dependencies Settings
4.1.3.3 Modifying Project Configurations
4.1.3.4 Sub-project configurations
4.1.4 Makefiles
4.1.5 Source Control Integration
4.2 Text Editor
4.2.1 Viewing and Editing Code
4.2.2 Customizing the Code Window
4.2.3 Using the Editor's Text Processing Functionality
4.2.4 Setting Auto-Save Defaults
4.2.5 Autocompletion, Tooltips and Variable Watching (CodeSense)
4.2.6 Using an External Editor
4.3 Code Generation Tools
4.3.1 Code Development Flow
4.3.2 Project Build Options
4.3.2.1 Setting Project-Level Build Options
4.3.2.2 Setting File-Specific Options
4.3.3 Compiler Overview
4.3.3.1 Interfacing with the Code Composer Studio IDE
4.3.4 Assembly Language Development Tools
4.3.5 Assembler Overview
4.3.6 Linker Overview
4.3.6.1 Text-Based Linker
4.3.7 C/C++ Development Tools
4.4 Building Your Code Composer Studio Project
4.4.1 From Code Composer Studio
4.4.2 External Make
4.4.3 Command Line
4.4.3.1 Using the Timake Utility From the Command Line
4.4.3.2 Makefiles
4.5 Available Foundation Software
4.5.1 DSP/BIOS
4.5.2 Chip Support Library (CSL)
4.5.2.1 Benefits of CSL
4.5.3 Board Support Library (BSL)
4.5.3.1 Benefits of BSL
4.5.4 DSP Library (DSPLIB)
4.5.4.1 Benefits of DSPLIB
4.5.4.2 DSPLIB Functions Overview
4.5.5 Image/Video Processing Library (IMGLIB)
4.5.5.1 Benefits of IMGLIB
4.5.5.2 IMGLIB Functions Overview
4.5.6 TMS320 DSP Algorithm Standard Components
4.5.6.1 Scope of XDAIS
4.5.6.2 Rules and Guidelines
4.5.6.3 Requirements of the Standard
4.5.6.4 Goals of the Standard
4.5.7 Reference Frameworks
4.6 Automation (for Project Management)
4.6.1 Using General Extension Language (GEL)
4.6.2 Scripting Utility
5 Debug
5.1 Setting Up Your Environment for Debug
5.1.1 Setting Custom Debug Options
5.1.1.1 Debug Properties Tab
5.1.1.2 Directories
5.1.1.3 Program/Project/CIO Load Options
5.1.1.4 Disassembly Style
5.1.2 Simulation
5.1.3 Memory Mapping
5.1.3.1 Memory Mapping with Simulation
5.1.3.2 Memory Mapping Using the Debugger
5.1.3.3 Defining Memory Map with GEL
5.1.4 Pin Connect
5.1.5 Port Connect
5.1.6 Program Load
5.1.6.1 Loading Symbols Only
5.1.6.2 Adding Symbols Only
5.2 Basic Debugging
5.2.1 Running/Stepping
5.2.1.1 Running
5.2.1.2 Stepping
5.2.1.3 Multiprocessor Broadcast Commands Using PDM
5.2.2 Breakpoints
5.2.2.1 Breakpoint Manager
5.2.2.2 Software Breakpoints
5.2.2.3 Hardware Breakpoints
5.2.2.4 C64x Simulator Watchpoints
5.2.3 Connecting Breakpoints to Files
5.2.3.1 Functions
5.2.3.2 Using Breakpoints to Transfer Data from a PC File to a Target
5.2.4 Watch Window
5.2.4.1 Using Watch Window to Track a Variable's Value
5.2.4.2 Using Watch Window to Watch Values of a Structure's Elements
5.2.5 Property Page Manager Window
5.2.6 Memory Window
5.2.7 Register Window
5.2.7.1 Customizing Register Groups
5.2.8 Disassembly/Mixed Mode
5.2.8.1 Disassembly Mode
5.2.8.2 Mixed Mode
5.2.9 Call Stack
5.2.10 Symbol Browser
5.2.11 Command Window
5.2.12 Memory Save/Load Utility
5.2.13 C6000 Functional Simulators Interrupt Latency Detection Feature
5.2.14 Cache Coherence
5.2.15 Cache Tag RAM Viewer
5.2.15.1 Cache Tag RAM Viewer Properties
5.2.16 Exception Reporting
5.2.17 Software Pipelined Loop (SPLOOP) Buffer
5.2.18 MMU Page Table Viewer
5.3 Advanced Debugging Features
5.3.1 Advanced Event Triggering (AET)
5.3.1.1 Event Analysis
5.3.1.2 Event Sequencer
5.4 Real-Time Debugging
5.4.1 Real-Time Mode
5.4.2 Rude Real-Time Mode
5.4.3 Real-Time Data Exchange (RTDX)
5.4.3.1 RTDX Data Flow
5.4.3.2 Configuring RTDX Graphically
5.4.3.3 Sending a Single Integer to the Host
5.4.3.4 Receiving Data from the Host
5.5 Automation (for Debug)
5.5.1 Using the General Extension Language (GEL)
5.5.2 Scripting Utility for Debug
5.6 Reset Options
5.6.1 Target Reset
5.6.2 Emulator Reset
5.6.3 Advanced Resets
5.6.4 Halt on Reset
6 Analyze/Tune
6.1 Application Code Analysis
6.1.1 Data Visualization
6.1.2 Simulator Analysis
6.1.3 Emulator Analysis
6.1.4 DSP/BIOS Real-Time Analysis (RTA) Tools
6.1.5 Code Coverage and Multi-Event Profiler Tool
6.2 Application Code Tuning (ACT)
6.2.1 Tuning Dashboard
6.2.1.1 Advice Window
6.2.1.2 Profile Setup
6.2.1.3 Goals Window
6.2.1.4 Profile Viewer
6.2.2 Compiler Consultant
6.2.3 Cache Tune
7 Additional Tools, Help, and Tips
7.1 Component Manager
7.1.1 Opening Component Manager
7.1.2 Multiple Versions of Code Composer Studio
7.2 Update Advisor
7.2.1 Registering Update Advisor
7.2.2 Checking for Tool Updates
7.2.3 Automatically Checking for Tool Updates
7.2.4 Uninstalling the Updates
7.3 Additional Help
7.3.1 Online Help
7.3.2 Online Tutorial
Code Composer Studio Development Tools v3.3 Getting Started Guide Literature Number: SPRU509H October 2006
2 SPRU509H–October 2006 Submit Documentation Feedback
Contents 2 3 4 2.2 2.3 2.4 2.5 Preface ............................................................................................................................... 9 Introduction ............................................................................................................. 11 1 Welcome to the World of eXpressDSP™ ...................................................................... 12 1.1 Development Flow ................................................................................................ 13 1.2 Getting Started Quickly ............................................................................................. 15 Launching the Code Composer Studio Development Tools................................................. 16 2.1 2.1.1 Important Icons Used in Code Composer Studio .................................................... 16 Creating a New Project........................................................................................... 16 Building Your Program............................................................................................ 17 Loading Your Program............................................................................................ 17 Basic Debugging .................................................................................................. 17 2.5.1 Go to Main ................................................................................................ 17 2.5.2 Using Breakpoints........................................................................................ 17 2.5.3 Source Stepping.......................................................................................... 18 2.5.4 Viewing Variables ........................................................................................ 18 2.5.5 Output Window ........................................................................................... 18 2.5.6 Symbol Browser .......................................................................................... 18 Introduction to Help ............................................................................................... 18 2.6 Target and Host Setup .............................................................................................. 19 Setting Up the Target ............................................................................................. 20 3.1 3.1.1 Code Composer Studio Setup Utility .................................................................. 20 3.1.2 Parallel Debug Manager................................................................................. 23 3.1.3 Connect/Disconnect...................................................................................... 23 3.1.4 Status Bar ................................................................................................. 24 Host IDE Customization .......................................................................................... 24 3.2.1 Default Colors and Faults ............................................................................... 24 3.2.2 Default Keyboard Shortcuts............................................................................. 25 3.2.3 Other IDE Customizations .............................................................................. 25 Code Creation .......................................................................................................... 27 Configuring Projects .............................................................................................. 28 4.1 4.1.1 Creating a Project ........................................................................................ 28 4.1.2 Project Configurations ................................................................................... 30 4.1.3 Project Dependencies ................................................................................... 31 4.1.4 Makefiles .................................................................................................. 32 4.1.5 Source Control Integration .............................................................................. 33 Text Editor.......................................................................................................... 34 4.2.1 Viewing and Editing Code............................................................................... 34 4.2.2 Customizing the Code Window......................................................................... 34 4.2.3 Using the Editor's Text Processing Functionality .................................................... 35 4.2.4 Setting Auto-Save Defaults ............................................................................. 36 4.2.5 Autocompletion, Tooltips and Variable Watching (CodeSense) ................................... 36 4.2.6 Using an External Editor................................................................................. 37 Code Generation Tools........................................................................................... 38 3.2 4.2 4.3 SPRU509H–October 2006 Submit Documentation Feedback Contents 3
5 4.5 4.6 4.4 4.3.1 Code Development Flow ................................................................................ 38 4.3.2 Project Build Options .................................................................................... 38 4.3.3 Compiler Overview ....................................................................................... 40 4.3.4 Assembly Language Development Tools ............................................................. 40 4.3.5 Assembler Overview ..................................................................................... 40 4.3.6 Linker Overview .......................................................................................... 41 4.3.7 C/C++ Development Tools.............................................................................. 41 Building Your Code Composer Studio Project ................................................................ 42 4.4.1 From Code Composer Studio........................................................................... 42 4.4.2 External Make ............................................................................................ 42 4.4.3 Command Line ........................................................................................... 43 Available Foundation Software .................................................................................. 43 4.5.1 DSP/BIOS ................................................................................................. 43 4.5.2 Chip Support Library (CSL) ............................................................................. 44 4.5.3 Board Support Library (BSL)............................................................................ 44 4.5.4 DSP Library (DSPLIB) ................................................................................... 44 4.5.5 Image/Video Processing Library (IMGLIB)............................................................ 45 4.5.6 TMS320 DSP Algorithm Standard Components ..................................................... 46 4.5.7 Reference Frameworks.................................................................................. 47 Automation (for Project Management).......................................................................... 49 4.6.1 Using General Extension Language (GEL) ........................................................... 49 4.6.2 Scripting Utility............................................................................................ 49 Debug ..................................................................................................................... 51 Setting Up Your Environment for Debug ....................................................................... 52 5.1 5.1.1 Setting Custom Debug Options ........................................................................ 52 5.1.2 Simulation ................................................................................................. 55 5.1.3 Memory Mapping......................................................................................... 55 5.1.4 Pin Connect ............................................................................................... 57 5.1.5 Port Connect .............................................................................................. 57 5.1.6 Program Load............................................................................................. 58 Basic Debugging .................................................................................................. 59 5.2.1 Running/Stepping ........................................................................................ 59 5.2.2 Breakpoints................................................................................................ 60 5.2.3 Connecting Breakpoints to Files........................................................................ 63 5.2.4 Watch Window............................................................................................ 65 5.2.5 Property Page Manager Window....................................................................... 67 5.2.6 Memory Window.......................................................................................... 68 5.2.7 Register Window ......................................................................................... 70 5.2.8 Disassembly/Mixed Mode ............................................................................... 72 5.2.9 Call Stack.................................................................................................. 72 5.2.10 Symbol Browser ......................................................................................... 73 5.2.11 Command Window...................................................................................... 73 5.2.12 Memory Save/Load Utility.............................................................................. 74 5.2.13 C6000 Functional Simulators Interrupt Latency Detection Feature............................... 74 5.2.14 Cache Coherence....................................................................................... 74 5.2.15 Cache Tag RAM Viewer................................................................................ 75 5.2.16 Exception Reporting .................................................................................... 77 5.2.17 Software Pipelined Loop (SPLOOP) Buffer.......................................................... 78 5.2 4 Contents SPRU509H–October 2006 Submit Documentation Feedback
5.5 5.6 5.4 5.3 5.2.18 MMU Page Table Viewer............................................................................... 78 Advanced Debugging Features ................................................................................. 79 5.3.1 Advanced Event Triggering (AET) ..................................................................... 79 Real-Time Debugging ............................................................................................ 81 5.4.1 Real-Time Mode.......................................................................................... 81 5.4.2 Rude Real-Time Mode................................................................................... 82 5.4.3 Real-Time Data Exchange (RTDX) .................................................................... 83 Automation (for Debug)........................................................................................... 86 5.5.1 Using the General Extension Language (GEL) ...................................................... 86 5.5.2 Scripting Utility for Debug ............................................................................... 86 Reset Options...................................................................................................... 86 5.6.1 Target Reset .............................................................................................. 86 5.6.2 Emulator Reset ........................................................................................... 87 5.6.3 Advanced Resets......................................................................................... 87 5.6.4 Halt on Reset ............................................................................................. 87 Analyze/Tune ........................................................................................................... 89 Application Code Analysis ....................................................................................... 90 6.1 6.1.1 Data Visualization ........................................................................................ 90 6.1.2 Simulator Analysis........................................................................................ 91 6.1.3 Emulator Analysis ........................................................................................ 91 6.1.4 DSP/BIOS Real-Time Analysis (RTA) Tools.......................................................... 91 6.1.5 Code Coverage and Multi-Event Profiler Tool........................................................ 94 Application Code Tuning (ACT) ................................................................................. 94 6.2.1 Tuning Dashboard........................................................................................ 94 6.2.2 Compiler Consultant ..................................................................................... 96 6.2.3 Cache Tune ............................................................................................... 96 Additional Tools, Help, and Tips ................................................................................. 99 Component Manager............................................................................................ 100 7.1 7.1.1 Opening Component Manager........................................................................ 101 7.1.2 Multiple Versions of Code Composer Studio........................................................ 101 Update Advisor................................................................................................... 101 7.2.1 Registering Update Advisor ........................................................................... 101 7.2.2 Checking for Tool Updates ............................................................................ 101 7.2.3 Automatically Checking for Tool Updates ........................................................... 102 7.2.4 Uninstalling the Updates ............................................................................... 102 Additional Help ................................................................................................... 102 7.3.1 Online Help .............................................................................................. 102 7.3.2 Online Tutorial........................................................................................... 102 6.2 7.2 7.3 6 7 SPRU509H–October 2006 Submit Documentation Feedback Contents 5
List of Figures eXpress DSP™ Software and Development Tools .................................................................... 12 1-1 Simplified Code Composer Studio Development Flow................................................................ 13 1-2 Icons on the Code Composer Studio Toolbar .......................................................................... 16 2-1 Standard Setup Configurations........................................................................................... 20 3-1 GEL File Configuration .................................................................................................... 22 3-2 Parallel Debug Manager................................................................................................... 23 3-3 Modifying Keyboard Shortcuts............................................................................................ 25 3-4 Project Creation Wizard ................................................................................................... 28 4-1 Code Composer Studio Control Window................................................................................ 29 4-2 Add Files to Project ........................................................................................................ 29 4-3 Configuration Toolbar...................................................................................................... 30 4-4 Add Project Configurations................................................................................................ 31 4-5 Project Configuration Dependencies .................................................................................... 32 4-6 Source Control Integration ................................................................................................ 33 4-7 Elements in the Source Code Window .................................................................................. 34 4-8 Using Regular Expressions with the Text Editor ....................................................................... 35 4-9 4-10 Selective Display ........................................................................................................... 36 4-11 Code Sense................................................................................................................. 37 4-12 Code Development Flow ................................................................................................. 38 4-13 Build Options Dialog Box.................................................................................................. 39 TMS320 DSP Algorithm Standard Elements .......................................................................... 46 4-14 4-15 Reference Framework Elements ......................................................................................... 48 Disassembly Style.......................................................................................................... 54 5-1 Memory Map ................................................................................................................ 55 5-2 Data Offset .................................................................................................................. 58 5-3 Toolbar Icons for Running and Debugging ............................................................................. 59 5-4 Breakpoint Manager ....................................................................................................... 61 5-5 Sample Parameter Dialog................................................................................................. 64 5-6 Data File Control ........................................................................................................... 64 5-7 5-8 Watch Locals Tab .......................................................................................................... 65 Specifying a Variable to Watch........................................................................................... 66 5-9 5-10 Watch Element Values .................................................................................................... 66 5-11 Property Window ........................................................................................................... 67 5-12 Memory Window............................................................................................................ 68 5-13 Memory Window Options.................................................................................................. 68 5-14 Register Window ........................................................................................................... 70 5-15 Editing a Registry Value................................................................................................... 71 5-16 Customize Register Groups............................................................................................... 71 5-17 Register Window with Customized Register Group.................................................................... 71 5-18 Disassembly Window ...................................................................................................... 72 5-19 Call Stack Window ......................................................................................................... 72 5-20 Symbol Browser Window.................................................................................................. 73 5-21 Command Window ......................................................................................................... 73 5-22 Cache Tag RAM Viewer................................................................................................... 75 5-23 Cache Tag RAM Viewer Property Page................................................................................. 76 5-24 Exceptions Window ........................................................................................................ 77 5-25 Event Analysis Window.................................................................................................... 80 5-26 Event Sequencer ........................................................................................................... 81 5-27 RTDX Data Flow ........................................................................................................... 83 5-28 RTDX Diagnostics Window ............................................................................................... 84 5-29 RTDX Configuration Window ............................................................................................. 84 5-30 RTDX Channel Viewer Window .......................................................................................... 85 6 List of Figures SPRU509H–October 2006 Submit Documentation Feedback
6-1 6-2 6-3 6-4 6-5 6-6 7-1 7-2 Sample Graph Properties Dialog......................................................................................... 90 Example Graph ............................................................................................................. 90 Real-Time Capture and Analysis......................................................................................... 92 DSP/BIOS RTA Toolbar................................................................................................... 92 Goals Window .............................................................................................................. 95 Cache Tune Tool ........................................................................................................... 97 Component Manager..................................................................................................... 100 Update Advisor Web Settings........................................................................................... 102 SPRU509H–October 2006 Submit Documentation Feedback List of Figures 7
4-1 5-1 CodeWright Text Editor: A Quick Reference ........................................................................... 35 GEL Functions for Memory Maps ........................................................................................ 56 List of Tables 8 List of Tables SPRU509H–October 2006 Submit Documentation Feedback
分享到:
收藏