Texas Instruments TMS320F20x/F24x DSP Preliminary, Assembly Source Listings and Program Examples

Models: TMS320F20x/F24x DSP

1 108
Download 108 pages 2.5 Kb
Page 97
Image 97
A.5.2 Linker Command File for TMS320F240 Sample Assembly Code

PRELIMINARY

Sample Assembly Code to Erase and Reprogram the TMS320F240

A.5.2 Linker Command File for TMS320F240 Sample Assembly Code

/************************************************************/

 

/*

Filename: ASMEXA24.CMD

 

 

*/

 

/*

Description: Linker command file for 'F240 example of

*/

 

/*

on±chip flash programming from assembly. This command

*/

 

/*

file links the example to addr 0x8000 of the off±chip

*/

 

/*

pgm RAM, so that the debugger can be used to set

*/

 

/*

breakpoints.

 

 

 

*/

 

/*

Notes:

 

 

 

 

*/

 

/*

1. The object modules for the standard flash

*/

 

/*

 

algos are expected to be in a subdirectory

*/

 

/*

 

(ALGOS) of the path of this file.

 

*/

 

/************************************************************/

 

/*

Rev1.0

 

 

 

 

3/98 JGC

*/

 

/************************************************************/

 

/*******************Command Line Options*********************/

 

±e .text

 

 

 

 

 

 

 

±o asmexa24.out

 

 

 

 

 

±m asmexa24.map

 

 

 

 

 

/************************Input Files*************************/

 

asmexa24.obj

 

/*User assembly code that calls flash algos.

*/

algos\spgm20.obj

/*Standard Programming algorithm.

 

*/

algos\sclr20.obj

/*Standard Clear algorithm.

 

*/

algos\sera20.obj

/*Standard Erase algorithm.

 

*/

algos\sflw20.obj

/*Standard Flash±write algorithm.

 

*/

algos\sutils20.obj

/*Subroutines used by standard algorithms.

*/

/************************Memory Map**************************/

 

MEMORY

 

 

 

 

 

 

 

{

 

 

 

 

 

 

 

 

PAGE 0:

/*

PM ± Program memory

*/

 

 

 

 

FLASH0:

origin = 0x0000, length = 0x4000

 

 

 

 

EXTRAM:

origin = 0x8000, length = 0x400 /*Use 1K of Ext. RAM for PROGRAM*/

 

B0PGM:

 

origin = 0xfe00, length = 0x100

 

 

 

PAGE 1:

 

 

 

 

/* DM ± Data memory */

 

BLK_B2:

origin = 0x60, length = 0x20

/* BLOCK B2*/

 

 

 

EX1_DM:

origin = 0x8000, length = 0x4000

/* External data RAM */

 

B0:

 

origin = 0x200, length = 0x100

/* B0 Ram (Used for temp data )*/

 

B1:

 

origin = 0x300, length = 0x100

/* B1 Ram (Used for algo vars )*/

}

 

 

 

 

 

 

 

 

/*************************Section Allocation***************************/

SECTIONS

 

 

 

 

 

 

 

{

 

 

 

 

 

 

 

 

 

.text

:{} > EXTRAM PAGE 0

/* asmexa24.asm */

 

 

PRELIMINARY

Assembly Source Listings and Program Examples

A-45

Page 97
Image 97
Texas Instruments TMS320F20x/F24x DSP A.5.2 Linker Command File for TMS320F240 Sample Assembly Code, Preliminary, A-45