Analog Devices VISUALDSP++ 3.5 User manual

Category
Software
Type
User manual
W 3.5
Loader Manual
for 16-Bit Processors
Revision 1.0, October 2003
Part Number
82-000035-04
Analog Devices, Inc.
One Technology Way
Norwood, Mass. 02062-9106
a
Copyright Information
© 2003 Analog Devices, Inc., ALL RIGHTS RESERVED. This docu-
ment may not be reproduced in any form without prior, express written
consent from Analog Devices, Inc.
Printed in the USA.
Disclaimer
Analog Devices, Inc. reserves the right to change this product without
prior notice. Information furnished by Analog Devices is believed to be
accurate and reliable. However, no responsibility is assumed by Analog
Devices for its use; nor for any infringement of patents or other rights of
third parties which may result from its use. No license is granted by impli-
cation or otherwise under the patent rights of Analog Devices, Inc.
Trademark and Service Mark Notice
The Analog Devices logo, VisualDSP, the VisualDSP logo, Blackfin, the
Blackfin logo, CROSSCORE, the CROSSCORE logo, and EZ-KIT Lite
are registered trademarks of Analog Devices, Inc.
VisualDSP++ and the VisualDSP++ logo are trademarks of Analog
Devices, Inc.
All other brand and product names are trademarks or service marks of
their respective owners.
VisualDSP++ 3.5 Loader Manual iii
for 16-Bit Processors
CONTENTS
PREFACE
Purpose of This Manual .................................................................. xi
Intended Audience .......................................................................... xi
Manual Contents ........................................................................... xii
Technical or Customer Support ...................................................... xii
Supported Processors ..................................................................... xiii
Product Information ..................................................................... xiii
MyAnalog.com ......................................................................... xiv
Embedded Processor and DSP Product Information .................. xiv
Related Documents ................................................................... xv
Online Technical Documentation .............................................. xv
From VisualDSP++ .............................................................. xvi
From Windows .................................................................... xvi
From the Web ..................................................................... xvii
Printed Manuals ...................................................................... xvii
VisualDSP++ Documentation Set ........................................ xvii
Hardware Manuals ............................................................. xviii
Datasheets ......................................................................... xviii
Contacting DSP Publications .................................................. xviii
iv VisualDSP++ 3.5 Loader Manual
for 16-Bit Processors
Notation Conventions ................................................................... xix
INTRODUCTION
Program Development Flow .......................................................... 1-1
Compiling and Assembling ..................................................... 1-2
Linking ................................................................................... 1-2
Loading and Splitting .............................................................. 1-2
Boot-loadable Files Versus Non-bootable Files ......................... 1-4
Booting Modes ............................................................................. 1-5
No-boot Mode ........................................................................ 1-5
PROM Booting Mode ............................................................. 1-6
Host Booting Mode ................................................................ 1-6
Boot Kernels ................................................................................ 1-7
Loader Tasks ................................................................................. 1-8
Loader Files .................................................................................. 1-8
File Searches ........................................................................... 1-9
BLACKFIN PROCESSOR LOADER/SPLITTER
Blackfin Processor Booting ............................................................ 2-2
ADSP-BF535 Processor Booting .............................................. 2-3
ADSP-BF535 Processor On-Chip Boot ROM ..................... 2-4
ADSP-BF535 Processor Second-Stage Loader ...................... 2-6
ADSP-BF535 Processor Boot Streams ................................. 2-8
Output Loader Files ........................................................ 2-9
Global Headers and Blocks ........................................... 2-11
VisualDSP++ 3.5 Loader Manual v
for 16-Bit Processors
Contents
Flags ............................................................................. 2-13
ADSP-BF535 Processor Memory Ranges ........................... 2-13
Second-Stage Loader Restrictions ................................... 2-14
ADSP-BF531/BF532/BF533 Processor Booting ..................... 2-16
ADSP-BF531/BF532/BF533 Processor On-Chip Boot ROM 2-17
ADSP-BF531/BF532/BF533 Processor Boot Streams ......... 2-19
Blocks and Block Headers ............................................. 2-19
Flags of Block Header ................................................... 2-20
Initialization Blocks ...................................................... 2-21
ADSP-BF531/BF532/BF533 Processor Memory Ranges .... 2-25
ADSP-BF531/BF532/BF533 Processor SPl Memory Boot Sequence
2-26
ADSP-BF561 Processor Booting ............................................ 2-28
ADSP-BF561 Processor Boot Streams ................................ 2-29
ADSP-BF561 Processor Memory Ranges ........................... 2-34
ADSP-BF561 Processor Initialization Blocks ...................... 2-35
ADSP-BF561 Multiple .DXE Booting ........................... 2-36
ADSP-BF531/BF532/BF533 and ADSP-BF561 Multiple .DXE Booting
2-37
Blackfin Processor Loader Guide ................................................. 2-40
Using Loader Command Line ................................................ 2-40
File Searches ..................................................................... 2-41
File Extensions .................................................................. 2-41
Command-Line Switches ................................................... 2-42
Using Base Loader ................................................................. 2-47
vi VisualDSP++ 3.5 Loader Manual
for 16-Bit Processors
Using Second-Stage Loader ................................................... 2-49
Using ROM Splitter .............................................................. 2-51
No-boot Mode ................................................................. 2-53
ADSP-219X DSP LOADER/SPLITTER
ADSP-219x DSP Booting ............................................................. 3-2
ADSP-219x DSP Boot Modes ................................................. 3-3
ADSP-219x DSP Boot Kernel ................................................. 3-4
ADSP-219x DSP Boot Streams ............................................... 3-4
Parallel EPROM Boot Streams ................................................ 3-4
Block Headers .................................................................... 3-5
Data Blocks ........................................................................ 3-6
ADSP-219x DSP Multiple .DXE Support ........................... 3-7
Host Booting ........................................................................ 3-10
UART Booting ..................................................................... 3-11
Serial EPROM Booting ......................................................... 3-12
No-booting ........................................................................... 3-12
Enriching Boot EPROMs with No-boot Data ................... 3-16
ADSP-219x DSP Loader Guide .................................................. 3-19
ADSP-219x Loader Command-Line Reference ...................... 3-19
File Searches ..................................................................... 3-20
File Extensions ................................................................. 3-20
Loader Switches ................................................................ 3-21
VisualDSP++ 3.5 Loader Manual vii
for 16-Bit Processors
Contents
ADSP-2192-12 DSP LOADER
ADSP-2192 DSP Booting ............................................................. 4-2
ADSP-2192 DSP Reset Types .................................................. 4-2
ADSP-2192 DSP RTBL .......................................................... 4-4
Building .DXE Files ............................................................ 4-5
Creating a .EXE File ........................................................... 4-6
Reference RTBL .................................................................. 4-7
ADSP-2192 DSP RBTL and Overlays ...................................... 4-8
Using Overlay Symbols ....................................................... 4-9
ADSP-2192 DSP Loader Guide .................................................. 4-10
Single-Processor Command Line ............................................ 4-10
Two-Processor Command Line .............................................. 4-11
File Searches ..................................................................... 4-12
File Extensions .................................................................. 4-13
Loader Command-Line Switches ............................................ 4-13
ADSP-218X DSP LOADER/SPLITTER
ADSP-218x DSP Loader Guide ..................................................... 5-1
Boot Modes ............................................................................. 5-2
Determining Boot Modes ........................................................ 5-4
EPROM Booting (BDMA) ...................................................... 5-6
ADSP-218x BDMA Loader Command-Line Reference ........ 5-7
File Searches ................................................................... 5-9
File Extensions ................................................................ 5-9
viii VisualDSP++ 3.5 Loader Manual
for 16-Bit Processors
Loader Switches .............................................................. 5-9
Host Booting (IDMA) .......................................................... 5-11
ADSP-218x IDMA Loader Command-Line Reference ....... 5-13
No Booting ........................................................................... 5-13
ADSP-218x DSP Splitter Guide .................................................. 5-15
Using Splitter ........................................................................ 5-15
ADSP-218x Splitter Command-Line Reference ...................... 5-16
FILE FORMATS
Source Files .................................................................................. A-2
C/C++ Source Files ................................................................. A-2
Assembly Source Files .............................................................. A-3
Assembly Initialization Data Files ............................................ A-3
Header Files ............................................................................ A-4
Linker Description Files .......................................................... A-4
Linker Command-Line Files .................................................... A-5
Build Files .................................................................................... A-5
Assembler Object Files ............................................................ A-5
Library Files ............................................................................ A-6
Linker Output Files ................................................................ A-6
Memory Map Files .................................................................. A-7
Loader Output Files in Intel Hex-32 Format ............................ A-7
Splitter Output Files in ASCII Format ..................................... A-9
Debugger Files .............................................................................. A-9
Format References ...................................................................... A-10
VisualDSP++ 3.5 Loader Manual ix
for 16-Bit Processors
Contents
INDEX
x VisualDSP++ 3.5 Loader Manual
for 16-Bit Processors
VisualDSP++ Loader Manual xi
for 16-Bit Processors
PREFACE
Thank you for purchasing Analog Devices development software for
digital signal processor (DSP) applications.
Purpose of This Manual
The VisualDSP++ 3.5 Loader Manual for 16-Bit Processors contains infor-
mation on how to use the loader/splitter to convert executable files into
boot-loadable (or non-bootable) files for 16-bit fixed-point ADSP-21xx
DSPs and Blackfin
®
processors. These files are then programmed/burned
into an external memory device within your target system.
Intended Audience
The primary audience for this manual is DSP programmers who are
familiar with Analog Devices DSPs. This manual assumes that the audi-
ence has a working knowledge of the appropriate DSP architecture and
instruction set. Programmers who are unfamiliar with Analog Devices
DSPs can use this manual but should supplement it with other texts, such
as Hardware Reference and Instruction Set Reference manuals, that describe
your target architecture.
Manual Contents
xii VisualDSP++ Loader Manual
for 16-Bit Processors
Manual Contents
The manual contains:
Chapter 1, “Introduction”
Chapter 2, “Blackfin Processor Loader/Splitter”
Chapter 3, “ADSP-219x DSP Loader/Splitter”
Chapter 4, “ADSP-2192-12 DSP Loader”
Chapter 4, “ADSP-218x DSP Loader/Splitter”
Appendix A, “File Formats”
Technical or Customer Support
You can reach DSP Tools Support in the following ways.
Visit the DSP Development Tools website at
www.analog.com/technology/dsp/developmentTools/index.html
Email questions to [email protected]
Phone questions to 1-800-ANALOGD
Contact your ADI local sales office or authorized distributor
Send questions by mail to:
Analog Devices, Inc.
One Technology Way
P.O. Box 9106
Norwood, MA 02062-9106
USA
VisualDSP++ Loader Manual xiii
for 16-Bit Processors
Preface
Supported Processors
The name “ADSP-21xx” refers to two families of Analog Devices 16-bit,
fixed-point processors. VisualDSP++ for ADSP-21xx DSPs currently
supports the following processors.
ADSP-218x family DSPs: ADSP-2181, ADSP-2183,
ADSP-2184/84L/84N, ADSP-2185/85L/85M/85N,
ADSP-2186/86L/86M/86N, ADSP-2187L/87N,
ADSP-2188L/88N, and ADSP-2189M/89N
ADSP-219x family DSPs: ADSP-2191, ADSP-2192-12,
ADSP-2195, ADSP-2196, ADSP-21990, ADSP-21991,
and ADSP-21992
The name “Blackfin” refers to a family of Analog Devices 16-bit, embed-
ded processors. VisualDSP++ currently supports the following Blackfin
processors.
Blackfin Processors: ADSP-BF531, ADSP-BF532 (formerly
ADSP-21532), ADSP-BF533, ADSP-BF535 (formerly
ADSP-21535), ADSP-BF561, and AD6532
Product Information
You can obtain product information from the Analog Devices Web site,
from the product CD-ROM, or from the printed publications (manuals).
Analog Devices is online at www.analog.com. Our Web site provides infor-
mation about a broad range of products—analog integrated circuits,
amplifiers, converters, and digital signal processors.
Product Information
xiv VisualDSP++ Loader Manual
for 16-Bit Processors
MyAnalog.com
MyAnalog.com is a free feature of the Analog Devices website that allows
customization of a webpage to display only the latest information on
products you are interested in. You can also choose to receive weekly email
notification containing updates to the webpages that meet your interests.
MyAnalog.com provides access to books, application notes, data sheets,
code examples, and more.
Registration:
Visit www.myanalog.com to sign up. Click Register to use MyAnalog.com.
Registration takes about five minutes and serves as means for you to select
the information you want to receive.
If you are already a registered user, just log on. Your user name is your
email address.
Embedded Processor and DSP Product Information
For information on digital signal processors, visit our website at
www.analog.com/processors, which provides access to technical publica-
tions, datasheets, application notes, product overviews, and product
announcements.
You may also obtain additional information about Analog Devices and its
products in any of the following ways.
Email questions or requests for information to
Fax questions or requests for information to
1-781-461-3010 (North America)
+49 (0) 089 76 903 557 (Europe)
Access the Digital Signal Processor Division’s FTP website at
ftp ftp.analog.com or ftp 137.71.23.21
ftp://ftp.analog.com
VisualDSP++ Loader Manual xv
for 16-Bit Processors
Preface
Related Documents
For information on product related development software, see the follow-
ing publications.
For hardware information, refer to your DSP’s Hardware Reference manual
and datasheet.
Online Technical Documentation
Online documentation comprises the VisualDSP++ Help system and tools
manuals, Dinkum Abridged C++ library, and FlexLM network license
manager software documentation. You can easily search across the entire
VisualDSP++ documentation set for any topic of interest. For easy print-
ing, supplementary
.PDF files for the tools manuals are also provided.
A description of each documentation file type is as follows.
VisualDSP++ 3.5 Getting Started Guide for 16-Bit Processors
VisualDSP++ 3.5 User’s Guide for 16-Bit Processors
VisualDSP++ 3.5 Product Release Bulletin for 16-Bit Processors
VisualDSP++ 3.5 C/C++ Compiler and Library Manual for Blackfin Processors
VisualDSP++ 3.5 C/C++ Compiler and Library Manual for ADSP-219x DSPs
VisualDSP++ 3.5 C Compiler and Library Manual for ADSP-218x DSPs
VisualDSP++ 3.5 Linker and Utilities Manual for 16-Bit Processors
VisualDSP++ 3.5 Assembler and Preprocessor Manual for Blackfin Processors
VisualDSP++ 3.5 Assembler and Preprocessor Manual for ADSP-218x and ADSP-219x DSPs
VisualDSP++ 3.5 Kernel (VDK) User’s Guide for 16-Bit Processors
VisualDSP++ 3.5 Component Software Engineering User’s Guide for 16-Bit Processors
Quick Installation Reference Card
Product Information
xvi VisualDSP++ Loader Manual
for 16-Bit Processors
If documentation is not installed on your system as part of the software
installation, you can add it from the VisualDSP++ CD-ROM at any time
by rerunning the Tools installation.
Access the online documentation from the VisualDSP++ environment,
Windows Explorer, or Analog Devices Web site.
From VisualDSP++
Access VisualDSP++ online Help from the Help menu’s Contents,
Search, and Index commands.
Open online Help from context-sensitive user interface items
(toolbar buttons, menu commands, and windows).
From Windows
In addition to shortcuts you may have constructed, there are many ways
to open VisualDSP++ online Help or the supplementary documentation
from Windows.
Help system files (.CHM files) are located in the Help folder, and .PDF files
are located in the
Docs folder of your VisualDSP++ installation. The Docs
folder also contains the Dinkum Abridged C++ library and FlexLM net-
work license manager software documentation.
File Description
.CHM Help system files and VisualDSP++ tools manuals.
.HTM or
.HTML
Dinkum Abridged C++ library and FlexLM network license manager software doc-
umentation. Viewing and printing the
.HTML files require a browser, such as Inter-
net Explorer 4.0 (or higher).
.PDF VisualDSP++ manuals in Portable Documentation Format, one .PDF file for each
manual. Viewing and printing a .PDF file require a PDF reader, such as Adobe
Acrobat Reader (4.0 or higher).
VisualDSP++ Loader Manual xvii
for 16-Bit Processors
Preface
Using Windows Explorer
Double-click any file that is part of the VisualDSP++ documenta-
tion set.
Double-click the vdsp-help.chm file, which is the master Help sys-
tem, to access all the other .CHM files.
Using the Windows Start Button
Access VisualDSP++ online Help by clicking the Start button and choos-
ing Programs, Analog Devices, VisualDSP++ for 16-bit processors , and
VisualDSP++ Documentation.
From the Web
To download the tools manuals, point your browser at
www.analog.com/technology/dsp/developmentTools/gen_purpose.html.
Select a DSP family and book title. Download archive (.ZIP) files, one for
each manual. Use any archive management software, such as WinZip, to
decompress downloaded files.
Printed Manuals
For general questions regarding literature ordering, call the Literature
Center at 1-800-ANALOGD (1-800-262-5643) and follow the prompts.
VisualDSP++ Documentation Set
VisualDSP++ manuals may be purchased through Analog Devices
Customer Service at 1-781-329-4700; ask for a Customer Service
representative. The manuals can be purchased only as a kit. For additional
information, call 1-603-883-2430.
Product Information
xviii VisualDSP++ Loader Manual
for 16-Bit Processors
If you do not have an account with Analog Devices, you will be referred to
Analog Devices distributors. To get information on our distributors, log
onto http://www.analog.com/salesdir/continent.asp.
Hardware Manuals
Hardware reference and instruction set reference manuals can be ordered
through the Literature Center or downloaded from the Analog Devices
Web site. The phone number is 1-800-ANALOGD (1-800-262-5643).
The manuals can be ordered by a title or by product number located on
the back cover of each manual.
Datasheets
All datasheets can be downloaded from the Analog Devices Web site. As a
general rule, any datasheet with a letter suffix (L, M, N) can be obtained
from the Literature Center at 1-800-ANALOGD (1-800-262-5643) or
downloaded from the Web site. Datasheets without the suffix can be
downloaded from the Web site only—no hard copies are available. You
can ask for the datasheet by a part name or by product number.
If you want to have a datasheet faxed to you, the phone number for that
service is 1-800-446-6212. Follow the prompts and a list of datasheet
code numbers will be faxed to you. Call the Literature Center first to find
out if requested datasheets are available.
Contacting DSP Publications
Please send your comments and recommendation on how to improve our
manuals and online Help. You can contact us at
VisualDSP++ Loader Manual xix
for 16-Bit Processors
Preface
Notation Conventions
The following table identifies and describes text conventions used in this
manual.
!
Additional conventions, which apply only to specific chapters, may
appear throughout this document.
!
Code has been formatted to fit this manual’s page width.
Example Description
Close command
(File menu)
Text in bold style indicates the location of an item within the
VisualDSP++ environment’s menu system. For example, the Close
command appears on the File menu.
{this | that} Alternative required items in syntax descriptions appear within curly
brackets and separated by vertical bars; read the example as
this or
that.
[this | that] Optional items in syntax descriptions appear within brackets and sepa-
rated by vertical bars; read the example as an optional this or that.
[this,…] Optional item lists in syntax descriptions appear within brackets
delimited by commas and terminated with an ellipsis; read the example
as an optional comma-separated list of
this.
.SECTION Commands, directives, keywords, and feature names are in text with
letter gothic font.
filename Non-keyword placeholders appear in text with italic style format.
A note, providing information of special interest or identifying a
related topic. In the online version of this book, the word Note appears
instead of this symbol.
A caution, providing information about critical design or program-
ming issues that influence operation of a product. In the online version
of this book, the word Caution appears instead of this symbol.
Notation Conventions
xx VisualDSP++ Loader Manual
for 16-Bit Processors
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166

Analog Devices VISUALDSP++ 3.5 User manual

Category
Software
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI