MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Specifikace

Procházejte online nebo si stáhněte Specifikace pro Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO. MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Specifications Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 126
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - Tutorial

Printed on Recycled PaperTMS320C6000Code Composer StudioTutorialLiterature Number: SPRU301CFebruary 2000

Strany 3 - Read This First

Using the RTDX Control to Change the Load at Run Time6-10PRD statistics are measured in PRD ticks. SWI statistics are measuredin instruction cycles. T

Strany 4 - Notational Conventions

Modifying Software Interrupt PrioritiesAnalyzing Real-Time Behavior6-116.5 Modifying Software Interrupt PrioritiesTo understand why the program is not

Strany 5

Things to Try6-129) Select Debug→Run to run the example again. Use the RTDX-enabledWindows application loadctrl.exe to change the load at run time (as

Strany 6 - Trademarks

Learning MoreAnalyzing Real-Time Behavior6-13the CPU load? Now, add calls to STS_set and STS_delta in the dataIOfunction. How does this change affect

Strany 8 - Contents

7-1Chapter 7Connecting to I/O DevicesThis chapter introduces RTDX and DSP/BIOS techniques for implementing I/O.In this chapter, you connect a program

Strany 9

Opening and Examining the Project7-27.1 Opening and Examining the ProjectYou begin by opening a project with Code Composer Studio and examiningthe sou

Strany 10

Reviewing the C Source CodeConnecting to I/O Devices7-37.2 Reviewing the C Source CodeThe example in this chapter simulates a DSP application that dig

Strany 11 - Code Composer Studio Overview

Reviewing the C Source Code7-4 While control_channel is enabled by the target via a call toRTDX_enableInput, the other RTDX channels are not enabled f

Strany 12

Reviewing the C Source CodeConnecting to I/O Devices7-5 while (TRUE) { /* Read a new volume when the hosts send it */ if (!RTDX_chann

Strany 13 - TargetHost

1-1Chapter 1Code Composer Studio OverviewThis chapter provides an overview of the Code Composer Studio softwaredevelopment process, the components of

Strany 14 - 1.2 Code Generation Tools

Reviewing the Signalprog Application7-67.3 Reviewing the Signalprog ApplicationThe source code for the Visual Basic signalprog.exe application is avai

Strany 15 - Code Generation Tools

Running the ApplicationConnecting to I/O Devices7-77.4 Running the Application1) Choose Project→Build or click the (Incremental Build) toolbar butto

Strany 16

Running the Application7-8The signalprog.exe program can be started at any point. It does not useRTDX until you click the Test On button.9) Resize the

Strany 17

Running the ApplicationConnecting to I/O Devices7-911) Slide the control in the Volume Slider window. This changes the volumeof the output signal. Wat

Strany 18 - 1.4.1 DSP/BIOS Configuration

Modifying the Source Code to Use Host Channels and Pipes7-107.5 Modifying the Source Code to Use Host Channels and PipesNow you modify the example to

Strany 19 - DSP/BIOS Plug-ins

Modifying the Source Code to Use Host Channels and PipesConnecting to I/O Devices7-11Void A2DscaleD2A(HST_Obj *inpChannel, HST_Obj *outChannel){ PI

Strany 20 - 1.4.2 DSP/BIOS API Modules

More about Host Channels and Pipes7-12Calls to PIP_getReaderNumFrames and PIP_getWriterNumFramesthen determine whether there is at least one frame in

Strany 21 - TMS320C6000 DSP/BIOS User’s

Adding Channels and an SWI to the Configuration FileConnecting to I/O Devices7-137.7 Adding Channels and an SWI to the Configuration FileThe A2DscaleD

Strany 22

Adding Channels and an SWI to the Configuration File7-14 mode. This property determines which end of the pipe the targetprogram manages, and which en

Strany 23 - RTDX COM API RTDX target API

Adding Channels and an SWI to the Configuration FileConnecting to I/O Devices7-155) Insert another HST object and rename it output_HST.6) Set the foll

Strany 24 - 1.6 Third-Party Plug-ins

Code Composer Studio Development1-21.1 Code Composer Studio DevelopmentCode Composer Studio extends the basic code generation tools with a set ofdebug

Strany 25 - 1.7.1 Installation Folders

Adding Channels and an SWI to the Configuration File7-167) Right-click on the SWI manager and choose Insert SWI.8) Rename the new SWI0 object to A2Dsc

