MEMORY { PAGE 0: /* Program Memory */ M0_SARAM : origin = 0x00040, length = 0x000010 /* Stack Area */ /* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */ STACK_AREA : origin = 0x00400, length = 0x000400 /* Stack Area */ ZONE0 : origin = 0x004000, length = 0x001000 /* XINTF zone 0 */ BT_TL_RAM : origin = 0x008000, length = 0x000400 /* on-chip RAM block part of L0. RAM for Boot and Test link CSCI(1K). */ RSVD_RAM1 : origin = 0x008700, length = 0x000900 /* on-chip RAM block part of L0. Reserved RAM (3K). */ APP_RAM_FUNC : origin = 0x009000, length = 0x001000 /* on-chip RAM block L1. App RAM functions (4K). */ RSVD_RAM2 : origin = 0x00A000, length = 0x002000 /* on-chip RAM block L2 & L3. Reserved RAM (8K). */ ZONE6 : origin = 0x0100000, length = 0x100000 /* XINTF zone 6 */ ZONE7A : origin = 0x0200000, length = 0x00FC00 /* XINTF zone 7 - program space */ RSVD_FLASH : origin = 0x300000, length = 0x020000 /* on-chip FLASH E, F, G, H. Reserved FLASH (128K) */ APP_FLASH : origin = 0x320000, length = 0x008000 /* on-chip FLASH D. Flash for application CSCI sections (32K) */ APP_BEGIN : origin = 0x328000, length = 0x000002 /* Part of FLASH C. Used for boot to application jump. */ APP_TXT_FLASH : origin = 0x328002, length = 0x007FFE /* on-chip FLASH C. Flash for Application text(31.99K) */ BT_TL_FLASH : origin = 0x338000, length = 0x007F80 /* on-chip FLASH part of FLASH A. Flash for Boot and Test Link CSCI(31.875K) */ CSM_RSVD : origin = 0x33FF80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */ CSM_PWL : origin = 0x33FFF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */ OTP : origin = 0x380400, length = 0x000400 /* on-chip OTP */ ADC_CAL : origin = 0x380080, length = 0x000009 /* ADC_cal function in Reserved memory */ APP_DATA_FLASH : origin = 0x330000, length = 0x007FEF /* on-chip FLASH B. Flash for application constant data(32K) */ APP_RAM : origin = 0x00C000, length = 0x004800 /* on-chip RAM block L4, L5 and part of L6. RAM for Application CSCI(10K). Modified 2800 to 4800*/ APP_SW_PART_NUMBER : origin = 0x337FF0 , length = 0x00000F /* Application Software Part Number */ IQTABLES : origin = 0x3FE000, length = 0x000b50 /* IQ Math Tables in Boot ROM */ IQTABLES2 : origin = 0x3FEB50, length = 0x00008c /* IQ Math Tables in Boot ROM */ FPUTABLES : origin = 0x3FEBDC, length = 0x0006A0 /* FPU Tables in Boot ROM */ ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */ RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */ VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */ PAGE 1 : /* Data Memory */ /* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation */ /* Registers remain on PAGE1 */ BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */ RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */ RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */ RSVD_RAM3 : origin = 0x00E800, length = 0x001800 /* on-chip RAM block part of L6, L7. Reserved RAM (6K). */ ZONE7B : origin = 0x20FC00, length = 0x000400 /* XINTF zone 7 - data space */ } SECTIONS { /* Allocate program areas: */ .cinit : > APP_FLASH PAGE = 0 .pinit : > APP_FLASH, PAGE = 0 .text : > APP_TXT_FLASH PAGE = 0 codestart : > APP_BEGIN PAGE = 0 ramfuncs : LOAD = APP_TXT_FLASH, RUN = APP_RAM_FUNC, LOAD_START(_RamfuncsLoadStart), LOAD_END(_RamfuncsLoadEnd), RUN_START(_RamfuncsRunStart), PAGE = 0 csmpasswds : > CSM_PWL PAGE = 0 csm_rsvd : > CSM_RSVD PAGE = 0 /* Allocate uninitalized data sections: */ .stack : > STACK_AREA PAGE = 0 .ebss : > APP_RAM PAGE = 0 .esysmem : > APP_RAM PAGE = 0 /* Initalized sections go in Flash */ /* For SDFlash to program these, they must be allocated to page 0 */ .econst : > APP_DATA_FLASH PAGE = 0 .switch : > APP_FLASH PAGE = 0 ANALOGDATA : > APP_RAM PAGE = 0 CRITICAL_RAM : > M0_SARAM PAGE = 0 APP_SW_PART_NUMBER : > APP_SW_PART_NUMBER PAGE = 0 /* Allocate IQ math areas: */ IQmath : > APP_RAM PAGE = 0 /* Math Code */ IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD _sincos : > APP_RAM_FUNC, PAGE = 0, TYPE = NOLOAD /* Uncomment the section below if calling the IQNexp() or IQexp() functions from the IQMath.lib library in order to utilize the relevant IQ Math table in Boot ROM (This saves space and Boot ROM is 1 wait-state). If this section is not uncommented, IQmathTables2 will be loaded into other memory (SARAM, Flash, etc.) and will take up space, but 0 wait-state is possible. */ /* IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD { IQmath.lib (IQmathTablesRam) } */ FPUmathTables : > FPUTABLES, PAGE = 0, TYPE = NOLOAD /* Allocate DMA-accessible RAM sections: */ /* DMARAML4 : > RAML4, PAGE = 1 */ /* DMARAML5 : > RAML5, PAGE = 1 */ /* DMARAML6 : > RAML6, PAGE = 1 */ /* DMARAML7 : > RAML7, PAGE = 1 */ /* Allocate 0x400 of XINTF Zone 7 to storing data */ ZONE7DATA : > ZONE7B, PAGE = 1 /* .reset is a standard section used by the compiler. It contains the */ /* the address of the start of _c_int00 for C Code. /* /* When using the boot ROM this section and the CPU vector */ /* table is not needed. Thus the default type is set here to */ /* DSECT */ .reset : > RESET, PAGE = 0, TYPE = DSECT vectors : > VECTORS PAGE = 0, TYPE = DSECT /* Allocate ADC_cal function (pre-programmed by factory into TI reserved memory) */ .adc_cal : load = ADC_CAL, PAGE = 0, TYPE = NOLOAD }