Texas Instruments TMS320F20x/F24x DSP Computer Drive User Manual


 
A-1
Appendix A
Assembly Source Listings and
Program Examples
The flash array is erased and programmed by code running on the DSP core.
This code can originate from off-chip memory or can be loaded into on-chip
RAM. The available flash programming tools for the ’F20x/F24x allow you to
program the on-chip flash module without having knowledge or visibility of the
algorithms. One scheme uses the scan emulation feature of the ’F20x/F24x to
load the algorithms onto the DSP and control execution, and another scheme
relies on boot loader code preprogrammed into the flash memory at the facto-
ry. You can find more information about these stand-alone flash programming
tools on the Texas Instruments web page at http://www.ti.com. This appendix
explains how to use the algorithm source files to program the flash module.
You need this information to create new flash programming tools or to add
such features as remote reprogrammability to a design.
Topic Page
A.1 Assembly Source for Algorithms A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2 C-Callable Interface to Flash Algorithms A-27. . . . . . . . . . . . . . . . . . . . . . .
A.3 Sample Assembly Code to Erase and Reprogram
the TMS320F206 A-32. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.4 Sample C Code to Erase and Reprogram the TMS320F206 A-37. . . . . .
A.5 Sample Assembly Code to Erase and Reprogram
the TMS320F240 A-40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.6 Using the Algorithms with C Code to Erase and Reprogram the
TMS320F240 A-47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix A
PRELIMINARY
PRELIMINARY