Strany 26 - 1.7.2 File Extensions

Running the Modified ProgramConnecting to I/O Devices7-177.8 Running the Modified Program1) Choose Project→Rebuild All or click the (Rebuild All) to

Strany 28

Index-1This is a draft version printed from file: tutorialix.fm on 2/26/0 IndexAanimating program 4-10archiver 1-5.asm file 1-16assembler 1-5assembly

Strany 29 - Developing a Simple Program

Index-2 Indexenvironment variablesC6X_A_DIR 1-17C6X_C_DIR 1-17PATH 1-17EPROM programmer 1-5examples folder 1-15Execution Graph 5-10explicit instrument

Strany 30 - 2.1 Creating a New Project

Index-3IndexNnaming conventions 5-7new project 2-2O.obj file 1-16objectediting properties 5-7inserting 3-3renaming 3-3optionscolor 2-9, 4-13font 2-4op

Strany 31 - 2.2 Adding Files to a Project

Index-4 Indexsectti utility 3-10SEM module 1-11signalprog.exe 7-6simulator iii, 1-2SIO module 1-11slider.exe 7-7source filesadding to project 2-3mixed

Strany 32 - 2.3 Reviewing the Code

Code Composer Studio DevelopmentCode Composer Studio Overview1-3Code Composer Studio includes the following components:❏TMS320C6000 code generation to

Strany 33

Code Generation Tools1-41.2 Code Generation ToolsThe code generation tools provide the foundation for the developmentenvironment provided by Code Comp

Strany 34

Code Generation ToolsCode Composer Studio Overview1-5The following list describes the tools shown in Figure 1-1: ❏The C compiler accepts C source code

Strany 35

Code Composer Studio Integrated Development Environment1-61.3 Code Composer Studio Integrated Development EnvironmentThe Code Composer Studio Integrat

Strany 36

Code Composer Studio Integrated Development EnvironmentCode Composer Studio Overview1-71.3.2 Application Building FeaturesWithin Code Composer Studio,

Strany 37

DSP/BIOS Plug-ins1-81.4 DSP/BIOS Plug-insDuring the analysis phase of the software development cycle, traditionaldebugging features are ineffective fo

Strany 38

DSP/BIOS Plug-insCode Composer Studio Overview1-9❏It serves as a visual editor for creating and setting properties for run-timeobjects that are used b

Strany 39

IMPORTANT NOTICETexas Instruments and its subsidiaries (TI) reserves the right to make changes to their products or todiscontinue any product or servi

Strany 40 - Profiling Code Execution Time

DSP/BIOS Plug-ins1-101.4.2 DSP/BIOS API ModulesUnlike traditional debugging, which is external to the executing program, theDSP/BIOS features require

Strany 41

DSP/BIOS Plug-insCode Composer Studio Overview1-11❏ MEM. The memory module allows you to specify the memory segmentsrequired to locate the various cod

Strany 42 - 2.10 Learning More

Hardware Emulation and Real-Time Data Exchange1-121.5 Hardware Emulation and Real-Time Data ExchangeTI DSPs provide on-chip emulation support that ena

Strany 43 - Developing a DSP/BIOS Program

Hardware Emulation and Real-Time Data ExchangeCode Composer Studio Overview1-13RTDX consists of both target and host components. A small RTDX software

Strany 44 - Creating a Configuration File

Third-Party Plug-ins1-14RTDX is well-suited for a variety of control, servo, and audio applications. Forexample, wireless telecommunications manufactu

Strany 45

Code Composer Studio Files and VariablesCode Composer Studio Overview1-151.7 Code Composer Studio Files and VariablesThe following sections provide an

Strany 46

Code Composer Studio Files and Variables1-161.7.2 File ExtensionsWhile using Code Composer Studio, you work with files that have the followingfile-nam

Strany 47

Code Composer Studio Files and VariablesCode Composer Studio Overview1-171.7.3 Environment VariablesThe installation procedure defines the following v

Strany 49

2-1Chapter 2Developing a Simple ProgramThis chapter introduces Code Composer Studio and shows the basic processused to create, build, debug, and test

Strany 50

iiiThis is a draft version printed from file: tut_pref.fm on 2/26/0 PrefaceRead This FirstAbout This ManualCode Composer Studio speeds and enhances th

