Motorola DSP56800 Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour Processeurs Motorola DSP56800. Motorola DSP56800 User`s guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 446
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Revised 2003/08/15

CodeWarrior™ Development Studio for Motorola® 56800/E Hybrid Controllers: MC56F83xx/DSP5685xFamily Targeting Manual Revised 2003/08/15

Page 2 - How to Contact Metrowerks

IntroductionCodeWarrior IDE10Targeting MC56F83xx/DSP5685x Controllers• Build Target — The group of settings and files that determine what your code is

Page 3 - Table of Contents

Processor Expert InterfaceProcessor Expert Tutorial100Targeting MC56F83xx/DSP5685x Controllersc. Type the new name GPIO_C0, then press the Enter key.

Page 4 - 6 C for DSP56800E 113

Processor Expert InterfaceProcessor Expert Tutorial101Targeting MC56F83xx/DSP5685x Controllers e. Repeat substeps a, b, and c for the two ExtInt beans

Page 5 - 8 Debugging for DSP56800E 189

Processor Expert InterfaceProcessor Expert Tutorial102Targeting MC56F83xx/DSP5685x Controllersd. Use this list box to select GPIOC0_SCLK1_TB0_PHASEA1.

Page 6

Processor Expert InterfaceProcessor Expert Tutorial103Targeting MC56F83xx/DSP5685x Controllers 7. Enable BitIO SetDir, ClrVal, and SetVal functions.a.

Page 7 - A Porting Issues 353

Processor Expert InterfaceProcessor Expert Tutorial104Targeting MC56F83xx/DSP5685x Controllers10. Update file Events.c.a. Click the project window’s F

Page 8

Processor Expert InterfaceProcessor Expert Tutorial105Targeting MC56F83xx/DSP5685x Controllers This completes the Processor Expert tutorial exercise.

Page 9

Processor Expert InterfaceProcessor Expert Tutorial106Targeting MC56F83xx/DSP5685x Controllers**** ###################################################

Page 10 - CodeWarrior IDE

Processor Expert InterfaceProcessor Expert Tutorial107Targeting MC56F83xx/DSP5685x Controllers ** ====================================================

Page 11 - References

Processor Expert InterfaceProcessor Expert Tutorial108Targeting MC56F83xx/DSP5685x ControllersListing 5.2 File LEDcontrol.c/*** #####################

Page 12

Processor Expert InterfaceProcessor Expert Tutorial109Targeting MC56F83xx/DSP5685x Controllers #include "GPIO_C0.h"#include "GPIO_C1.h&

Page 13 - Getting Started

IntroductionMotorola 56800/E Hybrid Controllers11Targeting MC56F83xx/DSP5685x Controllers Motorola 56800/E Hybrid ControllersThe Motorola 56800/E Hybr

Page 14

Processor Expert InterfaceProcessor Expert Tutorial110Targeting MC56F83xx/DSP5685x Controllers { num = 7-num; } if

Page 15 - Creating a Project

Processor Expert InterfaceProcessor Expert Tutorial111Targeting MC56F83xx/DSP5685x Controllers case 5: GPIO_D6_ClrVal(); brea

Page 16 - Project Wizard

Processor Expert InterfaceProcessor Expert Tutorial112Targeting MC56F83xx/DSP5685x Controllers }}void main(void){ /*** Processor Expert intern

Page 17

113Targeting MC56F83xx/DSP5685x Controllers6C for DSP56800EThis chapter explains considerations for using C with the DSP56800E processor. Note that th

Page 18

C for DSP56800ENumber Formats114Targeting MC56F83xx/DSP5685x Controllers Table 6.1 56800E Ordinal TypesType Option Setting Size (bits)Rangechar Use U

Page 19 - 2.4) appears

C for DSP56800ECalling Conventions and Stack Frames115Targeting MC56F83xx/DSP5685x Controllers Table 6.2 shows the sizes and ranges of the floating-po

Page 20

C for DSP56800ECalling Conventions and Stack Frames116Targeting MC56F83xx/DSP5685x ControllersReturning Values From FunctionsThe compiler returns func

Page 21 - Stationery

C for DSP56800ECalling Conventions and Stack Frames117Targeting MC56F83xx/DSP5685x Controllers Arithmetic Logic Unit (ALU) (continued)A10 32 Volatile

Page 22

C for DSP56800ECalling Conventions and Stack Frames118Targeting MC56F83xx/DSP5685x ControllersAddress Generation Unit (AGU) (continued)SP 24 Volatile

Page 23

C for DSP56800ECalling Conventions and Stack Frames119Targeting MC56F83xx/DSP5685x Controllers Stack Frame and AlignmentFigure 6.1. depicts generation

Page 24

IntroductionReferences12Targeting MC56F83xx/DSP5685x Controllers– Code Warrior IDE User’s Guide– Code Warrior Development Studio for Motorola 56800/E

Page 25

C for DSP56800EUser Stack Allocation120Targeting MC56F83xx/DSP5685x ControllersThe compiler always must operate with the stack pointer long aligned. T

Page 26

C for DSP56800EUser Stack Allocation121Targeting MC56F83xx/DSP5685x Controllers 4. You must not overwrite the compiler’s stack allocation by decreasin

Page 27

C for DSP56800EUser Stack Allocation122Targeting MC56F83xx/DSP5685x ControllersIn cases where the SP is modified by a run-time dependent amount, a war

Page 28

C for DSP56800EUser Stack Allocation123Targeting MC56F83xx/DSP5685x Controllers asm(nop);\ asm(nop);}#pragma check_inline_sp_

Page 29 - Overview

C for DSP56800EUser Stack Allocation124Targeting MC56F83xx/DSP5685x Controllersasm(nop);}#pragma check_inline_sp_effects onint func(){int a=1, b=1, c;

Page 30 - Development Process

C for DSP56800EData Alignment Requirements125Targeting MC56F83xx/DSP5685x Controllers {EnterCritical();c = a+b;}else {EnterCritical();c = b++;}return

Page 31 - Manage Files (1)

C for DSP56800EData Alignment Requirements126Targeting MC56F83xx/DSP5685x Controllers• Structures — double-word boundaries if they contain 32-bit elem

Page 32 - Project Files

C for DSP56800ECode and Data Storage127Targeting MC56F83xx/DSP5685x Controllers • Reordering is mandatory if local variables are allocated on the stac

Page 33 - Editing Code

C for DSP56800ECode and Data Storage128Targeting MC56F83xx/DSP5685x Controllerscheckbox.”. You can locate these sections in the lower half of the memo

Page 34 - Development Studio Overview

C for DSP56800ELarge Data Model Support129Targeting MC56F83xx/DSP5685x Controllers Large Data Model SupportThe DSP56800E extends the DSP56800 data add

Page 35

13Targeting MC56F83xx/DSP5685x Controllers2Getting StartedThis chapter explains the setup and installation for the CodeWarrior™ IDE, including hardwar

Page 36 - Debugging

C for DSP56800ELarge Data Model Support130Targeting MC56F83xx/DSP5685x ControllersYou do not need to change C source code to take advantage of the lar

Page 37 - Target Settings

C for DSP56800ELarge Data Model Support131Targeting MC56F83xx/DSP5685x Controllers Table 6.5 lists ways to access a global integer stored at address X

Page 38

C for DSP56800EOptimizing Code132Targeting MC56F83xx/DSP5685x ControllersExternal Library CompatibilityIf you enable the large data model when the com

Page 39 - Changing Target Settings

C for DSP56800EDeadstripping and Link Order133Targeting MC56F83xx/DSP5685x Controllers for (i=0; i<100; i++) { MyFunc(i); }for (j=0; j<100; j++)

Page 40

C for DSP56800EDeadstripping and Link Order134Targeting MC56F83xx/DSP5685x ControllersLibraries built with the CodeWarrior C compiler contribute only

Page 41 - Restoring Target Settings

135Targeting MC56F83xx/DSP5685x Controllers7Inline Assembly Language and IntrinsicsThe CodeWarrior™ compiler supports inline assembly language and int

Page 42

Inline Assembly Language and IntrinsicsInline Assembly Language136Targeting MC56F83xx/DSP5685x ControllersInline Assembly OverviewTo specify assembly-

Page 43

Inline Assembly Language and IntrinsicsInline Assembly Language137Targeting MC56F83xx/DSP5685x Controllers Listing 7.3 shows how to use the asm keywor

Page 44

Inline Assembly Language and IntrinsicsInline Assembly Language138Targeting MC56F83xx/DSP5685x Controllers6. Assembly language directives, instruction

Page 45 - C/C++ Language

Inline Assembly Language and IntrinsicsInline Assembly Language139Targeting MC56F83xx/DSP5685x Controllers add x0,y0// int result returned in y0rts}Li

Page 46

Getting StartedInstalling the CodeWarrior IDE14Targeting MC56F83xx/DSP5685x Controllers1. Insert the CodeWarrior CD-ROM into your CD-ROM drive — an in

Page 47 - Element Purpose Comments

Inline Assembly Language and IntrinsicsInline Assembly Language140Targeting MC56F83xx/DSP5685x Controllers;pointed to by R0 in P: memory and;post-incr

Page 48 - C/C++ Preprocessor

Inline Assembly Language and IntrinsicsIntrinsic Functions141Targeting MC56F83xx/DSP5685x Controllers Intrinsic FunctionsThis section explains CodeWar

Page 49 - Table 4.6

Inline Assembly Language and IntrinsicsIntrinsic Functions142Targeting MC56F83xx/DSP5685x Controllers * Allowed dst regs: (same) * * Assumptions: OMR&

Page 50 - C/C++ Warnings

Inline Assembly Language and IntrinsicsIntrinsic Functions143Targeting MC56F83xx/DSP5685x Controllers NOTE Intrinsic functions us these macros:Word16.

Page 51

Inline Assembly Language and IntrinsicsIntrinsic Functions144Targeting MC56F83xx/DSP5685x ControllersTable 7.2 Intrinsic Functions for DSP56800ECateg

Page 52

Inline Assembly Language and IntrinsicsIntrinsic Functions145Targeting MC56F83xx/DSP5685x Controllers Absolute/NegateThe intrinsic functions of the ab

Page 53

Inline Assembly Language and IntrinsicsIntrinsic Functions146Targeting MC56F83xx/DSP5685x ControllersPrototypeWord16 negate(Word16 svar1)Exampleint re

Page 54 - M56800E Assembler

Inline Assembly Language and IntrinsicsIntrinsic Functions147Targeting MC56F83xx/DSP5685x Controllers PrototypeWord32 L_negate(Word32 lvar1)Examplelon

Page 55

Inline Assembly Language and IntrinsicsIntrinsic Functions148Targeting MC56F83xx/DSP5685x ControllersExampleshort s1 = 0x4000; /* 0.5 */short s2 = 0x

Page 56 - M56800E Processor

Inline Assembly Language and IntrinsicsIntrinsic Functions149Targeting MC56F83xx/DSP5685x Controllers L_addAddition of two 32-bit integer or fractiona

Page 57

Getting StartedCreating a Project15Targeting MC56F83xx/DSP5685x Controllers NOTE Do not move the license.dat file after installation.12. This complete

Page 58

Inline Assembly Language and IntrinsicsIntrinsic Functions150Targeting MC56F83xx/DSP5685x Controllers Examplelong la = 0x40000000; /* 0.5 */long lb

Page 59 - ELF Disassembler

Inline Assembly Language and IntrinsicsIntrinsic Functions151Targeting MC56F83xx/DSP5685x Controllers waitGenerates a WAIT instruction which places th

Page 60

Inline Assembly Language and IntrinsicsIntrinsic Functions152Targeting MC56F83xx/DSP5685x ControllersPrototypevoid turn_off_sat(void)Usageturn_off_sat

Page 61 - M56800E Linker

Inline Assembly Language and IntrinsicsIntrinsic Functions153Targeting MC56F83xx/DSP5685x Controllers Deposit/ExtractThe intrinsic functions of the de

Page 62

Inline Assembly Language and IntrinsicsIntrinsic Functions154Targeting MC56F83xx/DSP5685x ControllersExamplelong l = 0x87654321;short result;result =

Page 63

Inline Assembly Language and IntrinsicsIntrinsic Functions155Targeting MC56F83xx/DSP5685x Controllers Exampleshort s1 = 0x7FFF;long result;result = L_

Page 64

Inline Assembly Language and IntrinsicsIntrinsic Functions156Targeting MC56F83xx/DSP5685x ControllersExampleshort s1=0x2000; /* 0.25 */short s2=0x4000

Page 65

Inline Assembly Language and IntrinsicsIntrinsic Functions157Targeting MC56F83xx/DSP5685x Controllers NOTE Does not check for division overflow or div

Page 66 - Remote Debugging

Inline Assembly Language and IntrinsicsIntrinsic Functions158Targeting MC56F83xx/DSP5685x ControllersMultiplication/MACThe intrinsic functions of the

Page 67 - M56800E Target (Debugging)

Inline Assembly Language and IntrinsicsIntrinsic Functions159Targeting MC56F83xx/DSP5685x Controllers Exampleshort s1 = 0xC000;/* - 0.5 */short s2 = 0

Page 68

Getting StartedCreating a Project16Targeting MC56F83xx/DSP5685x ControllersTo create a DSP56800x project use either the:• DSP56800x new project wizard

Page 69

Inline Assembly Language and IntrinsicsIntrinsic Functions160Targeting MC56F83xx/DSP5685x ControllersmultMultiply two 16-bit fractional values and tru

Page 70

Inline Assembly Language and IntrinsicsIntrinsic Functions161Targeting MC56F83xx/DSP5685x Controllers PrototypeWord16 mult_r(Word16 sinp1, Word16 sinp

Page 71 - Remote Debug Options

Inline Assembly Language and IntrinsicsIntrinsic Functions162Targeting MC56F83xx/DSP5685x ControllersL_msuMultiply two 16-bit fractional values and su

Page 72

Inline Assembly Language and IntrinsicsIntrinsic Functions163Targeting MC56F83xx/DSP5685x Controllers Exampleshort s1 = 0x2000;/* 0.25 */short s2 = 0x

Page 73

Inline Assembly Language and IntrinsicsIntrinsic Functions164Targeting MC56F83xx/DSP5685x ControllersNormalizationThe intrinsic functions of the norma

Page 74

Inline Assembly Language and IntrinsicsIntrinsic Functions165Targeting MC56F83xx/DSP5685x Controllers NOTE Does not actually normalize the value! This

Page 75

Inline Assembly Language and IntrinsicsIntrinsic Functions166Targeting MC56F83xx/DSP5685x ControllersExamplelong ll = 0x20000000;/* .25 */short result

Page 76 - Processor Expert Overview

Inline Assembly Language and IntrinsicsIntrinsic Functions167Targeting MC56F83xx/DSP5685x Controllers RoundingThe intrinsic function of the rounding g

Page 77

Inline Assembly Language and IntrinsicsIntrinsic Functions168Targeting MC56F83xx/DSP5685x ControllersShiftingThe intrinsic functions of the shifting g

Page 78 - Processor Expert Beans

Inline Assembly Language and IntrinsicsIntrinsic Functions169Targeting MC56F83xx/DSP5685x Controllers Exampleshort result;short s1 = 0x1234;short s2 =

Page 79 - Processor Expert Menu

Getting StartedCreating a Project17Targeting MC56F83xx/DSP5685x Controllers Figure 2.1 New Dialog Box2. Select DSP56800x New Project Wizard.3. In the

Page 80 - Item Subitem Action

Inline Assembly Language and IntrinsicsIntrinsic Functions170Targeting MC56F83xx/DSP5685x ControllersExampleshort result;short s1 = 0x1234;short s2 =

Page 81

Inline Assembly Language and IntrinsicsIntrinsic Functions171Targeting MC56F83xx/DSP5685x Controllers Exampleshort result;short s1 = 0x1234;short s2 =

Page 82

Inline Assembly Language and IntrinsicsIntrinsic Functions172Targeting MC56F83xx/DSP5685x Controllersshr_rArithmetic shift of 16-bit value by a specif

Page 83 - Processor Expert Windows

Inline Assembly Language and IntrinsicsIntrinsic Functions173Targeting MC56F83xx/DSP5685x Controllers NOTE Ignores upper N-5 bits of s_shftamount exce

Page 84 - Bean Inspector

Inline Assembly Language and IntrinsicsIntrinsic Functions174Targeting MC56F83xx/DSP5685x ControllersPrototypeWord32 L_shl(Word32 lval2shft, Word16 s_

Page 85

Inline Assembly Language and IntrinsicsIntrinsic Functions175Targeting MC56F83xx/DSP5685x Controllers L_shlftsArithmetic left shift of 32-bit value by

Page 86 - Target CPU Window

Inline Assembly Language and IntrinsicsIntrinsic Functions176Targeting MC56F83xx/DSP5685x ControllersAssumptionsOMR’s SA bit was set to 1 at least 3 c

Page 87

Inline Assembly Language and IntrinsicsIntrinsic Functions177Targeting MC56F83xx/DSP5685x Controllers Examplelong l1 = 0x41111111;short s2 = 1;long re

Page 88

Inline Assembly Language and IntrinsicsIntrinsic Functions178Targeting MC56F83xx/DSP5685x ControllersFigure 7.1 Example of a Modulo BufferThe CodeWar

Page 89

Inline Assembly Language and IntrinsicsIntrinsic Functions179Targeting MC56F83xx/DSP5685x Controllers • __mod_setint16• __mod_error__mod_initInitializ

Page 90

Getting StartedCreating a Project18Targeting MC56F83xx/DSP5685x ControllersFigure 2.2 DSP56800x New Project Wizard — Target Dialog Box6. Select the t

Page 91 - Memory Map Window

Inline Assembly Language and IntrinsicsIntrinsic Functions180Targeting MC56F83xx/DSP5685x Controllers__mod_init(0, (void *)&struct_buf[0], 3, size

Page 92 - CPU Types Overview

Inline Assembly Language and IntrinsicsIntrinsic Functions181Targeting MC56F83xx/DSP5685x Controllers __mod_accessRetrieve the modulo pointer. The __m

Page 93 - Resource Meter

Inline Assembly Language and IntrinsicsIntrinsic Functions182Targeting MC56F83xx/DSP5685x ControllersPrototypevoid __mod_stop( int <mod_desc );__m

Page 94 - Installed Beans Overview

Inline Assembly Language and IntrinsicsIntrinsic Functions183Targeting MC56F83xx/DSP5685x Controllers __mod_setint16( 0, getrandomint(), 0 );__mod_err

Page 95 - Peripherals Usage Inspector

Inline Assembly Language and IntrinsicsIntrinsic Functions184Targeting MC56F83xx/DSP5685x Controllers#pragma section DATA_INT_MODULO beginint int_buf[

Page 96

Inline Assembly Language and IntrinsicsIntrinsic Functions185Targeting MC56F83xx/DSP5685x Controllers Listing 7.12 Modulo Buffer Example 2/* Set up a

Page 97

Inline Assembly Language and IntrinsicsIntrinsic Functions186Targeting MC56F83xx/DSP5685x Controllersaffects all user function calls, run-time support

Page 98

Inline Assembly Language and IntrinsicsIntrinsic Functions187Targeting MC56F83xx/DSP5685x Controllers 22 Attempt to use word pointer functions with by

Page 99

Inline Assembly Language and IntrinsicsIntrinsic Functions188Targeting MC56F83xx/DSP5685x Controllers

Page 100 - Processor Expert Tutorial

189Targeting MC56F83xx/DSP5685x Controllers8Debugging for DSP56800EThis chapter, which explains the generic features of the CodeWarrior™ debugger, con

Page 101 - GPIO_C0. The

Getting StartedCreating a Project19Targeting MC56F83xx/DSP5685x Controllers Figure 2.3 DSP56800x New Project Wizard — Program Choice Dialog Box8. Sel

Page 102

Debugging for DSP56800ECommand Converter Server190Targeting MC56F83xx/DSP5685x ControllersThe M56800E Target panel is unique to DSP56800E debugging. T

Page 103

Debugging for DSP56800ECommand Converter Server191Targeting MC56F83xx/DSP5685x Controllers Essential Target Settings for Command Converter ServerBefor

Page 104

Debugging for DSP56800ECommand Converter Server192Targeting MC56F83xx/DSP5685x Controllers1. Click the command converter server icon.While the command

Page 105 - Listing 5.1 File Events.c

Debugging for DSP56800ECommand Converter Server193Targeting MC56F83xx/DSP5685x Controllers Figure 8.3 Metrowerks Command Converter Server Window3. On

Page 106

Debugging for DSP56800ECommand Converter Server194Targeting MC56F83xx/DSP5685x ControllersChanging the Command Converter Server Protocol to PCITo chan

Page 107

Debugging for DSP56800ECommand Converter Server195Targeting MC56F83xx/DSP5685x Controllers Figure 8.4 Remote Connections PanelTo Add a New Remote Con

Page 108

Debugging for DSP56800ECommand Converter Server196Targeting MC56F83xx/DSP5685x ControllersFigure 8.5 New Connection Window2. In the Name edit box, ty

Page 109

Debugging for DSP56800ELoad/Save Memory197Targeting MC56F83xx/DSP5685x Controllers 6. Click the OK button.To Change an Existing Remote ConnectionTo ch

Page 110

Debugging for DSP56800ELoad/Save Memory198Targeting MC56F83xx/DSP5685x ControllersFigure 8.6 Load/Save Memory Dialog BoxUse this dialog box to load a

Page 111

Debugging for DSP56800ELoad/Save Memory199Targeting MC56F83xx/DSP5685x Controllers Radio ButtonsThe Load/Save Memory dialog box has two radio buttons:

Page 112

2 Targeting MC56F83xx/DSP5685x ControllersMetrowerks, the Metrowerks logo, and CodeWarrior are trademarks or registered trademarks of Metrowerks Corp.

Page 113 - C for DSP56800E

Getting StartedCreating a Project20Targeting MC56F83xx/DSP5685x ControllersFigure 2.4 DSP56800x New Project Wizard — Finish Dialog Box10. Click Finis

Page 114 - Type Option Setting Size

Debugging for DSP56800EFill Memory200Targeting MC56F83xx/DSP5685x ControllersBrowse ButtonClicking the Browse button displays OPENFILENAME or SAVEFILE

Page 115 - Passing Values to Functions

Debugging for DSP56800EFill Memory201Targeting MC56F83xx/DSP5685x Controllers NOTE By default, the History combo box displays the most recent settings

Page 116

Debugging for DSP56800ESave/Restore Registers202Targeting MC56F83xx/DSP5685x ControllersDialog Box ControlsOK, Cancel, and EscClicking OK writes the m

Page 117

Debugging for DSP56800ESave/Restore Registers203Targeting MC56F83xx/DSP5685x Controllers History Combo BoxThe History combo box displays a list of rec

Page 118

Debugging for DSP56800EEOnCE Debugger Features204Targeting MC56F83xx/DSP5685x ControllersBrowse ButtonClicking the Browse button displays OPENFILENAME

Page 119 - Stack Frame and Alignment

Debugging for DSP56800EEOnCE Debugger Features205Targeting MC56F83xx/DSP5685x Controllers Figure 8.9 Set Hardware Breakpoint PanelThe Set Hardware Br

Page 120 - User Stack Allocation

Debugging for DSP56800EEOnCE Debugger Features206Targeting MC56F83xx/DSP5685x ControllersFigure 8.10 EOnCE Special Counter PanelThe EOnCE Special Cou

Page 121

Debugging for DSP56800EEOnCE Debugger Features207Targeting MC56F83xx/DSP5685x Controllers This pull down list lets you set the order in which a trigge

Page 122

Debugging for DSP56800EEOnCE Debugger Features208Targeting MC56F83xx/DSP5685x Controllers1. From the IDE menu bar, select DSP56800E > Dump Trace Bu

Page 123 - , b, or c may not be correct

Debugging for DSP56800EEOnCE Debugger Features209Targeting MC56F83xx/DSP5685x Controllers Select this checkbox to capture addresses of interrupt vecto

Page 124

Getting StartedCreating a Project21Targeting MC56F83xx/DSP5685x Controllers 12. (Optional) Add source files to the project.a. Method 1: From the main-

Page 125 - Data Alignment Requirements

Debugging for DSP56800EEOnCE Debugger Features210Targeting MC56F83xx/DSP5685x ControllersFigure 8.13 Set Trigger PanelThe Set Trigger panel options a

Page 126 - Word and Byte Pointers

Debugging for DSP56800EUsing the DSP56800E Simulator211Targeting MC56F83xx/DSP5685x Controllers • Data compare lengthWhen the data trigger (address a

Page 127 - Code and Data Storage

Debugging for DSP56800EUsing the DSP56800E Simulator212Targeting MC56F83xx/DSP5685x Controllerscode on a simulated DSP56800E architecture without inst

Page 128

Debugging for DSP56800ELaunching and Operating the Debugger213Targeting MC56F83xx/DSP5685x Controllers Memory MapFigure 8.15 Simulator Memory MapNOTE

Page 129 - Large Data Model Support

Debugging for DSP56800ELaunching and Operating the Debugger214Targeting MC56F83xx/DSP5685x Controllers1. Set debugger preferences.Select Edit >sdm

Page 130

Debugging for DSP56800ELaunching and Operating the Debugger215Targeting MC56F83xx/DSP5685x Controllers This command resets the board (if Always reset

Page 131

Debugging for DSP56800ELaunching and Operating the Debugger216Targeting MC56F83xx/DSP5685x ControllersFigure 8.17 Program Window5. Navigate through y

Page 132 - Optimizing Code

Debugging for DSP56800ELaunching and Operating the Debugger217Targeting MC56F83xx/DSP5685x Controllers The toolbar at the top of the window has button

Page 133 - Deadstripping and Link Order

Debugging for DSP56800ELaunching and Operating the Debugger218Targeting MC56F83xx/DSP5685x ControllersNOTE To remove the breakpoint, click the red dot

Page 134 - Deadstripping and Link Order

Debugging for DSP56800ELaunching and Operating the Debugger219Targeting MC56F83xx/DSP5685x Controllers Figure 8.19 General Purpose Registers for DSP5

Page 135 - Inline Assembly Language

Getting StartedCreating a Project22Targeting MC56F83xx/DSP5685x Controllers2. Specify a new DSP56800E project named NewProj1.a. If necessary, click th

Page 136 - Inline Assembly Overview

Debugging for DSP56800ERegister Details Window220Targeting MC56F83xx/DSP5685x ControllersFigure 8.20 General Purpose Registers Window2. Edit register

Page 137 - Assembly Language Quick Guide

Debugging for DSP56800ERegister Details Window221Targeting MC56F83xx/DSP5685x Controllers Figure 8.21 Register Details WindowIn the Register Details

Page 138

Debugging for DSP56800ERegister Details Window222Targeting MC56F83xx/DSP5685x Controllers1. Locate a particular address in program memory.From the men

Page 139

Debugging for DSP56800ERegister Details Window223Targeting MC56F83xx/DSP5685x Controllers NOTE The other view options (Disassembly, Source and Mixed)

Page 140 - Language

Debugging for DSP56800ERegister Details Window224Targeting MC56F83xx/DSP5685x ControllersFigure 8.23 View P:Memory (Raw Data) Window• Disassembly (Fi

Page 141 - Intrinsic Functions

Debugging for DSP56800ERegister Details Window225Targeting MC56F83xx/DSP5685x Controllers Figure 8.25 View P:Memory (Source) Window• Mixed (Figure 8.

Page 142 - Fractional Arithmetic

Debugging for DSP56800ELoading a .elf File without a Project226Targeting MC56F83xx/DSP5685x ControllersLoading a .elf File without a ProjectYou can lo

Page 143

Debugging for DSP56800ECommand-Line Debugging227Targeting MC56F83xx/DSP5685x Controllers Command-Line DebuggingIn addition to using the regular CodeWa

Page 144

Debugging for DSP56800ECommand-Line Debugging228Targeting MC56F83xx/DSP5685x ControllersListing 8.1 Example Tcl Scriptset x 0; while {$x < 5}{puts

Page 145 - Absolute/Negate

Debugging for DSP56800ECommand-Line Debugging229Targeting MC56F83xx/DSP5685x Controllers NOTE There is no synchronization of debug events in the start

Page 146 - L_negate

Getting StartedCreating a Project23Targeting MC56F83xx/DSP5685x Controllers 4. In the New window, click the OK button. The New Project window (Figure

Page 147 - Addition/Subtraction

Debugging for DSP56800ECommand-Line Debugging230Targeting MC56F83xx/DSP5685x ControllersView Debugging Command HintsYou can view debugging command hin

Page 148

Debugging for DSP56800ECommand-Line Debugging231Targeting MC56F83xx/DSP5685x Controllers Stop an Executing ScriptTo stop a script that is executing, p

Page 149

Debugging for DSP56800ECommand-Line Debugging232Targeting MC56F83xx/DSP5685x Controllers2. Press Enter or choose Edit > Copy.Paste Text into the Co

Page 150

Debugging for DSP56800ECommand-Line Debugging233Targeting MC56F83xx/DSP5685x Controllers ExamplesTable 8.3 shows examples of the alias command.Table 8

Page 151

Debugging for DSP56800ECommand-Line Debugging234Targeting MC56F83xx/DSP5685x ControllersbringtofrontUse the bringtofront debugging command to indicate

Page 152

Debugging for DSP56800ECommand-Line Debugging235Targeting MC56F83xx/DSP5685x Controllers cdUse the cd debugging command to change to a different direc

Page 153 - Deposit/Extract

Debugging for DSP56800ECommand-Line Debugging236Targeting MC56F83xx/DSP5685x Controllers• A single register• A block of registers• A single memory add

Page 154 - L_deposit_l

Debugging for DSP56800ECommand-Line Debugging237Targeting MC56F83xx/DSP5685x Controllers • If value is a hexadecimal value, the debugger determines th

Page 155 - Division

Debugging for DSP56800ECommand-Line Debugging238Targeting MC56F83xx/DSP5685x ControllerscloseUse the close debugging command to close the opened defau

Page 156

Debugging for DSP56800ECommand-Line Debugging239Targeting MC56F83xx/DSP5685x Controllers p[rocessor] processor_name [subprocessor_name] ]text_color ::

Page 157

Getting StartedCreating a Project24Targeting MC56F83xx/DSP5685x Controllersb. Select (highlight) Simple C. (Figure 2.8 shows this selection.)Figure 2.

Page 158 - Multiplication/MAC

Debugging for DSP56800ECommand-Line Debugging240Targeting MC56F83xx/DSP5685x ControllerscopyUse the copy debugging command to copy the contents of a m

Page 159

Debugging for DSP56800ECommand-Line Debugging241Targeting MC56F83xx/DSP5685x Controllers debugUse the debug command to start a command-line debugging

Page 160

Debugging for DSP56800ECommand-Line Debugging242Targeting MC56F83xx/DSP5685x ControllersdisassembleUse the disassemble debugging command to disassembl

Page 161

Debugging for DSP56800ECommand-Line Debugging243Targeting MC56F83xx/DSP5685x Controllers displayUse the display debugging command to:• Display the con

Page 162

Debugging for DSP56800ECommand-Line Debugging244Targeting MC56F83xx/DSP5685x Controllers64bit]]reg_group ::= a list of register sets separated by spac

Page 163 - L_mult_ls

Debugging for DSP56800ECommand-Line Debugging245Targeting MC56F83xx/DSP5685x Controllers evaluateUse the evaluate debugging command to display a C var

Page 164 - Normalization

Debugging for DSP56800ECommand-Line Debugging246Targeting MC56F83xx/DSP5685x ControllersexitUse the exit debugging command to close the command-line d

Page 165

Debugging for DSP56800ECommand-Line Debugging247Targeting MC56F83xx/DSP5685x Controllers helpUse the help debugging command to display help for the de

Page 166

Debugging for DSP56800ECommand-Line Debugging248Targeting MC56F83xx/DSP5685x Controllershsst_attach_listenerUse the hsst_attach_listener command to se

Page 167 - Rounding

Debugging for DSP56800ECommand-Line Debugging249Targeting MC56F83xx/DSP5685x Controllers hsst_block_mode $cidhsst_closeUse the hsst_close debugging co

Page 168 - Shifting

Getting StartedCreating a Project25Targeting MC56F83xx/DSP5685x Controllers NOTE The IDE has the same functionality whether subordinate windows (such

Page 169

Debugging for DSP56800ECommand-Line Debugging250Targeting MC56F83xx/DSP5685x ControllersPrototypehsst_l[og] cid [ directory_name ]ExamplesTable 8.19 s

Page 170

Debugging for DSP56800ECommand-Line Debugging251Targeting MC56F83xx/DSP5685x Controllers Prototypehsst_o[pen] channel_nameExampleOpen a channel and se

Page 171

Debugging for DSP56800ECommand-Line Debugging252Targeting MC56F83xx/DSP5685x Controllershsst_write 2 0x1234 $cidinputUse the input debugging command t

Page 172

Debugging for DSP56800ECommand-Line Debugging253Targeting MC56F83xx/DSP5685x Controllers killUse the kill debugging command to close one or all curren

Page 173

Debugging for DSP56800ECommand-Line Debugging254Targeting MC56F83xx/DSP5685x ControllerslogUse the log debugging command to log either the commands th

Page 174 - L_shlftNs

Debugging for DSP56800ECommand-Line Debugging255Targeting MC56F83xx/DSP5685x Controllers nextUse the next debugging command to step over subroutine ca

Page 175 - L_shlfts

Debugging for DSP56800ECommand-Line Debugging256Targeting MC56F83xx/DSP5685x Controllers•Use -ru to indicate that the output file is an unsigned decim

Page 176

Debugging for DSP56800ECommand-Line Debugging257Targeting MC56F83xx/DSP5685x Controllers The default input and display radix is 16: hexadecimal input

Page 177 - L_shrtNs

Debugging for DSP56800ECommand-Line Debugging258Targeting MC56F83xx/DSP5685x ControllersrestartUse the restart debugging command to restart the debugg

Page 178

Debugging for DSP56800ECommand-Line Debugging259Targeting MC56F83xx/DSP5685x Controllers run test.tclNOTE You can use the run command to run a script

Page 179 - __mod_init

Getting StartedCreating a Project26Targeting MC56F83xx/DSP5685x ControllersFigure 2.10 Project Window (docked)6. This completes project creation. Yo

Page 180 - __mod_start

Debugging for DSP56800ECommand-Line Debugging260Targeting MC56F83xx/DSP5685x Controllers• -a = append to an existing file• -c = write if the file does

Page 181 - __mod_stop

Debugging for DSP56800ECommand-Line Debugging261Targeting MC56F83xx/DSP5685x Controllers ExamplesTable 8.27 shows examples of the step command.\stopUs

Page 182 - __mod_setint16

Debugging for DSP56800ECommand-Line Debugging262Targeting MC56F83xx/DSP5685x ControllersPrototypesw[itchtarget] [index]ExamplesTable 8.29 shows exampl

Page 183 - Modulo Buffer Examples

Debugging for DSP56800ECommand-Line Debugging263Targeting MC56F83xx/DSP5685x Controllers system del *.tmpviewUse the view debugging command to change

Page 184

Debugging for DSP56800ESystem-Level Connect264Targeting MC56F83xx/DSP5685x ControllerswatchpointUse the watchpoint debugging command to add, remove, o

Page 185 - Points to Remember

Debugging for DSP56800EDebugging in the Flash Memory265Targeting MC56F83xx/DSP5685x Controllers NOTE The following procedure explains how to connect i

Page 186 - Modulo Addressing Error Codes

Debugging for DSP56800EDebugging in the Flash Memory266Targeting MC56F83xx/DSP5685x ControllersThe value for the set_hfmclkd command depends on the fr

Page 187 - Code Meaning

Debugging for DSP56800ENotes for Debugging on Hardware267Targeting MC56F83xx/DSP5685x Controllers Size> <progMem> <boot> <interleave

Page 188

Debugging for DSP56800ENotes for Debugging on Hardware268Targeting MC56F83xx/DSP5685x Controllers• Ensure your Flash data size fits into Flash memory.

Page 189 - Debugging for DSP56800E

269Targeting MC56F83xx/DSP5685x Controllers9High-Speed Simultaneous TransferHigh-Speed Simultaneous Transfer (HSST) facilitates data transfer between

Page 190 - Command Converter Server

Getting StartedCreating a Project27Targeting MC56F83xx/DSP5685x Controllers b. Method 2: Drag files from the desktop or Windows Explorer to the projec

Page 191 - Protocol to Parallel Port

High-Speed Simultaneous TransferHost-Side Client Interface270Targeting MC56F83xx/DSP5685x ControllersPrototypeHRESULT hsst_open ( const char* channel_

Page 192

High-Speed Simultaneous TransferHost-Side Client Interface271Targeting MC56F83xx/DSP5685x Controllers hsst_readA host-side client application uses thi

Page 193

High-Speed Simultaneous TransferHost-Side Client Interface272Targeting MC56F83xx/DSP5685x Controllershsst_writeA host-side client application uses thi

Page 194 - Protocol to PCI

High-Speed Simultaneous TransferHost-Side Client Interface273Targeting MC56F83xx/DSP5685x Controllers hsst_sizeA host-side client application uses thi

Page 195 - 1. Click the Add button

High-Speed Simultaneous TransferHost-Side Client Interface274Targeting MC56F83xx/DSP5685x ControllersReturnsS_OK if the call succeeds or S_FALSE if th

Page 196

High-Speed Simultaneous TransferHost-Side Client Interface275Targeting MC56F83xx/DSP5685x Controllers PrototypeHRESULT hsst_attach_listener ( size_t c

Page 197 - Load/Save Memory

High-Speed Simultaneous TransferHost-Side Client Interface276Targeting MC56F83xx/DSP5685x Controllershsst_set_log_dirA host-side client application us

Page 198 - History Combo Box

High-Speed Simultaneous TransferHost-Side Client Interface277Targeting MC56F83xx/DSP5685x Controllers NOTE Before launching the program, the IDE plugi

Page 199 - Dialog Box Controls

High-Speed Simultaneous TransferTarget Library Interface278Targeting MC56F83xx/DSP5685x Controllersreturn 0;}Target Library InterfaceThis section desc

Page 200 - Fill Memory

High-Speed Simultaneous TransferTarget Library Interface279Targeting MC56F83xx/DSP5685x Controllers Prototypeint HSST_close ( HSST_STREAM *stream )

Page 201 - Fill Expression Text Field

Getting StartedCreating a Project28Targeting MC56F83xx/DSP5685x Controllers

Page 202 - Save/Restore Registers

High-Speed Simultaneous TransferTarget Library Interface280Targeting MC56F83xx/DSP5685x ControllersbufPasses a pointer to an external buffer.modePasse

Page 203 - Register Group List

High-Speed Simultaneous TransferTarget Library Interface281Targeting MC56F83xx/DSP5685x Controllers nmembPasses the number of data elements to write.s

Page 204 - EOnCE Debugger Features

High-Speed Simultaneous TransferTarget Library Interface282Targeting MC56F83xx/DSP5685x ControllersHSST_flushA target application uses this function t

Page 205 - Special Counters

High-Speed Simultaneous TransferTarget Library Interface283Targeting MC56F83xx/DSP5685x Controllers HSST_raw_readA target application uses this functi

Page 206

High-Speed Simultaneous TransferTarget Library Interface284Targeting MC56F83xx/DSP5685x ControllersPrototypesize_t HSST_raw_write ( void *ptr, size

Page 207 - Trace Buffer

High-Speed Simultaneous TransferTarget Library Interface285Targeting MC56F83xx/DSP5685x Controllers ParametersstreamPasses a pointer to the communicat

Page 208

High-Speed Simultaneous TransferTarget Library Interface286Targeting MC56F83xx/DSP5685x Controllers/* Opening channel 1 and 2 from TARGET side */chann

Page 209 - Set Trigger Panel

287Targeting MC56F83xx/DSP5685x Controllers10ELF Linker and Command LanguageThe CodeWarrior™ Executable and Linking Format (ELF) Linker makes a progra

Page 210

ELF Linker and Command LanguageStructure of Linker Command Files288Targeting MC56F83xx/DSP5685x ControllersMemory SegmentIn the memory segment, availa

Page 211 - Using the DSP56800E Simulator

ELF Linker and Command LanguageStructure of Linker Command Files289Targeting MC56F83xx/DSP5685x Controllers NOTE The closure blocks need to be in plac

Page 212 - Cycle/Instruction Count

29Targeting MC56F83xx/DSP5685x Controllers3Development Studio OverviewThis chapter describes the CodeWarrior™ IDE and explains application development

Page 213 - Memory Map

ELF Linker and Command LanguageLinker Command File Syntax290Targeting MC56F83xx/DSP5685x ControllersListing 10.5 Sample SECTIONS SegmentSECTIONS {.se

Page 214

ELF Linker and Command LanguageLinker Command File Syntax291Targeting MC56F83xx/DSP5685x Controllers Listing 10.7 Sample ALIGNALL Command Usagefile.c

Page 215

ELF Linker and Command LanguageLinker Command File Syntax292Targeting MC56F83xx/DSP5685x ControllersDeadstrip PreventionThe M56800E linker removes unu

Page 216

ELF Linker and Command LanguageLinker Command File Syntax293Targeting MC56F83xx/DSP5685x Controllers Listing 10.11 Accessing a Global Symbol From C P

Page 217 - Setting Breakpoints

ELF Linker and Command LanguageLinker Command File Syntax294Targeting MC56F83xx/DSP5685x ControllersDecimal integers are specified as a non-zero numer

Page 218 - Setting Watchpoints

ELF Linker and Command LanguageLinker Command File Syntax295Targeting MC56F83xx/DSP5685x Controllers Listing 10.16 Sample Function Selection Using OB

Page 219

ELF Linker and Command LanguageLinker Command File Syntax296Targeting MC56F83xx/DSP5685x Controllers.main_application :{# .text sections*(.text)*(.rtl

Page 220 - Register Details Window

ELF Linker and Command LanguageLinker Command File Syntax297Targeting MC56F83xx/DSP5685x Controllers unsigned short a = 0, b = 0, c = 0;unsigned long

Page 221 - Viewing X: Memory

ELF Linker and Command LanguageLinker Command File Keyword Listing298Targeting MC56F83xx/DSP5685x ControllersWRITEB 0x21; // '!'} Linker Co

Page 222

ELF Linker and Command LanguageLinker Command File Keyword Listing299Targeting MC56F83xx/DSP5685x Controllers Example.data :{*(.data)*(.bss)FSTART_ =

Page 223 - Viewing P: Memory

Table of Contents3Targeting MC56F83xx/DSP5685x Controllers Table of Contents1 Introduction 9CodeWarrior IDE . . . . . . . . . . .

Page 224

Development Studio OverviewDevelopment Process30Targeting MC56F83xx/DSP5685x Controllers• CodeWarrior Compiler for DSP56800E — an ANSI-compliant C com

Page 225 - • Mixed (Figure 8.26

ELF Linker and Command LanguageLinker Command File Keyword Listing300Targeting MC56F83xx/DSP5685x ControllersNOTE In order to use segmentName with thi

Page 226

ELF Linker and Command LanguageLinker Command File Keyword Listing301Targeting MC56F83xx/DSP5685x Controllers Example.code :{ALIGNALL(16); // Align co

Page 227 - Command-Line Debugging

ELF Linker and Command LanguageLinker Command File Keyword Listing302Targeting MC56F83xx/DSP5685x ControllersKEEP_SECTIONThe KEEP_SECTION directive al

Page 228

ELF Linker and Command LanguageLinker Command File Keyword Listing303Targeting MC56F83xx/DSP5685x Controllers Examplememory{code (RWX) : ORIGIN = 0x80

Page 229 - Command-Line Debugging Tasks

ELF Linker and Command LanguageLinker Command File Keyword Listing304Targeting MC56F83xx/DSP5685x ControllersOBJECTThe OBJECT keyword allows control o

Page 230 - View Debugging Command Hints

ELF Linker and Command LanguageLinker Command File Keyword Listing305Targeting MC56F83xx/DSP5685x Controllers sectionName is the section name for the

Page 231 - Stop an Executing Script

ELF Linker and Command LanguageLinker Command File Keyword Listing306Targeting MC56F83xx/DSP5685x ControllersExampleSECTIONS {.text : { F_textSegmentS

Page 232

ELF Linker and Command LanguageLinker Command File Keyword Listing307Targeting MC56F83xx/DSP5685x Controllers SIZEOFWThe SIZEOFW function returns the

Page 233 - [func_name

ELF Linker and Command LanguageDSP56800E Command-Line Tools308Targeting MC56F83xx/DSP5685x ControllersWRITEWThe WRITEW command inserts 4 bytes of data

Page 234

ELF Linker and Command LanguageDSP56800E Command-Line Tools309Targeting MC56F83xx/DSP5685x Controllers Also, available are environment variables. Thes

Page 235

Development Studio OverviewDevelopment Process31Targeting MC56F83xx/DSP5685x Controllers Figure 3.1 CodeWarrior IDE Application DevelopmentCompile Pr

Page 236

ELF Linker and Command LanguageDSP56800E Command-Line Tools310Targeting MC56F83xx/DSP5685x ControllersSample Build ScriptThis following is a sample of

Page 237

ELF Linker and Command LanguageDSP56800E Command-Line Tools311Targeting MC56F83xx/DSP5685x Controllers # display helpusage # show usage information[no

Page 238

ELF Linker and Command LanguageDSP56800E Command-Line Tools312Targeting MC56F83xx/DSP5685x Controllers# zero means no maximum; default is 0-msgstyle k

Page 239

ELF Linker and Command LanguageDSP56800E Command-Line Tools313Targeting MC56F83xx/DSP5685x Controllers -dis[assemble] # global; passed to all tools;#

Page 240

ELF Linker and Command LanguageDSP56800E Command-Line Tools314Targeting MC56F83xx/DSP5685x Controllers# filename extension-nosyspath # global; treat #

Page 241

ELF Linker and Command LanguageDSP56800E Command-Line Tools315Targeting MC56F83xx/DSP5685x Controllers -char keyword # set sign of 'char'sig

Page 242

ELF Linker and Command LanguageDSP56800E Command-Line Tools316Targeting MC56F83xx/DSP5685x Controllers# allowing extra commas,# ignoring casts to the

Page 243

ELF Linker and Command LanguageDSP56800E Command-Line Tools317Targeting MC56F83xx/DSP5685x Controllers -O # same as '-O2'-O+keyword[,...] #

Page 244

ELF Linker and Command LanguageDSP56800E Command-Line Tools318Targeting MC56F83xx/DSP5685x Controllersdisplay|dump # display complete list of active#

Page 245

ELF Linker and Command LanguageDSP56800E Command-Line Tools319Targeting MC56F83xx/DSP5685x Controllers [no]err[or] | # passed to all tools;[no]iserr[o

Page 246

Development Studio OverviewDevelopment Process32Targeting MC56F83xx/DSP5685x ControllersProject FilesA CodeWarrior project consists of source-code, li

Page 247

ELF Linker and Command LanguageDSP56800E Command-Line Tools320Targeting MC56F83xx/DSP5685x Controllers# search paths have global scope over the# comma

Page 248

ELF Linker and Command LanguageDSP56800E Command-Line Tools321Targeting MC56F83xx/DSP5685x Controllers unix # Unix ('\n')#

Page 249

ELF Linker and Command LanguageDSP56800E Command-Line Tools322Targeting MC56F83xx/DSP5685x Controllers------------------------------------------------

Page 250

ELF Linker and Command LanguageDSP56800E Command-Line Tools323Targeting MC56F83xx/DSP5685x Controllers # default#Assembler----------------------------

Page 251

ELF Linker and Command LanguageDSP56800E Command-Line Tools324Targeting MC56F83xx/DSP5685x Controllers

Page 252 - [ id_num

325Targeting MC56F83xx/DSP5685x Controllers11Libraries and Runtime CodeYou can use a variety of libraries with the CodeWarrior™ IDE. The libraries inc

Page 253

Libraries and Runtime CodeMSL for DSP56800E326Targeting MC56F83xx/DSP5685x ControllersCodeWarrior\M56800E Support\msl\MSL_C\DSP_56800E\projects\MSL C

Page 254

Libraries and Runtime CodeMSL for DSP56800E327Targeting MC56F83xx/DSP5685x Controllers NOTE DSP56800E stationery creates new projects with LDM and SDM

Page 255 - [ address filename

Libraries and Runtime CodeMSL for DSP56800E328Targeting MC56F83xx/DSP5685x ControllersAllocating Stacks and Heaps for the DSP56800EStationery linker c

Page 256

Libraries and Runtime CodeRuntime Initialization329Targeting MC56F83xx/DSP5685x Controllers DefinitionsStackThe stack is a last-in-first-out (LIFO) da

Page 257

Development Studio OverviewDevelopment Process33Targeting MC56F83xx/DSP5685x Controllers A CodeWarrior project is analogous to a collection of makefil

Page 258 - [re]start

Libraries and Runtime CodeRuntime Initialization330Targeting MC56F83xx/DSP5685x ControllersThe starting point for a program is set in the Entry Point

Page 259

Libraries and Runtime CodeRuntime Initialization331Targeting MC56F83xx/DSP5685x Controllers section rtlibXREF F_stack_addrorg p:GLOBAL Finit_M56852_SU

Page 260

Libraries and Runtime CodeEOnCE Library332Targeting MC56F83xx/DSP5685x Controllersnoinc:tfra r0,sp ; set stack pointer toomove.w #0,r1nopmove.w r1,x:(

Page 261

Libraries and Runtime CodeEOnCE Library333Targeting MC56F83xx/DSP5685x Controllers To use the EOnCE library, you must include it in your project. The

Page 262

Libraries and Runtime CodeEOnCE Library334Targeting MC56F83xx/DSP5685x Controllers• Trace Buffer Capture Options• Trace Buffer Full Options• Miscellan

Page 263

Libraries and Runtime CodeEOnCE Library335Targeting MC56F83xx/DSP5685x Controllers _eonce_SetTriggerSets a trigger condition used to halt the processo

Page 264 - System-Level Connect

Libraries and Runtime CodeEOnCE Library336Targeting MC56F83xx/DSP5685x ControllersReturnsError code as defined in the sub-section “Definitions.”_eonce

Page 265 - Debugging in the Flash Memory

Libraries and Runtime CodeEOnCE Library337Targeting MC56F83xx/DSP5685x Controllers counter2unsigned longSpecifies the value used to pre-load the count

Page 266

Libraries and Runtime CodeEOnCE Library338Targeting MC56F83xx/DSP5685x Controllers_eonce_GetCountersRetrieves the values in the two counter registers.

Page 267

Libraries and Runtime CodeEOnCE Library339Targeting MC56F83xx/DSP5685x Controllers *counterIsStopped )ParameterscounterIsZero char *Returns a 1 if th

Page 268 - M56800E Target

Development Studio OverviewDevelopment Process34Targeting MC56F83xx/DSP5685x ControllersNOTE Figure 3.3 shows a floating editor window. Alternatively,

Page 269 - Transfer

Libraries and Runtime CodeEOnCE Library340Targeting MC56F83xx/DSP5685x Controllers_eonce_GetTraceBufferRetrieves the contents of the trace buffer.Prot

Page 270 - Host-Side Client Interface

Libraries and Runtime CodeEOnCE Library341Targeting MC56F83xx/DSP5685x Controllers ParametersNone.RemarksThis function clears the trace buffer and is

Page 271

Libraries and Runtime CodeEOnCE Library342Targeting MC56F83xx/DSP5685x ControllersParametersNone.RemarksCauses the trace buffer to immediately stop ca

Page 272

Libraries and Runtime CodeEOnCE Library343Targeting MC56F83xx/DSP5685x Controllers Prototypeint _eonce_EnableLimitTrigger( char enable )Parametersenab

Page 273

Libraries and Runtime CodeEOnCE Library344Targeting MC56F83xx/DSP5685x ControllersReturn CodesEvery function except _eonce_Initialize returns one of t

Page 274

Libraries and Runtime CodeEOnCE Library345Targeting MC56F83xx/DSP5685x Controllers B1PA_THEN_B2PF_NB2PF_N_THEN_B1PAB2PF_THEN_B1PA_NB1XA_N_THEN_B2PFB1X

Page 275

Libraries and Runtime CodeEOnCE Library346Targeting MC56F83xx/DSP5685x ControllersCounter Trigger ModesThe following triggers generate a Counter Stop

Page 276 - HSST Host Program Example

Libraries and Runtime CodeEOnCE Library347Targeting MC56F83xx/DSP5685x Controllers B1PA_SC_B2PF_HCB2PF_SC_B1PA_HCData Selection ModesIf the trigger mo

Page 277

Libraries and Runtime CodeEOnCE Library348Targeting MC56F83xx/DSP5685x ControllersCounter Function ModesOne of the defined identifiers in Table 11.8 m

Page 278 - Target Library Interface

Libraries and Runtime CodeEOnCE Library349Targeting MC56F83xx/DSP5685x Controllers Counter Unit Action OptionsThis list of options describes the actio

Page 279 - HSST_setvbuf

Development Studio OverviewDevelopment Process35Targeting MC56F83xx/DSP5685x Controllers Figure 3.4 CodeWarrior Build SystemThis architecture means t

Page 280 - HSST_write

Libraries and Runtime CodeEOnCE Library350Targeting MC56F83xx/DSP5685x ControllersOne of the defined identifiers in Table 11.12 must be OR’ed into the

Page 281 - HSST_read

Libraries and Runtime CodeEOnCE Library351Targeting MC56F83xx/DSP5685x Controllers Trace Buffer Capture OptionsThe options in Table 11.14 determine wh

Page 282 - HSST_size

Libraries and Runtime CodeEOnCE Library352Targeting MC56F83xx/DSP5685x ControllersTrace Buffer Full OptionsThe options in Table 11.15 describe what ac

Page 283 - HSST_raw_write

353Targeting MC56F83xx/DSP5685x ControllersAPorting IssuesThis appendix explains issues relating to successfully porting code to the most current vers

Page 284 - HSST_set_log_dir

Porting IssuesRemoving "illegal object_c on pragma directive" Warning354Targeting MC56F83xx/DSP5685x ControllersRemoving "illegal objec

Page 285 - HSST Target Program Example

355Targeting MC56F83xx/DSP5685x ControllersBDSP56800x New Project Stationery Wizard This appendix explains the high-level design of the new project s

Page 286 - Figure 9.1 Restart HSST

DSP56800x New Project Stationery WizardHigh-Level Design356Targeting MC56F83xx/DSP5685x Controllers• Resulting Target Rules• Rule NotesClick on the fo

Page 287 - ELF Linker and Command

DSP56800x New Project Stationery WizardHigh-Level Design357Targeting MC56F83xx/DSP5685x Controllers Page RulesThe page rules governing the wizard page

Page 288 - Closure Blocks

DSP56800x New Project Stationery WizardHigh-Level Design358Targeting MC56F83xx/DSP5685x ControllersTable B.4 Page Rules for the DSP56852, DSP56853, D

Page 289 - Sections Segment

DSP56800x New Project Stationery WizardHigh-Level Design359Targeting MC56F83xx/DSP5685x Controllers Resulting Target RulesThe rules governing possible

Page 290 - Linker Command File Syntax

Development Studio OverviewDevelopment Process36Targeting MC56F83xx/DSP5685x ControllersThe IDE uses linker command files to control the linker, so yo

Page 291 - Comments

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface360Targeting MC56F83xx/DSP5685x ControllersRule

Page 292 - Deadstrip Prevention

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface361Targeting MC56F83xx/DSP5685x Controllers Inv

Page 293 - Integral Types

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface362Targeting MC56F83xx/DSP5685x ControllersNew

Page 294 - Function Selection

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface363Targeting MC56F83xx/DSP5685x Controllers Tar

Page 295 - ROM to RAM Copying

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface364Targeting MC56F83xx/DSP5685x ControllersFigu

Page 296

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface365Targeting MC56F83xx/DSP5685x Controllers Fig

Page 297 - Stack and Heap

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface366Targeting MC56F83xx/DSP5685x ControllersFigu

Page 298 - (location counter)

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface367Targeting MC56F83xx/DSP5685x Controllers NOT

Page 299

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface368Targeting MC56F83xx/DSP5685x ControllersFigu

Page 300 - ALIGNALL

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface369Targeting MC56F83xx/DSP5685x Controllers Dat

Page 301 - FORCE_ACTIVE

37Targeting MC56F83xx/DSP5685x Controllers4Target SettingsEach build target in a CodeWarrior™ project has its own settings. This chapter explains the

Page 302 - KEEP_SECTION

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface370Targeting MC56F83xx/DSP5685x ControllersExte

Page 303

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface371Targeting MC56F83xx/DSP5685x Controllers Fin

Page 304 - SECTIONS

DSP56800x New Project Stationery WizardDSP56800x New Project Stationery Wizard Graphical User Interface372Targeting MC56F83xx/DSP5685x Controllers

Page 305

373Targeting MC56F83xx/DSP5685x ControllersCPragmas for the DSP56800 and DSP56800E You can configure the compiler globally for a project by changing t

Page 306

Pragmas for the DSP56800 and DSP56800EPragma Scope374Targeting MC56F83xx/DSP5685x Controllers#include <smallfuncs.h>#pragma profile reset // If

Page 307 - WRITEH (expression);

Pragmas for the DSP56800 and DSP56800EPragma Reference375Targeting MC56F83xx/DSP5685x Controllers Pragma ReferenceClick any of the links in Table C.1

Page 308 - WRITEW (expression);

Pragmas for the DSP56800 and DSP56800EPragma Reference376Targeting MC56F83xx/DSP5685x Controllersalways_inlineControls the use of inlined functions.Pr

Page 309 - Response File

Pragmas for the DSP56800 and DSP56800EPragma Reference377Targeting MC56F83xx/DSP5685x Controllers Listing C.2 Unnamed Argumentsvoid f(int ) {} /* OK

Page 310 - Arguments

Pragmas for the DSP56800 and DSP56800EPragma Reference378Targeting MC56F83xx/DSP5685x ControllersRemarksFor each file that has assembly output activat

Page 311 - DSP56800E Command-Line Tools

Pragmas for the DSP56800 and DSP56800EPragma Reference379Targeting MC56F83xx/DSP5685x Controllers RemarksUse this pragma for extra validation of gener

Page 312 - Compiler

Target SettingsTarget Settings Overview38Targeting MC56F83xx/DSP5685x Controllers• Links identify the panels specific to DSP56800E projects. Click the

Page 313

Pragmas for the DSP56800 and DSP56800EPragma Reference380Targeting MC56F83xx/DSP5685x Controllersconst_stringsControls the const-ness of string litera

Page 314

Pragmas for the DSP56800 and DSP56800EPragma Reference381Targeting MC56F83xx/DSP5685x Controllers extern void f();extern void g();main(){f(); // will

Page 315

Pragmas for the DSP56800 and DSP56800EPragma Reference382Targeting MC56F83xx/DSP5685x Controllers<istring>Section name string for initialized da

Page 316

Pragmas for the DSP56800 and DSP56800EPragma Reference383Targeting MC56F83xx/DSP5685x Controllers Prototype#pragma dollar_identifiers on | off | reset

Page 317

Pragmas for the DSP56800 and DSP56800EPragma Reference384Targeting MC56F83xx/DSP5685x ControllersPrototype#pragma dont_reuse_strings on | off | resetR

Page 318

Pragmas for the DSP56800 and DSP56800EPragma Reference385Targeting MC56F83xx/DSP5685x Controllers Listing C.7 Example of Enumerations the Same as Siz

Page 319

Pragmas for the DSP56800 and DSP56800EPragma Reference386Targeting MC56F83xx/DSP5685x ControllersNOTE The pragmas explicit_zero_data and initializedze

Page 320

Pragmas for the DSP56800 and DSP56800EPragma Reference387Targeting MC56F83xx/DSP5685x Controllers gcc_extensionsControls the acceptance of GNU C langu

Page 321

Pragmas for the DSP56800 and DSP56800EPragma Reference388Targeting MC56F83xx/DSP5685x ControllersThis pragma does not correspond to any setting in the

Page 322

Pragmas for the DSP56800 and DSP56800EPragma Reference389Targeting MC56F83xx/DSP5685x Controllers RemarksBottom-up function inlining tries to expand u

Page 323 - Assembler

Target SettingsTarget Settings Overview39Targeting MC56F83xx/DSP5685x Controllers Changing Target SettingsTo change target settings:1. Select Edit >

Page 324

Pragmas for the DSP56800 and DSP56800EPragma Reference390Targeting MC56F83xx/DSP5685x ControllersPrototype#pragma inline_depth(n)#pragma inline_depth(

Page 325 - Libraries and Runtime

Pragmas for the DSP56800 and DSP56800EPragma Reference391Targeting MC56F83xx/DSP5685x Controllers Prototype#pragma interrupt [called|warn|saveall[warn

Page 326 - Console and File I/O

Pragmas for the DSP56800 and DSP56800EPragma Reference392Targeting MC56F83xx/DSP5685x Controllers– You can use this argument on the function prototype

Page 327 - Host File Location

Pragmas for the DSP56800 and DSP56800EPragma Reference393Targeting MC56F83xx/DSP5685x Controllers In Table C.2, the advantages and disadvantages of th

Page 328 - DSP56800E

Pragmas for the DSP56800 and DSP56800EPragma Reference394Targeting MC56F83xx/DSP5685x Controllers• Emit an RTI for the return statement depending upon

Page 329 - Runtime Initialization

Pragmas for the DSP56800 and DSP56800EPragma Reference395Targeting MC56F83xx/DSP5685x Controllers Listing C.12 Sample Code - #pragma interrupt on | o

Page 330

Pragmas for the DSP56800 and DSP56800EPragma Reference396Targeting MC56F83xx/DSP5685x ControllersData1+=Data2;return;}void ISR1(void){/* This is an in

Page 331 - Libraries and Runtime Code

Pragmas for the DSP56800 and DSP56800EPragma Reference397Targeting MC56F83xx/DSP5685x Controllers line_prepdumpShows #line directives in preprocessor

Page 332 - EOnCE Library

Pragmas for the DSP56800 and DSP56800EPragma Reference398Targeting MC56F83xx/DSP5685x ControllersmessageIssues a text message to the user.Prototype#pr

Page 333

Pragmas for the DSP56800 and DSP56800EPragma Reference399Targeting MC56F83xx/DSP5685x Controllers This pragma corresponds to the Map newlines to CR se

Page 334 - _eonce_Initialize

Table of Contents4Targeting MC56F83xx/DSP5685x ControllersC/C++ Preprocessor . . . . . . . . . . . . . . . . . .

Page 335 - _eonce_SetTrigger

Target SettingsTarget Settings Overview40Targeting MC56F83xx/DSP5685x ControllersFigure 4.1 Target Settings WindowThe left side of the Target Setting

Page 336 - _eonce_SetCounterTrigger

Pragmas for the DSP56800 and DSP56800EPragma Reference400Targeting MC56F83xx/DSP5685x ControllersPrototype#pragma notonceRemarksIf you enable this pra

Page 337 - _eonce_ClearTrigger

Pragmas for the DSP56800 and DSP56800EPragma Reference401Targeting MC56F83xx/DSP5685x Controllers Prototype#pragma only_std_keywords on | off | resetR

Page 338 - _eonce_GetCounterStatus

Pragmas for the DSP56800 and DSP56800EPragma Reference402Targeting MC56F83xx/DSP5685x Controllersopt_dead_assignmentsControls the use of dead store op

Page 339 - _eonce_SetupTraceBuffer

Pragmas for the DSP56800 and DSP56800EPragma Reference403Targeting MC56F83xx/DSP5685x Controllers Prototype#pragma opt_lifetimes on | off | resetRemar

Page 340 - _eonce_ClearTraceBuffer

Pragmas for the DSP56800 and DSP56800EPragma Reference404Targeting MC56F83xx/DSP5685x ControllersRemarksIf you enable this pragma, the compiler replac

Page 341 - _eonce_HaltTraceBuffer

Pragmas for the DSP56800 and DSP56800EPragma Reference405Targeting MC56F83xx/DSP5685x Controllers that the optimization is only applied when the array

Page 342 - _eonce_EnableLimitTrigger

Pragmas for the DSP56800 and DSP56800EPragma Reference406Targeting MC56F83xx/DSP5685x ControllersFor more information on the optimization the compiler

Page 343 - Definitions

Pragmas for the DSP56800 and DSP56800EPragma Reference407Targeting MC56F83xx/DSP5685x Controllers RemarksIf you enable this pragma, integer longs wit

Page 344 - Normal Trigger Modes

Pragmas for the DSP56800 and DSP56800EPragma Reference408Targeting MC56F83xx/DSP5685x ControllersRemarksIf you enable this setting, the compiler colle

Page 345

Pragmas for the DSP56800 and DSP56800EPragma Reference409Targeting MC56F83xx/DSP5685x Controllers If you are writing new code and need to set a pragma

Page 346 - Counter Trigger Modes

Target SettingsTarget Settings Overview41Targeting MC56F83xx/DSP5685x Controllers Exporting and Importing Panel Options to XML FilesThe CodeWarrior ID

Page 347 - Data Selection Modes

Pragmas for the DSP56800 and DSP56800EPragma Reference410Targeting MC56F83xx/DSP5685x ControllersIf you enable this pragma, the compiler generates an

Page 348 - Normal Unit Action Options

Pragmas for the DSP56800 and DSP56800EPragma Reference411Targeting MC56F83xx/DSP5685x Controllers <sectname>Identifier by which this user-define

Page 349 - Accumulating Trigger Options

Pragmas for the DSP56800 and DSP56800EPragma Reference412Targeting MC56F83xx/DSP5685x ControllersRemarksBy default, the preprocessor adds comments abo

Page 350 - Miscellaneous Trigger Options

Pragmas for the DSP56800 and DSP56800EPragma Reference413Targeting MC56F83xx/DSP5685x Controllers RemarksIf you enable this pragma, the compiler does

Page 351 - Trace Buffer Capture Options

Pragmas for the DSP56800 and DSP56800EPragma Reference414Targeting MC56F83xx/DSP5685x ControllersNOTE If you enable this pragma, your code might not b

Page 352 - Trace Buffer Full Options

Pragmas for the DSP56800 and DSP56800EPragma Reference415Targeting MC56F83xx/DSP5685x Controllers use_rodataControls the section where constant data i

Page 353 - Porting Issues

Pragmas for the DSP56800 and DSP56800EPragma Reference416Targeting MC56F83xx/DSP5685x Controllers#pragma use_rodata onconst Int16 d[]={0xdddd};const I

Page 354

Pragmas for the DSP56800 and DSP56800EPragma Reference417Targeting MC56F83xx/DSP5685x Controllers warn_any_ptr_int_convControls if the compiler genera

Page 355 - Stationery Wizard

Pragmas for the DSP56800 and DSP56800EPragma Reference418Targeting MC56F83xx/DSP5685x Controllerswarn_emptydeclControls the recognition of declaration

Page 356 - • Rule Notes

Pragmas for the DSP56800 and DSP56800EPragma Reference419Targeting MC56F83xx/DSP5685x Controllers This pragma corresponds to the Extra Commas setting

Page 357 - Page Rules

Target SettingsCodeWarrior IDE Target Settings Panels42Targeting MC56F83xx/DSP5685x ControllersCodeWarrior IDE Target Settings PanelsTable 4.2 lists a

Page 358

Pragmas for the DSP56800 and DSP56800EPragma Reference420Targeting MC56F83xx/DSP5685x ControllersPrototype#pragma warn_filenamecaps_system on | off |

Page 359 - Resulting Target Rules

Pragmas for the DSP56800 and DSP56800EPragma Reference421Targeting MC56F83xx/DSP5685x Controllers warn_impl_f2i_convControls the issuing of warnings f

Page 360 - Rule Notes

Pragmas for the DSP56800 and DSP56800EPragma Reference422Targeting MC56F83xx/DSP5685x ControllersPrototype#pragma warn_impl_i2f_conv on | off | resetR

Page 361

Pragmas for the DSP56800 and DSP56800EPragma Reference423Targeting MC56F83xx/DSP5685x Controllers RemarksIf you enable this pragma, the compiler issue

Page 362 - New Project Dialog Box

Pragmas for the DSP56800 and DSP56800EPragma Reference424Targeting MC56F83xx/DSP5685x ControllersRemarksIf you enable this pragma, the compiler issues

Page 363 - Target Pages

Pragmas for the DSP56800 and DSP56800EPragma Reference425Targeting MC56F83xx/DSP5685x Controllers RemarksIf you enable this pragma, the compiler issue

Page 364

Pragmas for the DSP56800 and DSP56800EPragma Reference426Targeting MC56F83xx/DSP5685x Controllerswarn_no_side_effectControls the issuing of warnings f

Page 365

Pragmas for the DSP56800 and DSP56800EPragma Reference427Targeting MC56F83xx/DSP5685x Controllers This pragma corresponds to the Non-Inlined Functions

Page 366 - Expert Option Page

Pragmas for the DSP56800 and DSP56800EPragma Reference428Targeting MC56F83xx/DSP5685x ControllersThis pragma corresponds to the Pad Bytes Added settin

Page 367

Pragmas for the DSP56800 and DSP56800EPragma Reference429Targeting MC56F83xx/DSP5685x Controllers Listing C.29 Example for #pragma warn_ptr_int_conv#

Page 368 - “Page Rules.”

Target SettingsDSP56800E-Specific Target Settings Panels43Targeting MC56F83xx/DSP5685x Controllers DSP56800E-Specific Target Settings PanelsThe rest o

Page 369 - Data Memory Model Page

Pragmas for the DSP56800 and DSP56800EPragma Reference430Targeting MC56F83xx/DSP5685x Controllerswarn_undefmacroControls the detection of undefined ma

Page 370 - External/Internal Memory Page

Pragmas for the DSP56800 and DSP56800EPragma Reference431Targeting MC56F83xx/DSP5685x Controllers RemarksIf you enable this pragma, the compiler issue

Page 371 - Finish Page

Pragmas for the DSP56800 and DSP56800EIllegal Pragmas432Targeting MC56F83xx/DSP5685x ControllersThis pragma corresponds to the Treat All Warnings as E

Page 372

Pragmas for the DSP56800 and DSP56800EChecking Settings433Targeting MC56F83xx/DSP5685x Controllers #endif lists all the setting names you can use in t

Page 373 - Pragmas for the DSP56800

Pragmas for the DSP56800 and DSP56800EChecking Settings434Targeting MC56F83xx/DSP5685x Controllersonly_std_keywordsANSI Keywords Only setting in the C

Page 374 - Pragma Scope

Pragmas for the DSP56800 and DSP56800EChecking Settings435Targeting MC56F83xx/DSP5685x Controllers trigraphsExpand Trigraphs setting in the C/C++ Lang

Page 375 - Pragma Reference

Pragmas for the DSP56800 and DSP56800EChecking Settings436Targeting MC56F83xx/DSP5685x Controllerswarn_ptr_int_conv Pragma warn_ptr_int_convwarn_resul

Page 376 - ANSI_strict

TMP–437Targeting MC56F83xx/DSP5685x ControllersIndexSymbols#include directivegetting path 386#line directive 397#pragma statementillegal 432syntax 373

Page 377

TMP–438 Targeting MC56F83xx/DSP5685x Controllersconfig 238–240copy 240debug 241dir 241, 242disassemble 242, 243display 243–245evaluate 245exit 246go 2

Page 378

TMP–439Targeting MC56F83xx/DSP5685x Controllers Don’t Inline option 433dont_inline pragma 383dont_reuse_strings pragma 384DSP56800E command line tools

Page 379

Target SettingsDSP56800E-Specific Target Settings Panels44Targeting MC56F83xx/DSP5685x ControllersM56800E TargetUse the M56800E Target panel (Figure 4

Page 380

TMP–440 Targeting MC56F83xx/DSP5685x Controllershsst_block_mode 273, 274HSST_close 278, 279hsst_close 270hsst_detach_listener 275HSST_flush 282hsst_no

Page 381

TMP–441Targeting MC56F83xx/DSP5685x Controllers div_s4q 156extract_h 153extract_l 153, 154ffs_l 165, 166ffs_s 164fractional arithmetic 142, 143impleme

Page 382 - <accmode>

TMP–442 Targeting MC56F83xx/DSP5685x Controllerslog debugging command 254ls debugging command 241, 242MM5600E target panel 44, 45M56800E assembler pan

Page 383

TMP–443Targeting MC56F83xx/DSP5685x Controllers section 410syntax 373#pragma statementsyntax 373pragmasasmoutput 377check_inline_asm_pipeline 378, 379

Page 384 - *str2 = 'Y';

TMP–444 Targeting MC56F83xx/DSP5685x ControllersshlftNs intrinsic function 169, 170shlfts intrinsic function 170, 171shr intrinsic function 171shr_r i

Page 385

TMP–445Targeting MC56F83xx/DSP5685x Controllers warn_unusedarg pragma 430warn_unusedvar pragma 431warning_errors pragma 431warningsillegal pragmas 432

Page 386

TMP–446 Targeting MC56F83xx/DSP5685x Controllers

Page 387

Target SettingsDSP56800E-Specific Target Settings Panels45Targeting MC56F83xx/DSP5685x Controllers NOTE Be sure to name libraries with the extension .

Page 388

Target SettingsDSP56800E-Specific Target Settings Panels46Targeting MC56F83xx/DSP5685x ControllersNOTE Always disable these options, which do not appl

Page 389

Target SettingsDSP56800E-Specific Target Settings Panels47Targeting MC56F83xx/DSP5685x Controllers ANSI Strict checkboxChecked — Disables CodeWarrior

Page 390 - #pragma inline_max_size(n);

Target SettingsDSP56800E-Specific Target Settings Panels48Targeting MC56F83xx/DSP5685x ControllersC/C++ PreprocessorThe C/C++ Preprocessor (Figure 4.5

Page 391

Target SettingsDSP56800E-Specific Target Settings Panels49Targeting MC56F83xx/DSP5685x Controllers Figure 4.5 The C/C++ Preprocessor PanelTable 4.6 p

Page 392

Table of Contents5Targeting MC56F83xx/DSP5685x Controllers User Stack Allocation . . . . . . . . . . . . . . . . .

Page 393

Target SettingsDSP56800E-Specific Target Settings Panels50Targeting MC56F83xx/DSP5685x ControllersC/C++ WarningsUse the C/C++ Warnings panel (Figure 4

Page 394

Target SettingsDSP56800E-Specific Target Settings Panels51Targeting MC56F83xx/DSP5685x Controllers Figure 4.6 C/C++ Warnings PanelTable 4.7 C/C++ Wa

Page 395

Target SettingsDSP56800E-Specific Target Settings Panels52Targeting MC56F83xx/DSP5685x ControllersExtended Error Checking checkboxChecked — Compiler i

Page 396 - Interrupt

Target SettingsDSP56800E-Specific Target Settings Panels53Targeting MC56F83xx/DSP5685x Controllers Missing ‘return’ StatementsChecked — Compiler check

Page 397 - #pragma mark

Target SettingsDSP56800E-Specific Target Settings Panels54Targeting MC56F83xx/DSP5685x ControllersM56800E AssemblerUse the M56800E Assembler panel (Fi

Page 398

Target SettingsDSP56800E-Specific Target Settings Panels55Targeting MC56F83xx/DSP5685x Controllers Table 4.8 M56800E Assembler Panel ElementsElement

Page 399 - #pragma mpwc_relax on

Target SettingsDSP56800E-Specific Target Settings Panels56Targeting MC56F83xx/DSP5685x ControllersM56800E ProcessorUse the M56800E Processor panel (Fi

Page 400 - #pragma once [ on ]

Target SettingsDSP56800E-Specific Target Settings Panels57Targeting MC56F83xx/DSP5685x Controllers Table 4.9 M56800E Processor Panel ElementsElement

Page 401

Target SettingsDSP56800E-Specific Target Settings Panels58Targeting MC56F83xx/DSP5685x ControllersThe compiler generates hardware DO loops for two sit

Page 402

Target SettingsDSP56800E-Specific Target Settings Panels59Targeting MC56F83xx/DSP5685x Controllers 2. Counted loops in C, provided that the loop count

Page 403

Table of Contents6Targeting MC56F83xx/DSP5685x ControllersFill Memory . . . . . . . . . . . . . . . . . . . .

Page 404

Target SettingsDSP56800E-Specific Target Settings Panels60Targeting MC56F83xx/DSP5685x ControllersTable 4.10 ELF Disassembler Panel ElementsElement P

Page 405

Target SettingsDSP56800E-Specific Target Settings Panels61Targeting MC56F83xx/DSP5685x Controllers M56800E LinkerUse the M56800E Linker panel (Figure

Page 406

Target SettingsDSP56800E-Specific Target Settings Panels62Targeting MC56F83xx/DSP5685x ControllersFigure 4.10 M56800E Linker PanelTable 4.11 M56800E

Page 407

Target SettingsDSP56800E-Specific Target Settings Panels63Targeting MC56F83xx/DSP5685x Controllers List Unused Objects checkboxChecked — Linker includ

Page 408

Target SettingsDSP56800E-Specific Target Settings Panels64Targeting MC56F83xx/DSP5685x ControllersCheck the Show Transitive Closure checkbox to have t

Page 409

Target SettingsDSP56800E-Specific Target Settings Panels65Targeting MC56F83xx/DSP5685x Controllers Listing 4.2 Link Map File: List of main( ) referen

Page 410 - [...data..]

Target SettingsDSP56800E-Specific Target Settings Panels66Targeting MC56F83xx/DSP5685x ControllersRemote DebuggingUse the Remote Debugging panel (Figu

Page 411

Target SettingsDSP56800E-Specific Target Settings Panels67Targeting MC56F83xx/DSP5685x Controllers M56800E Target (Debugging)Use the debugging M56800E

Page 412

Target SettingsDSP56800E-Specific Target Settings Panels68Targeting MC56F83xx/DSP5685x ControllersIf you click the Yes button, the previous breakpoint

Page 413

Target SettingsDSP56800E-Specific Target Settings Panels69Targeting MC56F83xx/DSP5685x Controllers An initialization file consists of text instruction

Page 414

Table of Contents7Targeting MC56F83xx/DSP5685x Controllers 10 ELF Linker and Command Language 287Structure of Linker Command Files . . . . .

Page 415

Target SettingsDSP56800E-Specific Target Settings Panels70Targeting MC56F83xx/DSP5685x Controllers1. In the debugging M56800E Target panel, check the

Page 416

Target SettingsDSP56800E-Specific Target Settings Panels71Targeting MC56F83xx/DSP5685x Controllers Remote Debug OptionsUse the Remote Debug Options pa

Page 417

Target SettingsDSP56800E-Specific Target Settings Panels72Targeting MC56F83xx/DSP5685x ControllersFigure 4.14 Remote Debug Options

Page 418

Target SettingsDSP56800E-Specific Target Settings Panels73Targeting MC56F83xx/DSP5685x Controllers Table 4.15 Remote Debug Options Panel ElementsElem

Page 419 - #include "file"

Target SettingsDSP56800E-Specific Target Settings Panels74Targeting MC56F83xx/DSP5685x Controllers

Page 420 - #include <file>

75Targeting MC56F83xx/DSP5685x Controllers5Processor Expert InterfaceYour CodeWarrior™ IDE features a Processor Expert™ plug-in interface, for rapid d

Page 421

Processor Expert InterfaceProcessor Expert Overview76Targeting MC56F83xx/DSP5685x Controllers• Target CPU window — This window depicts the target micr

Page 422

Processor Expert InterfaceProcessor Expert Overview77Targeting MC56F83xx/DSP5685x Controllers 4. Starting code design (that is, building the applicati

Page 423

Processor Expert InterfaceProcessor Expert Overview78Targeting MC56F83xx/DSP5685x ControllersProcessor Expert BeansBeans encapsulate the most-required

Page 424

Processor Expert InterfaceProcessor Expert Overview79Targeting MC56F83xx/DSP5685x Controllers Figure 5.3 Bean InspectorUsing the Bean Inspector to se

Page 425

Table of Contents8Targeting MC56F83xx/DSP5685x ControllersRemoving "illegal object_c on pragma directive" Warning . . . . . . .

Page 426

Processor Expert InterfaceProcessor Expert Overview80Targeting MC56F83xx/DSP5685x ControllersTable 5.1 Processor Expert Menu SelectionsItem Subitem A

Page 427

Processor Expert InterfaceProcessor Expert Overview81Targeting MC56F83xx/DSP5685x Controllers Peripherals Usage InspectorOpens the Peripherals Usage I

Page 428

Processor Expert InterfaceProcessor Expert Overview82Targeting MC56F83xx/DSP5685x ControllersEmbedded Beans CategoriesOpens the first page of a descri

Page 429

Processor Expert InterfaceProcessor Expert Windows83Targeting MC56F83xx/DSP5685x Controllers Processor Expert WindowsThis section illustrates importan

Page 430

Processor Expert InterfaceProcessor Expert Windows84Targeting MC56F83xx/DSP5685x ControllersClick the two buttons at the bottom of the window to activ

Page 431

Processor Expert InterfaceProcessor Expert Windows85Targeting MC56F83xx/DSP5685x Controllers • Item names — Items to be set. Double-click on group nam

Page 432 - Checking Settings

Processor Expert InterfaceProcessor Expert Windows86Targeting MC56F83xx/DSP5685x ControllersTarget CPU WindowThe Target CPU window (Figure 5.6) depict

Page 433

Processor Expert InterfaceProcessor Expert Windows87Targeting MC56F83xx/DSP5685x Controllers Use the control buttons at the left edge of this window t

Page 434

Processor Expert InterfaceProcessor Expert Windows88Targeting MC56F83xx/DSP5685x ControllersIn such a case, you can click the Always show internal per

Page 435

Processor Expert InterfaceProcessor Expert Windows89Targeting MC56F83xx/DSP5685x Controllers Click the Show MCU Block Diagram to change the picture to

Page 436

9Targeting MC56F83xx/DSP5685x Controllers1IntroductionThis manual explains how to use the CodeWarrior™ Integrated Development Environment (IDE) to dev

Page 437

Processor Expert InterfaceProcessor Expert Windows90Targeting MC56F83xx/DSP5685x ControllersNOTE As you move your cursor over bean icons, peripherals,

Page 438

Processor Expert InterfaceProcessor Expert Windows91Targeting MC56F83xx/DSP5685x Controllers Memory Map WindowThe Memory Map window (Figure 5.10) depi

Page 439

Processor Expert InterfaceProcessor Expert Windows92Targeting MC56F83xx/DSP5685x Controllers• Cyan — FLASH memory or EEPROM• Black — External memory.P

Page 440

Processor Expert InterfaceProcessor Expert Windows93Targeting MC56F83xx/DSP5685x Controllers Resource MeterThe Resource Meter window (Figure 5.12) sho

Page 441

Processor Expert InterfaceProcessor Expert Windows94Targeting MC56F83xx/DSP5685x ControllersInstalled Beans OverviewThe Installed Beans Overview windo

Page 442

Processor Expert InterfaceProcessor Expert Windows95Targeting MC56F83xx/DSP5685x Controllers Peripherals Usage InspectorThe Peripherals Usage window (

Page 443

Processor Expert InterfaceProcessor Expert Tutorial96Targeting MC56F83xx/DSP5685x ControllersProcessor Expert TutorialThis tutorial exercise generates

Page 444

Processor Expert InterfaceProcessor Expert Tutorial97Targeting MC56F83xx/DSP5685x Controllers h. Click the OK button. The IDE:• Opens the project win

Page 445

Processor Expert InterfaceProcessor Expert Tutorial98Targeting MC56F83xx/DSP5685x Controllersa. Click the project window’s Processor Expert tab. The P

Page 446

Processor Expert InterfaceProcessor Expert Tutorial99Targeting MC56F83xx/DSP5685x Controllers NOTE If new bean icons do not appear in the Processor Ex

Commentaires sur ces manuels

Pas de commentaire