Texas Instruments TMS320F20x/F24x DSP Computer Drive User Manual


 
Sample C Code to Erase and Reprogram the TMS320F206
PRELIMINARY
A-39
Assembly Source Listings and Program Examples
PRELIMINARY
FLASH0: origin = 0x0000, length = 0x3fff
FLASH1: origin = 0x4000, length = 0x3fff
PSARAM: origin = 0x8000, length = 0x400 /*Use 1K of SARAM for PROGRAM*/
B0: origin = 0xff00, length = 0x1ff
PAGE 1: /* DM – Data memory */
BLK_B2: origin = 0x60, length = 0x20 /*BLOCK B2 */
DSARAM: origin = 0xc00, length = 0xC00 /*Use 3K of SARAM for data */
/*DON=1*/
EX1_DM: origin = 0x4000, length = 0x4000 /*External data RAM */
B1: origin = 0x300, length = 0x1ff /*B1 RAM (Used for algo vars )*/
}
/*************************Section Allocation***************************/
SECTIONS
{
.text : {} > PSARAM PAGE 0 /* sample.c */
/*All these sections are for flash programming.*/
PRG_text : {} > PSARAM PAGE 0 /**erase() and program()*****/
/*****from flash.asm file****/
fl_prg : {} > PSARAM PAGE 0 /**Programming Algorithm*****/
fl_clr : {} > PSARAM PAGE 0 /******Clear Algorithm*******/
fl_ers : {} > PSARAM PAGE 0 /******Erase Algorithm*******/
fl_wrt : {} > PSARAM PAGE 0 /****Flash–write Algorithm***/
DLY : {} > PSARAM PAGE 0 /******Delay Subroutine******/
REG : {} > PSARAM PAGE 0 /*******Regs Subroutine******/
ARY : {} > PSARAM PAGE 0 /******Array Subroutine******/
PRG_data : {} > B1 PAGE 1 /*Reserved in flash.asm for**/
/***flash algo variables.****/
PRG_parm : {} > B1 PAGE 1 /*Reserved in flash.asm for**/
/*parameter passing to algos*/
/*End of sections for flash programming. */
.bss : {} > B1 PAGE 1
.cinit : {} > B1 PAGE 1
.const : {} > B1 PAGE 1
.data : {} > B1 PAGE 1
.stack : {} > B1 PAGE 1 /*C stack. */
}