Strany 51

Creating a New Project2-22.1 Creating a New ProjectIn this chapter, you create a project with Code Composer Studio and addsource code files and librar

Strany 52 - 3.6 Learning More

Adding Files to a ProjectDeveloping a Simple Program2-32.2 Adding Files to a Project1) Choose Project→Add Files to Project. Select hello.c and click O

Strany 53 - Chapter 4

Reviewing the Code2-4When building the program, Code Composer Studio finds files by searchingfor project files in the following path order:❏The folder

Strany 54

Building and Running the ProgramDeveloping a Simple Program2-5#ifdef FILEIO /* clear char arrays */ for (i = 0; i < BUFSIZE; i++) { sc

Strany 55

Building and Running the Program2-6To build and run the program, follow these steps:1) Choose Project→Rebuild All or click the (Rebuild All) toolbar

Strany 56 - 4.2 Reviewing the Source Code

Changing Program Options and Fixing Syntax ErrorsDeveloping a Simple Program2-72.5 Changing Program Options and Fixing Syntax ErrorsIn the previous se

Strany 57 - Reviewing the Source Code

Changing Program Options and Fixing Syntax Errors2-83) If you are programming for the TMS320C6701 and your program usesfloating point values, go to th

Strany 58

Using Breakpoints and the Watch WindowDeveloping a Simple Program2-92.6 Using Breakpoints and the Watch WindowWhen you are developing and testing prog

Strany 59

Using Breakpoints and the Watch Window2-1010) At the prompt, type goodbye and click OK. Notice that the Stdout tabshows the input text in blue.Also no

Strany 60

Using the Watch Window with StructuresDeveloping a Simple Program2-112.7 Using the Watch Window with StructuresIn addition to watching the value of a

Strany 61 - 4.4 Displaying Graphs

iv Notational ConventionsNotational ConventionsThis document uses the following conventions:❏The TMS320C6000 core is also referred to as ’C6000.❏Code

Strany 62

Profiling Code Execution Time2-122.8 Profiling Code Execution TimeIn this section, you use the profiling features of Code Composer Studio togather sta

Strany 63

Profiling Code Execution TimeDeveloping a Simple Program2-13Profile-points are handled before the profile-point line is executed. Theyreport the numbe

Strany 64 - 4.6 Adjusting the Gain

Things to Try2-1414) Before continuing to the next chapter (after completing section 2.9, page2-14), perform the following steps to free the resources

Strany 65

3-1Chapter 3Developing a DSP/BIOS ProgramThis chapter introduces DSP/BIOS and shows how to create, build, debug,and test programs that use DSP/BIOS.In

Strany 66

Creating a Configuration File3-23.1 Creating a Configuration FileAnother way to implement the hello world program is to use the LOG moduleprovided wit

Strany 67 - 4.8 Using a GEL File

Creating a Configuration FileDeveloping a DSP/BIOS Program3-3You see a window like the following. You can expand and contract the listby clicking the

Strany 68

Adding DSP/BIOS Files to a Project3-4Although these files have extensions of .s62 and .h62, they can also beused with the TMS320C6701. DSP/BIOS does n

Strany 69

Adding DSP/BIOS Files to a ProjectDeveloping a DSP/BIOS Program3-55) In the Project View area, right-click on the vectors.asm source file andchoose Re

Strany 70 - 4.11 Learning More

Testing with Code Composer Studio3-6interrupts and hardware interrupts to occur. Chapter 5 throughChapter 7 explain these types of events.10) Choose F

Strany 71 - Debugging Program Behavior

Testing with Code Composer StudioDeveloping a DSP/BIOS Program3-79) Choose Tools→RTDX to open the RTDX control window. Select RTDXDisable from the pul

Strany 72

Read This FirstvRelated Documentation from Texas InstrumentsRelated Documentation from Texas InstrumentsThe following books describe the devices, rela

Strany 73 - 5.2 Reviewing the Source Code

Profiling DSP/BIOS Code Execution Time3-83.4 Profiling DSP/BIOS Code Execution TimeEarlier, you used the profiling features of Code Composer Studio to

Strany 74

Profiling DSP/BIOS Code Execution TimeDeveloping a DSP/BIOS Program3-9Calls to LOG_printf are efficient because the string formatting isperformed on t

Strany 75

