Analog Devices ee-72 Application Notes

Engineer-to-Engineer’s Note EE-72
Phone: (800) ANALOG-D, FAX: (781) 461-3010, EMAIL: dsp.support@analog.com, FTP: ftp.analog.com, WEB: www.analog.com/dsp
Copyright 1999, Analog Devices, Inc. All rights reserved. Analog Devices assumes no responsibility for customer product design or the use or application of customers’ products or for any infringements of patents or rights of others which may result from Analog Devices assistance. All trademarks and logos are property of their respective holders. Information furnished by Analog Devices Applications and Development Tools Engineers is believed to be accurate and reliable, however no responsibility is assumed by Analog Devices regarding the technical accuracy of the content provided in all Analog Devices’ Engineer-to-Engineer Notes.
Technical Notes on using Analog Devices’ DSP components and development tools
ADSP-21061 WITH A MULTIPROCESSOR ID=001
Contributed by: Joe Tykowski , Peninsula Solutions
Edited by: JT, DSP Applications Group
OVERVIEW
The SHARC EZ-Kit-Lite is useful as a design, development, and demonstration platform for Digital Signal Processing applications. As a demonstration tool, it is often preferable to generate a PROM for the EZ-Kit rather than download an application over the serial port. This app note describes how to generate a bootable PROM from a “C” source file. This app note uses the Talk-Through “C” example program that comes with the EZ-Kit. The information presented here can be applied to any “C” program. Programmers developing code for the SHARC EZ-LITE Lite should be aware that the ADSP­21061 has it's multiprocessor ID pins, ID
, set to 001. This is important when setting up the command
0-2
line switches for the boot loader, LDR21k.
Last Modified: 9/08/99
ARCHITECTURE FILE
The EZ-Kit Lite package requires the use of the EZKIT.ACH file for specifying how the internal memory of the EZ-Kit is organized. The Lite compiler must use the file:
C:\EZ-KIT\21K\LIB\EZKIT.ACH
Note: the full “C” compiler version allows the user to specify which .ach file is used on the compiler command line.
The EZKIT.ACH file that is included for demonstration purposes should be saved for future reference. In order to make a bootable PROM, modify the file from this:
Table 1 - Original EZKIT.ACH file
!--------------------------------------------------------------------­.SYSTEM SHARC_EZKIT_Lite; ! ! This architecture file is required for used with the SHARC EZ-KIT ! Lite development software. It is structured for use with the C ! compiler but also can be used with assembly code. !
a
! This architecture file allocates: ! Internal 133 words of 48-bit run-time header in memory block 0 ! 16 words of 48-bit initialization code in memory block 0 ! 619 words of 48-bit kernel code in memory block 0 ! 7424 words of 48-bit C code space in memory block 0 ! 4K words of 32-bit PM C data space in memory block 0 ! ! 8K words of 32-bit C DM data space in memory block 1 ! 4K words of 32-bit C heap space in memory block 1 ! 3712 words of 32-bit C stack space in memory block 1 ! 384 words of 32-bit kernel data in memory block 1
.PROCESSOR = ADSP21061;
! ------------------------------------------------------------­! Internal memory Block 0 ! ------------------------------------------------------------­.SEGMENT/RAM/BEGIN=0x00020000 /END=0x00020084 /PM/WIDTH=48 seg_rth; .SEGMENT/RAM/BEGIN=0x00020085 /END=0x00020094 /PM/WIDTH=48 seg_init; .SEGMENT/RAM/BEGIN=0x00020095 /END=0x000202ff /PM/WIDTH=48 seg_knlc; .SEGMENT/RAM/BEGIN=0x00020300 /END=0x00021fff /PM/WIDTH=48 seg_pmco; .SEGMENT/RAM/BEGIN=0x00023000 /END=0x00023fff /PM/WIDTH=32 seg_pmda;
! ------------------------------------------------------------­! Internal memory Block 1 ! ------------------------------------------------------------­.SEGMENT/RAM/BEGIN=0x00024000 /END=0x00025fff /DM/WIDTH=32 seg_dmda; .SEGMENT/RAM/BEGIN=0x00026000 /END=0x00026fff /DM/WIDTH=32 /cheap seg_heap; .SEGMENT/RAM/BEGIN=0x00027000 /END=0x00027e7f /DM/WIDTH=32 seg_stak; .SEGMENT/RAM/BEGIN=0x00027e80 /END=0x00027fff /DM/WIDTH=32 seg_knld;
! ------------------------------------------------------------­! External Memory Select 1 is reserved for the UART. ! -------------------------------------------------------------
.ENDSYS;
To this:
Table 2 - "Promable" EZKIT.ACH file
!--------------------------------------------------------------------­.SYSTEM SHARC_EZKIT_Lite; ! ! This architecture file is required for used with the SHARC EZ-KIT ! Lite development software. It is structured for use with the C ! compiler but also can be used with assembly code. ! ! When compiling with g21k the "-nomem" switch should be used to ! disable unnecessary runtime initialization. ! ! This architecture file allocates: ! Internal 133 words of 48-bit run-time header in memory block 0 ! 16 words of 48-bit initialization code in memory block 0 ! 8043 words of 48-bit C code space in memory block 0 ! 4K words of 32-bit PM C data space in memory block 0 ! ! 8K words of 32-bit C DM data space in memory block 1 ! 4K words of 32-bit C heap space in memory block 1 ! 4K words of 32-bit C stack space in memory block 1
.PROCESSOR = ADSP21061;
EN-72 Page 2
Technical Notes on using Analog Devices’ DSP components and development tools
Phone: (800) ANALOG-D, FAX: (781) 461-3010, FTP: ftp.analog.com, EMAIL: dsp.support@analog.com
Loading...
+ 2 hidden pages