MEMORY
{
PAGE 0 :  /* Program Memory */
          /* Memory (RAM/FLASH) blocks can be moved to PAGE1 for data allocation */
          /* BEGIN is used for the "boot to Flash" bootloader mode   */

   BOOT_RSVD       : origin = 0x000002, length = 0x000120

   RAMM0           : origin = 0x000122, length = 0x0006DE

   RAMLS0_5_CODE   : origin = 0x008000, length = 0x010000

   RESET           : origin = 0x3FFFC0, length = 0x000002

   BEGIN           : origin = 0x080000, length = 0x000002

   /* Flash sectors */
   FLASHA          : origin = 0x080002, length = 0x03FFFE//length = 0x001FFE	/* on-chip Flash */

}

SECTIONS
{
   /* User Defined Sections */
   codestart           : > BEGIN,			PAGE = 0, ALIGN(4)
   wddisable		   : > FLASHA,			PAGE = 0, ALIGN(4)
   copysections	       : > FLASHA,			PAGE = 0, ALIGN(4)
   csm_pw_data		   : > RAMLS0_5_CODE,	PAGE = 0
   
  /* .reset is a standard section used by the compiler. */
  /* It contains the address of the start of _c_int00 for C Code. */
  /* The default type is set here to DSECT */
   .reset              : > RESET,			PAGE = 0, TYPE = DSECT

   /* Allocate uninitalized data sections */
   .stack              : > RAMM0,		    PAGE = 0
   .ebss               : > RAMLS0_5_CODE,   PAGE = 0
   .esysmem            : > RAMLS0_5_CODE, PAGE = 0
   .cio                : > RAMLS0_5_CODE, PAGE = 0

   /* Initialized Sections */
   .cinit              : LOAD = FLASHA,			PAGE = 0, ALIGN(4)
						 RUN = RAMLS0_5_CODE,	PAGE = 0
                         LOAD_START(_cinit_loadstart),
                         RUN_START(_cinit_runstart),
						 SIZE(_cinit_size)

   .econst             :
   					     LOAD = FLASHA,				PAGE = 0, ALIGN(4)
						 RUN = RAMLS0_5_CODE,		PAGE = 0
                         LOAD_START(_econst_loadstart),
                         RUN_START(_econst_runstart),
						 RUN_SIZE(_econst_size)

   .pinit              :
   					     LOAD = FLASHA,			PAGE = 0, ALIGN(4)
						 RUN = RAMLS0_5_CODE,	PAGE = 0
                         LOAD_START(_pinit_loadstart),
                         RUN_START(_pinit_runstart),
						 RUN_SIZE(_pinit_size)
   
   .switch             :
   						 LOAD = FLASHA,			PAGE = 0, ALIGN(4)
						 RUN = RAMLS0_5_CODE,	PAGE = 0
                         LOAD_START(_switch_loadstart),
                         RUN_START(_switch_runstart),
						 RUN_SIZE(_switch_size)

	.text  			   :
						 LOAD = FLASHA,	PAGE = 0, ALIGN(4)
                         RUN = RAMLS0_5_CODE,		PAGE = 0
                         LOAD_START(_text_loadstart),
                         RUN_START(_text_runstart),
						 RUN_SIZE(_text_size)

#ifdef __TI_COMPILER_VERSION__
   #if __TI_COMPILER_VERSION__ >= 15009000
    .TI.ramfunc 	   :
    					 LOAD = FLASHA,							PAGE = 0, ALIGN(4)
                         RUN = RAMLS0_5_CODE,	PAGE = 0
                         LOAD_START(_ramfuncs_loadstart),
                         RUN_START(_ramfuncs_runstart),
                         RUN_SIZE(_ramfuncs_size)
   #else
   ramfuncs            :
   						 LOAD = FLASHA,							PAGE = 0, ALIGN(4)
                         RUN = RAMLS0_5_CODE,	PAGE = 0
                         LOAD_START(_ramfuncs_loadstart),
                         RUN_START(_ramfuncs_runstart),
                         RUN_SIZE(_ramfuncs_size)
   #endif
#endif

}

/*
//===========================================================================
// End of file.
//===========================================================================
*/