Things to Try3-103.5 Things to TryTo explore Code Composer Studio, try the following:❏Load myhello.out and put a breakpoint on the line that calls LOG

Strany 76

4-1Chapter 4Testing Algorithms and Data from a FileThis chapter shows the process for creating and testing a simple algorithmand introduces additional

Strany 77 - C Compiler User’s Guide

Opening and Examining the Project4-24.1 Opening and Examining the ProjectYou begin by opening a project with Code Composer Studio and examiningthe sou

Strany 78

Opening and Examining the ProjectTesting Algorithms and Data from a File4-36) Expand the Project View by clickingthe + signs next to Project,VOLUME.MA

Strany 79

Reviewing the Source Code4-44.2 Reviewing the Source CodeDouble-click on the volume.c file in the Project View to see the source codein the right half

Strany 80

Reviewing the Source CodeTesting Algorithms and Data from a File4-5 /* loop forever */ while(TRUE) { /* Read using a Probe Point connec

Strany 81

Adding a Probe Point for File I/O4-64.3 Adding a Probe Point for File I/OIn this section, you add a Probe Point, which reads data from a file on yourP

Strany 82 - Changing and Viewing the Load

Adding a Probe Point for File I/OTesting Algorithms and Data from a File4-76) Choose File→File I/O. The File I/O dialog appears so that you can select

Strany 83

vi Related Documentationports, direct memory access (DMA), clocking and phase-locked loop(PLL), and the power-down modes.TMS320C62x Technical Brief (l

Strany 84

Adding a Probe Point for File I/O4-8 The Length field specifies how many samples from the data file areread each time the Probe Point is reached. You

Strany 85 - Analyzing Thread Statistics

Displaying GraphsTesting Algorithms and Data from a File4-94.4 Displaying GraphsIf you ran the program now, you would not see much information about w

Strany 86

Animating the Program and Graphs4-104.5 Animating the Program and GraphsSo far, you have placed a Probe Point, which temporarily halts the target,tran

Strany 87

Animating the Program and GraphsTesting Algorithms and Data from a File4-11buffer contains the values just read from sine.dat, while the output buffer

Strany 88

Adjusting the Gain4-124.6 Adjusting the GainRecall from section 4.2, page 4-4 that the processing function multiplies eachvalue in the input buffer by

Strany 89

Viewing Out-of-Scope VariablesTesting Algorithms and Data from a File4-134.7 Viewing Out-of-Scope VariablesYou have used the Watch Window to view and

Strany 90 - 5.10 Learning More

Viewing Out-of-Scope Variables4-1410) Notice that the Watch window area says this variable is an unknownidentifier. This shows that *input is not defi

Strany 91

Using a GEL FileTesting Algorithms and Data from a File4-154.8 Using a GEL FileCode Composer Studio provides another way of modifying a variable. This

Strany 92

Adjusting and Profiling the Processing Load4-164.9 Adjusting and Profiling the Processing LoadIn Chapter 2, you used profile-points to measure the num

Strany 93

Adjusting and Profiling the Processing LoadTesting Algorithms and Data from a File4-1712) Type 2 as the new load and click Execute. The maximum number

Strany 94

viiThis is a draft version printed from file: tutorialtoc.fm on 2/26/0 Contents1 Code Composer Studio Overview . . . . . . . . . . . . . . . . . . .

Strany 95

Things to Try4-184.10 Things to TryTo explore using Code Composer Studio, try the following:❏Add processingLoad to the Watch window. When you use the

Strany 96

5-1Chapter 5Debugging Program BehaviorThis chapter introduces techniques for debugging a program and severalDSP/BIOS plug-ins and modules.In this chap

Strany 97

Opening and Examining the Project5-25.1 Opening and Examining the ProjectYou begin by opening a project with Code Composer Studio and examiningthe sou

Strany 98

Reviewing the Source CodeDebugging Program Behavior5-35.2 Reviewing the Source CodeThis example modifies the example from Chapter 4 to introduce real-

Strany 99

Reviewing the Source Code5-4 The dataIO function calls SWI_dec, which decrements a counterassociated with a software interrupt object. When the counte

Strany 100

Reviewing the Source CodeDebugging Program Behavior5-5/* ======== processing ======== * * FUNCTION: Called from processing_SWI to apply signal *

Strany 101 - Analyzing Real-Time Behavior

Modifying the Configuration File5-65.3 Modifying the Configuration FileA DSP/BIOS configuration file has already been created for this example. Inthis

Strany 102 - 6.6 Things to Try

Modifying the Configuration FileDebugging Program Behavior5-74) Right-click on the LOG object called LOG_system. From the pop-upmenu, select Propertie

Strany 103 - 6.7 Learning More

Modifying the Configuration File5-87) Since the dataIO function is no longer run within main, what causes thisCLK object to run its function? To find

Strany 104

Modifying the Configuration FileDebugging Program Behavior5-910) Right-click on the processing_SWI software interrupt object. From thepop-up menu, sel

Strany 105 - Connecting to I/O Devices

viii Contents3 Developing a DSP/BIOS Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1This chapter

Strany 106

Viewing Thread Execution with the Execution Graph5-105.4 Viewing Thread Execution with the Execution GraphWhile you could test the program by putting

Strany 107 - Reviewing the C Source Code

Viewing Thread Execution with the Execution GraphDebugging Program Behavior5-119) Choose Debug→Run or click the (Run) toolbar button. The ExecutionG

Strany 108

Changing and Viewing the Load5-125.5 Changing and Viewing the LoadUsing the Execution Graph, you saw that the program meets its real-timedeadlines. Ho

Strany 109

Changing and Viewing the LoadDebugging Program Behavior5-137) Right-click on the Execution Graph and choose Clear from the pop-upmenu. Notice that the

Strany 110 - ' Channel name constants

Changing and Viewing the Load5-1412) Using the GEL control, change the load to 1500 and click Execute. TheCPU Load Graph and the Execution Graph stop

Strany 111 - 7.4 Running the Application

Analyzing Thread StatisticsDebugging Program Behavior5-155.6 Analyzing Thread StatisticsYou can use other DSP/BIOS controls to examine the load on the

Strany 112 - Running the Application

Analyzing Thread Statistics5-165) If you have halted the program, click the (Run) toolbar button.6) Notice the Max value in the Statistics View. SWI

Strany 113

Adding Explicit STS InstrumentationDebugging Program Behavior5-175.7 Adding Explicit STS InstrumentationIn the previous section, you used the Statisti

Strany 114

Viewing Explicit Instrumentation5-185.8 Viewing Explicit InstrumentationTo view information provided by the explicit instrumentation calls you added,y

Strany 115

Viewing Explicit InstrumentationDebugging Program Behavior5-199) Multiply the Max value for processingLoad_STS by 4.Because you used the CLK_gethtime

Strany 116

ContentsixContents6.6 Things to Try. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-

Strany 117

Things to Try5-2015) Remove the check mark from the enable USER0 trace box in the RTAControl Panel.16) Right-click on the Statistics View and choose C

Strany 118

6-1Chapter 6Analyzing Real-Time BehaviorThis chapter introduces techniques for analyzing and correcting real-timeprogram behavior.In this chapter, you

Strany 119

Opening and Examining the Project6-26.1 Opening and Examining the ProjectIn this chapter, you modify the example you worked on in the previouschapter.

Strany 120

Modifying the Configuration FileAnalyzing Real-Time Behavior6-36.2 Modifying the Configuration FileFor this example, you need to add one new object to

Strany 121 - 7.9 Learning More

Modifying the Configuration File6-47) Click the + sign next to the SWI manager. A SWI object called PRD_swiwas added automatically. This software inte

Strany 122

Reviewing the Source Code ChangesAnalyzing Real-Time Behavior6-56.3 Reviewing the Source Code ChangesDouble-click on the volume.c file in the Project

Strany 123

Reviewing the Source Code Changes6-6This function uses RTDX API functions to change the load of the processingsignal in real time. Notice the followin

Strany 124

Using the RTDX Control to Change the Load at Run TimeAnalyzing Real-Time Behavior6-76.4 Using the RTDX Control to Change the Load at Run TimeWhile you

Strany 125

Using the RTDX Control to Change the Load at Run Time6-87) Right-click on the Statistics View area and choose Property Page fromthe pop-up menu. Highl

Strany 126

Using the RTDX Control to Change the Load at Run TimeAnalyzing Real-Time Behavior6-914) Using the Windows Explorer, run loadctrl.exe, which is located

Komentáře k této Příručce

Žádné komentáře