--entry_point="code_start"


/* Specify the system memory map */

MEMORY
{
    SRAM_LDAx : o=0x200E0200, l=0x1E000 // first 0x200 bytes reserved for serial-over-jtag
    SRAM_LPAx : o=0x20100000, l=0x10000
    SRAM_CPAx : o=0x20110000, l=0x10000
    SRAM_CDAx : o=0x20120000, l=0x30000

    FLASH_RP0 : o=0x10000000, l=0x100000
    FLASH_RP1 : o=0x10100000, l=0x100000
    FLASH_RP2 : o=0x10200000, l=0x100000
    FLASH_RP3 : o=0x10300000, l=0x100000
}



/* Specify the sections allocation into memory */

SECTIONS
{
    codestart     : {} > 0x20100010

    .text         : {} > SRAM_LPAx
    .TI.ramfunc   : {} > SRAM_LPAx
    .ramfuncs     : {} > SRAM_LPAx
    .cinit        : {} > SRAM_LDAx
    .const        : {} > SRAM_LDAx
    .rodata       : {} > SRAM_LDAx
    .init_array   : {} > SRAM_LDAx

    .data         : {} > SRAM_LDAx
    .bss          : {} > SRAM_LDAx
    .stack        : {} > SRAM_LDAx
    .sysmem       : {} > SRAM_LDAx
    .cio          : {} > SRAM_LDAx

}