Texas Instruments TMS320F20x/F24x DSP manual A.5.1 Assembly Code for TMS320F240, Preliminary

Models: TMS320F20x/F24x DSP

1 108
Download 108 pages 2.5 Kb
Page 92
Image 92
A.5 Sample Assembly Code to Erase and Reprogram the TMS320F240

Sample Assembly Code to Erase and Reprogram the TMS320F240

PRELIMINARY

A.5 Sample Assembly Code to Erase and Reprogram the TMS320F240

The algorithm files can be used from assembly in a straightforward manner. In general, the algorithms can reside anywhere in program space. However, the algorithms cannot be executed from the flash module that is being modified, and the algorithms must execute with zero wait states. The assembly code and linker command file in this section provide a working example for the 'F240.

Note:

This is not an actual application example since a boot mechanism is required to load the external SRAM on powerup. This example uses the 'C2xx C- source Debugger to download the code to the external SRAM. In addition, no reset or interrupt vectors are initialized.

The system requirements are F240 EVM or target board with external pro- gram space SRAM located at 0x8000 and a minumum of 1K words.

A.5.1 Assembly Code for TMS320F240

*************************************************************

*

Filename: ASMEXA24.ASM

*

*

Description:

*

* This file contains an example of how to erase

*

* and program the TMS320F240 flash from assembly

*

* code using the standard flash algorithm modules.

*

* The example erases the 'F240 flash

*

* modules, then programs the first three words.

*

* Since the standard flash algorithms are actually

*

* used to perform the various flash operations,

*

* they must must be combined with this code at

*

*

link time.

*

*

 

*

*

03/25/98 Updated for inclusion in flash

*

*

technical reference.

*

*************************************************************

.title º**Example of Using 'F2XX Flash Algorithms**º

A-40

PRELIMINARY

Page 92
Image 92
Texas Instruments TMS320F20x/F24x DSP manual A.5 Sample Assembly Code to Erase and Reprogram the TMS320F240, Preliminary