Update repo
This commit is contained in:
1 parent
749dab5721
commit
ce65a0f59a
14950 files changed
+4408250
-1
No files matched your search
@@ -0,0 +1,239 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f28003x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f28003x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f28003x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x00000000, length = 0x00000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x00080000, length = 0x00000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x00000128, length = 0x000002D8
|
||||
RAMM1 : origin = 0x00000400, length = 0x00000380 /* on-chip RAM block M1 */
|
||||
|
||||
RAMLS0 : origin = 0x00008000, length = 0x00000800
|
||||
RAMLS1 : origin = 0x00008800, length = 0x00000800
|
||||
|
||||
RAMGS0 : origin = 0x0000C000, length = 0x00001000
|
||||
RAMGS1 : origin = 0x0000D000, length = 0x00001000
|
||||
|
||||
RESET : origin = 0x003FFFC0, length = 0x00000002
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 1 */
|
||||
FLASH_BANK1_SEC0 : origin = 0x090000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC1 : origin = 0x091000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC2 : origin = 0x092000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC3 : origin = 0x093000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC4 : origin = 0x094000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC5 : origin = 0x095000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC6 : origin = 0x096000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC7 : origin = 0x097000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC8 : origin = 0x098000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC9 : origin = 0x099000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC10 : origin = 0x09A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC11 : origin = 0x09B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC12 : origin = 0x09C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC13 : origin = 0x09D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC14 : origin = 0x09E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC15 : origin = 0x09F000, length = 0x001000 /* on-chip Flash */
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x00000002, length = 0x00000126 /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
RAMLS2 : origin = 0x00009000, length = 0x00000800
|
||||
RAMLS3 : origin = 0x00009800, length = 0x00000800
|
||||
RAMLS4 : origin = 0x0000A000, length = 0x00000800
|
||||
RAMLS5 : origin = 0x0000A800, length = 0x00000800
|
||||
RAMLS6 : origin = 0x0000B000, length = 0x00000800
|
||||
RAMLS7 : origin = 0x0000B800, length = 0x00000800
|
||||
|
||||
RAMGS2 : origin = 0x0000E000, length = 0x00001000
|
||||
RAMGS3 : origin = 0x0000F000, length = 0x00001000
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 0 */
|
||||
FLASH_BANK0_SEC0 : origin = 0x080002, length = 0x000FFE /* on-chip Flash */
|
||||
FLASH_BANK0_SEC1 : origin = 0x081000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC2 : origin = 0x082000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC3 : origin = 0x083000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC4 : origin = 0x084000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC5 : origin = 0x085000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC6 : origin = 0x086000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC7 : origin = 0x087000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC8 : origin = 0x088000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC9 : origin = 0x089000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC10 : origin = 0x08A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC11 : origin = 0x08B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC12 : origin = 0x08C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC13 : origin = 0x08D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC14 : origin = 0x08E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC15 : origin = 0x08F000, length = 0x001000 /* on-chip Flash */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
|
||||
.bss : > RAMGS0, PAGE = 0
|
||||
.const : > RAMGS0, PAGE = 0
|
||||
.data : > RAMGS0, PAGE = 0
|
||||
.init_array : > RAMGS0, PAGE = 0
|
||||
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMGS0, PAGE = 0
|
||||
.text : >> RAMGS0 | RAMGS1, PAGE = 0
|
||||
.cinit : > RAMGS1, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0, PAGE = 0
|
||||
.switch : > RAMGS0, PAGE = 0
|
||||
|
||||
.econst : > RAMGS3, PAGE = 1
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4, PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0, PAGE = 0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
|
||||
#if defined(__TI_EABI__)
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(RamfuncsRunStart),
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize),
|
||||
PAGE = 1
|
||||
|
||||
#else
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
.text : >> FLASH_BANK0_SEC3 | FLASH_BANK0_SEC4, PAGE = 1
|
||||
.cinit : > FLASH_BANK0_SEC5, PAGE = 1
|
||||
|
||||
.pinit : > FLASH_BANK0_SEC0, PAGE = 1
|
||||
.switch : > FLASH_BANK0_SEC0, PAGE = 1
|
||||
|
||||
.econst : > FLASH_BANK0_SEC2, PAGE = 1
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
#if defined(__TI_EABI__)
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(CLA1mathTablesRunStart),
|
||||
LOAD_START(CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#else
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#if defined(__TI_EABI__)
|
||||
Cla1Prog : LOAD = FLASH_BANK1_SEC1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(Cla1ProgRunStart),
|
||||
LOAD_START(Cla1ProgLoadStart),
|
||||
LOAD_SIZE(Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
#else
|
||||
Cla1Prog : LOAD = FLASH_BANK1_SEC1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS5, PAGE = 1
|
||||
.bss_cla : > RAMLS5, PAGE = 1
|
||||
.const_cla : > RAMLS5, PAGE = 1
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS3, PAGE = 1
|
||||
.sysmem : > RAMGS3, PAGE = 1
|
||||
|
||||
.stack : > RAMM1, PAGE = 0 /* Needs to be in lower 64K memory */
|
||||
|
||||
.ebss : > RAMGS3, PAGE = 1
|
||||
.esysmem : > RAMGS3, PAGE = 1
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,204 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f28004x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f28004x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f28004x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x0000F5, length = 0x00030B
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
|
||||
RAMGS0 : origin = 0x00C000, length = 0x002000
|
||||
RAMGS1 : origin = 0x00E000, length = 0x002000
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 1 */
|
||||
FLASH_BANK1_SEC0 : origin = 0x090000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC1 : origin = 0x091000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC2 : origin = 0x092000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC3 : origin = 0x093000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC4 : origin = 0x094000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC5 : origin = 0x095000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC6 : origin = 0x096000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC7 : origin = 0x097000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC8 : origin = 0x098000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC9 : origin = 0x099000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC10 : origin = 0x09A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC11 : origin = 0x09B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC12 : origin = 0x09C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC13 : origin = 0x09D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC14 : origin = 0x09E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC15 : origin = 0x09F000, length = 0x001000 /* on-chip Flash */
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0000F3 /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
|
||||
RAMGS2 : origin = 0x010000, length = 0x002000
|
||||
RAMGS3 : origin = 0x012000, length = 0x002000
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 0 */
|
||||
FLASH_BANK0_SEC0 : origin = 0x080002, length = 0x000FFE /* on-chip Flash */
|
||||
FLASH_BANK0_SEC1 : origin = 0x081000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC2 : origin = 0x082000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC3 : origin = 0x083000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC4 : origin = 0x084000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC5 : origin = 0x085000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC6 : origin = 0x086000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC7 : origin = 0x087000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC8 : origin = 0x088000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC9 : origin = 0x089000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC10 : origin = 0x08A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC11 : origin = 0x08B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC12 : origin = 0x08C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC13 : origin = 0x08D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC14 : origin = 0x08E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC15 : origin = 0x08F000, length = 0x001000 /* on-chip Flash */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMGS0, PAGE = 0
|
||||
.text : > RAMGS1, PAGE = 0
|
||||
.cinit : > RAMGS0, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0, PAGE = 0
|
||||
.switch : > RAMGS0, PAGE = 0
|
||||
|
||||
.econst : > RAMGS3, PAGE = 1
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4, PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0, PAGE = 0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 1
|
||||
|
||||
.text : >> FLASH_BANK0_SEC3 | FLASH_BANK0_SEC4, PAGE = 1
|
||||
.cinit : > FLASH_BANK0_SEC5, PAGE = 1
|
||||
|
||||
.pinit : > FLASH_BANK0_SEC0, PAGE = 1
|
||||
.switch : > FLASH_BANK0_SEC0, PAGE = 1
|
||||
|
||||
.econst : > FLASH_BANK0_SEC2, PAGE = 1
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
Cla1Prog : LOAD = FLASH_BANK1_SEC1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS5, PAGE = 1
|
||||
.bss_cla : > RAMLS5, PAGE = 1
|
||||
.const_cla : > RAMLS5, PAGE = 1
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS3, PAGE = 1
|
||||
.sysmem : > RAMGS3, PAGE = 1
|
||||
|
||||
.stack : > RAMM1, PAGE = 0 /* Needs to be in lower 64K memory */
|
||||
|
||||
.ebss : > RAMGS3, PAGE = 1
|
||||
.esysmem : > RAMGS3, PAGE = 1
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,163 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f2805x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f2805x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f2805x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
BEGIN : origin = 0x3F7FFE, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
|
||||
|
||||
RAML3 : origin = 0x009000, length = 0x001000
|
||||
|
||||
FLASHJ : origin = 0x3E8000, length = 0x001000 /* on-chip FLASH */
|
||||
FLASHI : origin = 0x3E9000, length = 0x001000 /* on-chip FLASH */
|
||||
FLASHH : origin = 0x3EA000, length = 0x002000 /* on-chip FLASH */
|
||||
FLASHG : origin = 0x3EC000, length = 0x002000 /* on-chip FLASH */
|
||||
FLASHF : origin = 0x3EE000, length = 0x002000 /* on-chip FLASH */
|
||||
FLASHE : origin = 0x3F0000, length = 0x002000 /* on-chip FLASH */
|
||||
FLASHD : origin = 0x3F2000, length = 0x002000 /* on-chip FLASH */
|
||||
|
||||
FLASHA : origin = 0x3F7000, length = 0x000FFE /* on-chip FLASH */
|
||||
|
||||
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 :
|
||||
|
||||
BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
RAMM0 : origin = 0x000050, length = 0x0003B0
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAML01 : origin = 0x008000, length = 0x000C00
|
||||
RAML2 : origin = 0x008C00, length = 0x000400 /* on-chip RAM block L2 */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
CLA1_DATAROM : origin = 0x00F000, length = 0x001000
|
||||
|
||||
FLASHB : origin = 0x3F6000, length = 0x001000 /* on-chip FLASH */
|
||||
FLASHC : origin = 0x3F4000, length = 0x002000 /* on-chip FLASH */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
.cinit : > RAMM0, PAGE = 1
|
||||
.pinit : > RAMM0, PAGE = 1
|
||||
.text : >> RAMM0 | RAMM1 | RAML01, PAGE = 1
|
||||
ramfuncs : > RAMM0, PAGE = 1
|
||||
.econst : > RAMM1, PAGE = 1
|
||||
.switch : > RAMM0, PAGE = 1
|
||||
|
||||
Cla1Prog : {_Cla1ProgRunStart = .;} > RAML3,
|
||||
PAGE = 0
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > CLA1_DATAROM, PAGE = 1
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
.cinit : > FLASHA, PAGE = 0
|
||||
.pinit : > FLASHA, PAGE = 0
|
||||
.text : > FLASHA, PAGE = 0
|
||||
|
||||
ramfuncs : LOAD = FLASHC,
|
||||
RUN = RAMM0,
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 1
|
||||
|
||||
.econst : > FLASHD, PAGE = 0
|
||||
.switch : > FLASHD, PAGE = 0
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASHB,
|
||||
RUN = RAML2,
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = RAML3,
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
PAGE = 0
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
.stack : > RAMM1, PAGE = 1
|
||||
.ebss : > RAML01, PAGE = 1
|
||||
.esysmem : > RAMM1, PAGE = 1
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT
|
||||
vectors : > VECTORS, PAGE = 0, TYPE = DSECT
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAML2, PAGE = 1
|
||||
.bss_cla : > RAML2, PAGE = 1
|
||||
.const_cla : > RAML2, PAGE = 1
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f2806x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f2806x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f2806x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
|
||||
CLAPROGRAM : origin = 0x009000, length = 0x001000 /* on-chip RAM block L3 */
|
||||
RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */
|
||||
RAML5L8 : origin = 0x00C000, length = 0x008000
|
||||
OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */
|
||||
|
||||
FLASHH : origin = 0x3D8000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHG : origin = 0x3DC000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHF : origin = 0x3E0000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHE : origin = 0x3E4000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHD : origin = 0x3E8000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHC : origin = 0x3EC000, length = 0x004000 /* on-chip FLASH */
|
||||
FLASHA : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH */
|
||||
|
||||
ROM : origin = 0x3FF3B0, length = 0x000C10 /* Boot ROM */
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
|
||||
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
|
||||
|
||||
PAGE 1 :
|
||||
|
||||
BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
CLARAM0 : origin = 0x008800, length = 0x000400 /* on-chip RAM block L1 */
|
||||
CLARAM1 : origin = 0x008C00, length = 0x000400 /* on-chip RAM block L2 */
|
||||
CLARAM2 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */
|
||||
|
||||
RAML4 : origin = 0x00A000, length = 0x002000 /* on-chip RAM block L4 */
|
||||
USB_RAM : origin = 0x040000, length = 0x000800 /* USB RAM */
|
||||
FLASHB : origin = 0x3F0000, length = 0x004000 /* on-chip FLASH */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
.cinit : > RAMM0, PAGE = 0
|
||||
.pinit : > RAMM0, PAGE = 0
|
||||
.text : > RAML5L8, PAGE = 0
|
||||
ramfuncs : > RAML5L8, PAGE = 0
|
||||
.econst : > RAML5L8, PAGE = 0
|
||||
.switch : > RAMM0, PAGE = 0
|
||||
|
||||
Cla1Prog : {_Cla1ProgRunStart = .;} > CLAPROGRAM,
|
||||
PAGE = 0
|
||||
CLA1mathTables : > CLARAM1, PAGE = 1
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
.cinit : > FLASHA, PAGE = 0
|
||||
.pinit : > FLASHA, PAGE = 0
|
||||
.text : > FLASHA, PAGE = 0
|
||||
|
||||
ramfuncs : LOAD = FLASHD,
|
||||
RUN = RAML5L8,
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
.econst : > FLASHA, PAGE = 0
|
||||
.switch : > FLASHA, PAGE = 0
|
||||
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = CLAPROGRAM,
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
PAGE = 0
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASHB,
|
||||
RUN = CLARAM1,
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
PAGE = 1
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
.stack : > RAML4, PAGE = 1
|
||||
.ebss : > RAML4, PAGE = 1
|
||||
.esysmem : > RAML4, PAGE = 1
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
Cla1DataRam0 : > CLARAM0, PAGE = 1
|
||||
Cla1DataRam1 : > CLARAM1, PAGE = 1
|
||||
Cla1DataRam2 : > CLARAM2, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > CLARAM1, PAGE = 1
|
||||
.bss_cla : > CLARAM2, PAGE = 1
|
||||
.const_cla : > CLARAM2, PAGE = 1
|
||||
#endif
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT
|
||||
vectors : > VECTORS, PAGE = 0, TYPE = DSECT
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,193 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f2807x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f2807x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f2807x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
/* BEGIN is used for the "boot to SARAM" bootloader mode */
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x000122, length = 0x0002DE
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMD0 : origin = 0x00B000, length = 0x000800
|
||||
RAMD1 : origin = 0x00B800, length = 0x000800
|
||||
|
||||
RAMLS0_1 : origin = 0x008000, length = 0x001000
|
||||
|
||||
RAMGS0_1 : origin = 0x00C000, length = 0x002000
|
||||
|
||||
RAMGS8 : origin = 0x014000, length = 0x001000
|
||||
RAMGS9 : origin = 0x015000, length = 0x001000
|
||||
RAMGS10 : origin = 0x016000, length = 0x001000
|
||||
RAMGS11 : origin = 0x017000, length = 0x001000
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
|
||||
IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */
|
||||
IQTABLES2 : origin = 0x3FEB50, length = 0x00008C
|
||||
IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA
|
||||
|
||||
FLASHA : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
|
||||
FLASHB : origin = 0x082000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHC : origin = 0x084000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHD : origin = 0x086000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHE : origin = 0x088000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHF : origin = 0x090000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHG : origin = 0x098000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHH : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHI : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHJ : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHK : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
RAMLS2_3 : origin = 0x009000, length = 0x001000
|
||||
RAMLS4_5 : origin = 0x00A000, length = 0x001000
|
||||
|
||||
RAMGS2 : origin = 0x00E000, length = 0x001000
|
||||
RAMGS3_4 : origin = 0x00F000, length = 0x002000
|
||||
RAMGS5_6 : origin = 0x011000, length = 0x002000
|
||||
RAMGS7 : origin = 0x013000, length = 0x001000
|
||||
|
||||
RAMGS12 : origin = 0x018000, length = 0x001000
|
||||
RAMGS13 : origin = 0x019000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01B000, length = 0x001000
|
||||
|
||||
FLASHL : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHM : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHN : origin = 0x0BE000, length = 0x002000 /* on-chip Flash */
|
||||
|
||||
}
|
||||
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMM0, PAGE = 0
|
||||
.text :>> RAMM1 | RAMD0 | RAMD1, PAGE = 0
|
||||
.cinit : > RAMGS0_1, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0_1, PAGE = 0
|
||||
.switch : > RAMGS0_1, PAGE = 0
|
||||
.econst : > RAMGS3_4, PAGE = 1
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0_1, PAGE = 0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
.TI.ramfunc : LOAD = FLASHD,
|
||||
RUN = RAMGS0_1,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
.text : > FLASHA, PAGE = 0
|
||||
.cinit : > FLASHB, PAGE = 0
|
||||
|
||||
.pinit : > FLASHB, PAGE = 0
|
||||
.switch : > FLASHB, PAGE = 0
|
||||
.econst : > FLASHC, PAGE = 0
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASHL,
|
||||
RUN = RAMLS4_5,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = RAMLS0_1,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS4_5, PAGE = 1
|
||||
.bss_cla : > RAMLS4_5, PAGE = 1
|
||||
.const_cla : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS2_3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS7, PAGE = 1
|
||||
.sysmem : > RAMGS7, PAGE = 1
|
||||
|
||||
.stack : > RAMGS2, PAGE = 1 /* Needs to be in lower 64K memory */
|
||||
.ebss : > RAMGS5_6, PAGE = 1
|
||||
.esysmem : > RAMGS7, PAGE = 1
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,193 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f2837x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f2837x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f2837x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x000122, length = 0x0002DE
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMD0 : origin = 0x00B000, length = 0x000800
|
||||
RAMD1 : origin = 0x00B800, length = 0x000800
|
||||
|
||||
RAMLS0_1 : origin = 0x008000, length = 0x001000
|
||||
|
||||
RAMGS0_1 : origin = 0x00C000, length = 0x002000
|
||||
|
||||
RAMGS8 : origin = 0x014000, length = 0x001000
|
||||
RAMGS9 : origin = 0x015000, length = 0x001000
|
||||
RAMGS10 : origin = 0x016000, length = 0x001000
|
||||
RAMGS11 : origin = 0x017000, length = 0x001000
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
|
||||
IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */
|
||||
IQTABLES2 : origin = 0x3FEB50, length = 0x00008C
|
||||
IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA
|
||||
|
||||
FLASHA : origin = 0x080002, length = 0x001FFE /* on-chip Flash */
|
||||
FLASHB : origin = 0x082000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHC : origin = 0x084000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHD : origin = 0x086000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHE : origin = 0x088000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHF : origin = 0x090000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHG : origin = 0x098000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHH : origin = 0x0A0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHI : origin = 0x0A8000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHJ : origin = 0x0B0000, length = 0x008000 /* on-chip Flash */
|
||||
FLASHK : origin = 0x0B8000, length = 0x002000 /* on-chip Flash */
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
RAMLS2_3 : origin = 0x009000, length = 0x001000
|
||||
RAMLS4_5 : origin = 0x00A000, length = 0x001000
|
||||
|
||||
RAMGS2 : origin = 0x00E000, length = 0x001000
|
||||
RAMGS3_4 : origin = 0x00F000, length = 0x002000
|
||||
RAMGS5_6 : origin = 0x011000, length = 0x002000
|
||||
RAMGS7 : origin = 0x013000, length = 0x001000
|
||||
|
||||
RAMGS12 : origin = 0x018000, length = 0x001000
|
||||
RAMGS13 : origin = 0x019000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01B000, length = 0x001000
|
||||
|
||||
FLASHL : origin = 0x0BA000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHM : origin = 0x0BC000, length = 0x002000 /* on-chip Flash */
|
||||
FLASHN : origin = 0x0BE000, length = 0x002000 /* on-chip Flash */
|
||||
|
||||
}
|
||||
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMM0, PAGE = 0
|
||||
.text :>> RAMM1 | RAMD0 | RAMD1, PAGE = 0
|
||||
.cinit : > RAMGS0_1, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0_1, PAGE = 0
|
||||
.switch : > RAMGS0_1, PAGE = 0
|
||||
.econst : > RAMGS3_4, PAGE = 1
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0_1, PAGE = 0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
.TI.ramfunc : LOAD = FLASHD,
|
||||
RUN = RAMGS0_1,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
.text : > FLASHA, PAGE = 0
|
||||
.cinit : > FLASHB, PAGE = 0
|
||||
|
||||
.pinit : > FLASHB, PAGE = 0
|
||||
.switch : > FLASHB, PAGE = 0
|
||||
.econst : > FLASHC, PAGE = 0
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASHL,
|
||||
RUN = RAMLS4_5,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = RAMLS0_1,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS4_5, PAGE = 1
|
||||
.bss_cla : > RAMLS4_5, PAGE = 1
|
||||
.const_cla : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS2_3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS7, PAGE = 1
|
||||
.sysmem : > RAMGS7, PAGE = 1
|
||||
|
||||
.stack : > RAMGS2, PAGE = 1 /* Needs to be in lower 64K memory */
|
||||
.ebss : > RAMGS5_6, PAGE = 1
|
||||
.esysmem : > RAMGS7, PAGE = 1
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,255 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: F2837x_CLA_CFFT_lnk.cmd
|
||||
//
|
||||
// Description: Linker Command File for CLA DSP library examples that run
|
||||
// on the 2837x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// 2837x and depending on the active build configuration(RAM or FLASH)
|
||||
// the appropriate sections will either be loaded into RAM or FLASH
|
||||
// blocks
|
||||
//
|
||||
//#############################################################################
|
||||
// $Copyright: Copyright (C) 2022 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
// NOTES:
|
||||
// 1. In addition to this memory linker command file, add the header linker
|
||||
// command file directly to the project. The header linker command file is
|
||||
// required to link the peripheral structures to the proper locations within
|
||||
// the memory map.
|
||||
//
|
||||
// The header linker files are found in
|
||||
// controlSUITE\device_support\f2837x\F2837x_headers\cmd
|
||||
//
|
||||
// For BIOS applications add: F2837x_Headers_BIOS_cpuX.cmd
|
||||
// For nonBIOS applications add: F2837x_Headers_nonBIOS_cpuX.cmd
|
||||
//
|
||||
// 2. On reset all RAMGSx blocks are under the mastership of CPU1. The user
|
||||
// must configure the appropriate control registers to transfer mastership
|
||||
// of a RAMGSx block over to CPU2
|
||||
//
|
||||
// 3. Memory blocks on F2837x are uniform (ie same physical memory) in both
|
||||
// PAGE 0 and PAGE 1. That is the same memory region should not be defined
|
||||
// for both PAGE 0 and PAGE 1. Doing so will result in corruption of program
|
||||
// and/or data.
|
||||
//
|
||||
// Contiguous SARAM memory blocks can be combined if required to create a
|
||||
// larger memory block.
|
||||
//
|
||||
//#############################################################################
|
||||
|
||||
// The user must define CLA_C in the project linker settings if using the
|
||||
// CLA C compiler
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
--define=CLA_C=1
|
||||
|
||||
// Set this variable to 1 to use the CLA FFT Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library is used in the project
|
||||
#if defined(DATAROM)
|
||||
--define=CLA_FFT_TABLES_IN_ROM=1
|
||||
#else
|
||||
--define=CLA_FFT_TABLES_IN_ROM=0
|
||||
#endif
|
||||
|
||||
#if CLA_C
|
||||
// Define a size for the CLA scratchpad area that will be used
|
||||
// by the CLA compiler for local symbols and temps
|
||||
// Also force references to the special symbols that mark the
|
||||
// scratchpad are.
|
||||
CLA_SCRATCHPAD_SIZE = 0x100;
|
||||
--undef_sym=__cla_scratchpad_end
|
||||
--undef_sym=__cla_scratchpad_start
|
||||
#endif //CLA_C
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
/* BEGIN is used for the "boot to SARAM" bootloader mode */
|
||||
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMD0 : origin = 0x00B000, length = 0x000800
|
||||
RAMD1 : origin = 0x00B800, length = 0x000800
|
||||
|
||||
RAMLS0_1 : origin = 0x008000, length = 0x001000
|
||||
|
||||
RAMGS0_2 : origin = 0x00C000, length = 0x003000
|
||||
|
||||
RAMGS8_9 : origin = 0x014000, length = 0x002000
|
||||
// RAMGS9 : origin = 0x015000, length = 0x001000
|
||||
RAMGS10 : origin = 0x016000, length = 0x001000
|
||||
RAMGS11 : origin = 0x017000, length = 0x001000
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
|
||||
IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */
|
||||
IQTABLES2 : origin = 0x3FEB50, length = 0x00008C
|
||||
IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA
|
||||
|
||||
FLASHN : origin = 0x80000, length = 0x002000
|
||||
FLASHM : origin = 0x82000, length = 0x002000
|
||||
FLASHL : origin = 0x84000, length = 0x002000
|
||||
FLASHK : origin = 0x86000, length = 0x002000
|
||||
FLASHJ : origin = 0x88000, length = 0x008000
|
||||
FLASHI : origin = 0x90000, length = 0x008000
|
||||
FLASHH : origin = 0x98000, length = 0x008000
|
||||
FLASHG : origin = 0xA0000, length = 0x008000
|
||||
FLASHF : origin = 0xA8000, length = 0x008000
|
||||
FLASHE : origin = 0xB0000, length = 0x008000
|
||||
FLASHD : origin = 0xB8000, length = 0x002000
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM0 : origin = 0x000100, length = 0x000300
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
// NOTE: RAML2_3 logical section extends into physical L4
|
||||
// but since L2->L5 are CLA data RAM this is OK
|
||||
RAMLS2_3 : origin = 0x009000, length = 0x001044
|
||||
RAMLS4_5 : origin = 0x00A044, length = 0x001000
|
||||
|
||||
RAMGS3_4 : origin = 0x00F000, length = 0x002000
|
||||
RAMGS5_6 : origin = 0x011000, length = 0x002000
|
||||
RAMGS7 : origin = 0x013000, length = 0x001000
|
||||
|
||||
RAMGS12 : origin = 0x018000, length = 0x001000
|
||||
RAMGS13 : origin = 0x019000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01B000, length = 0x001000
|
||||
|
||||
FLASHC : origin = 0xBA000, length = 0x002000
|
||||
FLASHB : origin = 0xBC000, length = 0x002000
|
||||
|
||||
}
|
||||
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
.TI.ramfunc : {} > RAMD0 | RAMD1 |RAMGS0_2 PAGE = 0
|
||||
#else
|
||||
ramfuncs : > RAMD0 | RAMD1 |RAMGS0_2 PAGE = 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
#if defined(RAM)
|
||||
ramfuncs : > RAMD0, PAGE = 0
|
||||
.text :>> RAMD0 | RAMD1 |RAMGS0_2 PAGE = 0
|
||||
.cinit : > RAMGS8_9, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0_2, PAGE = 0
|
||||
.switch : > RAMGS0_2, PAGE = 0
|
||||
.econst : > RAMGS3_4, PAGE = 1
|
||||
#if !(CLA_FFT_TABLES_IN_ROM)
|
||||
CLA1fftTables : > RAMLS4_5, PAGE = 1
|
||||
#endif //CLA_FFT_TABLES_IN_ROM
|
||||
Cla1Prog : > RAMLS0_1, PAGE = 0
|
||||
Cla1Prog:cla_dsp_fft : > RAMLS0_1, HIGH PAGE = 0
|
||||
#elif defined(_FLASH)
|
||||
#if defined(__TI_EABI__)
|
||||
ramfuncs : LOAD = FLASHD,
|
||||
RUN = RAMD0,
|
||||
RUN_START(RamfuncsRunStart),
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
#else
|
||||
ramfuncs : LOAD = FLASHD,
|
||||
RUN = RAMD0,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
#endif
|
||||
|
||||
.text :>> FLASHN | FLASHM, PAGE = 0
|
||||
|
||||
.cinit : > FLASHL, PAGE = 0
|
||||
.pinit : > FLASHL, PAGE = 0
|
||||
.switch : > FLASHL, PAGE = 0
|
||||
.econst : > FLASHC, PAGE = 1
|
||||
#if !(CLA_FFT_TABLES_IN_ROM)
|
||||
|
||||
#if defined(__TI_EABI__)
|
||||
CLA1fftTables : LOAD = FLASHB,
|
||||
RUN = RAMLS4_5,
|
||||
RUN_START(CLA1fftTablesRunStart),
|
||||
LOAD_START(CLA1fftTablesLoadStart),
|
||||
LOAD_SIZE(CLA1fftTablesLoadSize),
|
||||
PAGE = 1
|
||||
#else
|
||||
CLA1fftTables : LOAD = FLASHB,
|
||||
RUN = RAMLS4_5,
|
||||
RUN_START(_CLA1fftTablesRunStart),
|
||||
LOAD_START(_CLA1fftTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1fftTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
#endif //CLA_FFT_TABLES_IN_ROM
|
||||
|
||||
#if defined(__TI_EABI__)
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = RAMLS0_1,
|
||||
RUN_START(Cla1ProgRunStart),
|
||||
LOAD_START(Cla1ProgLoadStart),
|
||||
LOAD_SIZE(Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
#else
|
||||
Cla1Prog : LOAD = FLASHD,
|
||||
RUN = RAMLS0_1,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif //RAM
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
#ifdef CLA_C
|
||||
/* CLA C compiler sections */
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
// CLAscratch is the legacy code model scratch pad. use
|
||||
// .scratchpad in the new model
|
||||
CLAscratch :
|
||||
{ *.obj(CLAscratch)
|
||||
. += CLA_SCRATCHPAD_SIZE;
|
||||
*.obj(CLAscratch_end) } > RAMLS4_5, PAGE = 1
|
||||
.scratchpad : > RAMLS4_5, PAGE = 1
|
||||
.bss_cla : > RAMLS4_5, PAGE = 1
|
||||
.const_cla : > RAMLS4_5, PAGE = 1
|
||||
#else
|
||||
.bss_cla : > RAMLS4_5, PAGE = 1
|
||||
#endif //CLA_C
|
||||
|
||||
/* Test specific sections */
|
||||
IOBuffer : > RAMLS2_3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS7, PAGE = 1
|
||||
.sysmem : > RAMGS7, PAGE = 1
|
||||
|
||||
.stack : > RAMM0, PAGE = 1 /* Needs to be in lower 64K memory */
|
||||
.ebss : > RAMGS5_6, PAGE = 1
|
||||
.esysmem : > RAMGS7, PAGE = 1
|
||||
}
|
||||
|
||||
//#############################################################################
|
||||
// End of file.
|
||||
//#############################################################################
|
||||
@@ -0,0 +1,210 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f2838x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f2838x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f2838x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 :
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x000000, length = 0x000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x080000, length = 0x000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x0001B0, length = 0x000250
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMD0 : origin = 0x00C000, length = 0x000800
|
||||
RAMD1 : origin = 0x00C800, length = 0x000800
|
||||
|
||||
RAMLS0_1 : origin = 0x008000, length = 0x001000
|
||||
|
||||
RAMGS0_1 : origin = 0x00D000, length = 0x002000
|
||||
|
||||
RAMGS8 : origin = 0x015000, length = 0x001000
|
||||
RAMGS9 : origin = 0x016000, length = 0x001000
|
||||
RAMGS10 : origin = 0x017000, length = 0x001000
|
||||
RAMGS11 : origin = 0x018000, length = 0x001000
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
|
||||
IQTABLES : origin = 0x3FE000, length = 0x000B50
|
||||
IQTABLES2 : origin = 0x3FEB50, length = 0x00008C
|
||||
IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA
|
||||
|
||||
FLASH0 : origin = 0x080002, length = 0x001FFE
|
||||
FLASH1 : origin = 0x082000, length = 0x002000
|
||||
FLASH2 : origin = 0x084000, length = 0x002000
|
||||
FLASH3 : origin = 0x086000, length = 0x002000
|
||||
FLASH4 : origin = 0x088000, length = 0x008000
|
||||
FLASH5 : origin = 0x090000, length = 0x008000
|
||||
FLASH6 : origin = 0x098000, length = 0x008000
|
||||
FLASH7 : origin = 0x0A0000, length = 0x008000
|
||||
FLASH8 : origin = 0x0A8000, length = 0x008000
|
||||
FLASH9 : origin = 0x0B0000, length = 0x008000
|
||||
FLASH10 : origin = 0x0B8000, length = 0x002000
|
||||
|
||||
|
||||
PAGE 1 :
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0001AE
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
|
||||
RAMLS2_3 : origin = 0x009000, length = 0x001000
|
||||
RAMLS4_5 : origin = 0x00A000, length = 0x001000
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
|
||||
RAMGS2 : origin = 0x00F000, length = 0x001000
|
||||
RAMGS3_4 : origin = 0x010000, length = 0x002000
|
||||
RAMGS5_6 : origin = 0x012000, length = 0x002000
|
||||
RAMGS7 : origin = 0x014000, length = 0x001000
|
||||
|
||||
RAMGS12 : origin = 0x019000, length = 0x001000
|
||||
RAMGS13 : origin = 0x01A000, length = 0x001000
|
||||
RAMGS14 : origin = 0x01B000, length = 0x001000
|
||||
RAMGS15 : origin = 0x01C000, length = 0x001000
|
||||
|
||||
CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800
|
||||
CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800
|
||||
CPUTOCMRAM : origin = 0x039000, length = 0x000800
|
||||
CMTOCPURAM : origin = 0x038000, length = 0x000800
|
||||
|
||||
FLASH11 : origin = 0x0BA000, length = 0x002000
|
||||
FLASH12 : origin = 0x0BC000, length = 0x002000
|
||||
FLASH13 : origin = 0x0BE000, length = 0x002000
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN, PAGE = 0
|
||||
|
||||
.bss : > RAMGS0_1, PAGE = 0
|
||||
.const : > RAMGS0_1, PAGE = 0
|
||||
.data : > RAMGS0_1, PAGE = 0
|
||||
.init_array : > RAMGS0_1, PAGE = 0
|
||||
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMM0, PAGE = 0
|
||||
.text :>> RAMM1 | RAMD0 | RAMD1, PAGE = 0
|
||||
.cinit : > RAMGS0_1, PAGE = 0
|
||||
|
||||
.pinit : > RAMGS0_1, PAGE = 0
|
||||
.switch : > RAMGS0_1, PAGE = 0
|
||||
.econst : > RAMGS3_4, PAGE = 1
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0_1, PAGE = 0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
.TI.ramfunc : LOAD = FLASH3,
|
||||
RUN = RAMGS0_1,
|
||||
RUN_START(RamfuncsRunStart),
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
.text : > FLASH0, PAGE = 0
|
||||
.cinit : > FLASH1, PAGE = 0
|
||||
|
||||
.pinit : > FLASH1, PAGE = 0
|
||||
.switch : > FLASH1, PAGE = 0
|
||||
.econst : > FLASH2, PAGE = 0
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
CLA1mathTables : LOAD = FLASH11,
|
||||
RUN = RAMLS4_5,
|
||||
RUN_START(CLA1mathTablesRunStart),
|
||||
LOAD_START(CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(CLA1mathTablesLoadSize),
|
||||
PAGE = 1
|
||||
#endif
|
||||
|
||||
Cla1Prog : LOAD = FLASH3,
|
||||
RUN = RAMLS0_1,
|
||||
RUN_START(Cla1ProgRunStart),
|
||||
LOAD_START(Cla1ProgLoadStart),
|
||||
LOAD_SIZE(Cla1ProgLoadSize),
|
||||
PAGE = 0
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
|
||||
|
||||
MSGRAM_CPU1_TO_CPU2 : > CPU1TOCPU2RAM, PAGE = 1, type=NOINIT
|
||||
MSGRAM_CPU2_TO_CPU1 : > CPU2TOCPU1RAM, PAGE = 1, type=NOINIT
|
||||
MSGRAM_CPU_TO_CM : > CPUTOCMRAM, PAGE = 1, type=NOINIT
|
||||
MSGRAM_CM_TO_CPU : > CMTOCPURAM, PAGE = 1, type=NOINIT
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS4_5, PAGE = 1
|
||||
.bss_cla : > RAMLS4_5, PAGE = 1
|
||||
.const_cla : > RAMLS4_5, PAGE = 1
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS2_3, PAGE = 1
|
||||
|
||||
.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS7, PAGE = 1
|
||||
.sysmem : > RAMGS7, PAGE = 1
|
||||
|
||||
.stack : > RAMGS2, PAGE = 1 /* Needs to be in lower 64K memory */
|
||||
.ebss : > RAMGS5_6, PAGE = 1
|
||||
.esysmem : > RAMGS7, PAGE = 1
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,211 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f28p55x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f28003x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f28003x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x00000000, length = 0x00000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x00080000, length = 0x00000002
|
||||
#endif
|
||||
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x000126 /* Part of M0, BOOT rom will use this for stack */
|
||||
RAMM0 : origin = 0x000128, length = 0x0002D8
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
RAMLS8 : origin = 0x014000, length = 0x002000 // When configured as CLA program use the address 0x4000
|
||||
RAMLS9 : origin = 0x016000, length = 0x002000 // When configured as CLA program use the address 0x6000
|
||||
|
||||
// RAMLS8_CLA : origin = 0x004000, length = 0x002000 // Use only if configured as CLA program memory
|
||||
// RAMLS9_CLA : origin = 0x006000, length = 0x002000 // Use only if configured as CLA program memory
|
||||
|
||||
RAMGS0 : origin = 0x00C000, length = 0x002000
|
||||
RAMGS1 : origin = 0x00E000, length = 0x002000
|
||||
RAMGS2 : origin = 0x010000, length = 0x002000
|
||||
RAMGS3 : origin = 0x012000, length = 0x002000
|
||||
|
||||
/* Flash Banks (128 sectors each) */
|
||||
FLASH_BANK0 : origin = 0x080002, length = 0x1fffd
|
||||
FLASH_BANK1 : origin = 0x0A0000, length = 0x20000
|
||||
FLASH_BANK2 : origin = 0x0C0000, length = 0x20000
|
||||
FLASH_BANK3 : origin = 0x0E0000, length = 0x20000
|
||||
FLASH_BANK4 : origin = 0x100000, length = 0x20000
|
||||
|
||||
|
||||
CLATOCPURAM : origin = 0x001480, length = 0x000080
|
||||
CPUTOCLARAM : origin = 0x001500, length = 0x000080
|
||||
CLATODMARAM : origin = 0x001680, length = 0x000080
|
||||
DMATOCLARAM : origin = 0x001700, length = 0x000080
|
||||
|
||||
RESET : origin = 0x3FFFC0, length = 0x000002
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN
|
||||
|
||||
.bss : > RAMGS0
|
||||
.const : > RAMGS0
|
||||
.data : > RAMGS0
|
||||
.init_array : > RAMGS0
|
||||
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMGS0
|
||||
.text : > RAMGS1
|
||||
.cinit : > RAMGS0
|
||||
|
||||
.pinit : > RAMGS0
|
||||
.switch : > RAMGS0
|
||||
|
||||
.econst : > RAMGS3
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
|
||||
#if defined(__TI_EABI__)
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(RamfuncsRunStart),
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize)
|
||||
|
||||
|
||||
#else
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
.text : >> FLASH_BANK0
|
||||
.cinit : > FLASH_BANK0
|
||||
|
||||
.pinit : > FLASH_BANK0
|
||||
.switch : > FLASH_BANK0
|
||||
|
||||
.econst : > FLASH_BANK0
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
#if defined(__TI_EABI__)
|
||||
CLA1mathTables : LOAD = FLASH_BANK0,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(CLA1mathTablesRunStart),
|
||||
LOAD_START(CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(CLA1mathTablesLoadSize)
|
||||
|
||||
#else
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#if defined(__TI_EABI__)
|
||||
Cla1Prog : LOAD = FLASH_BANK1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(Cla1ProgRunStart),
|
||||
LOAD_START(Cla1ProgLoadStart),
|
||||
LOAD_SIZE(Cla1ProgLoadSize)
|
||||
|
||||
#else
|
||||
Cla1Prog : LOAD = FLASH_BANK1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLATOCPURAM
|
||||
CpuToCla1MsgRAM : > CPUTOCLARAM
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS5
|
||||
.bss_cla : > RAMLS5
|
||||
.const_cla : > RAMLS5
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS3
|
||||
|
||||
.reset : > RESET, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS3
|
||||
.sysmem : > RAMGS3
|
||||
|
||||
.stack : > RAMM1 /* Needs to be in lower 64K memory */
|
||||
|
||||
.ebss : > RAMGS3
|
||||
.esysmem : > RAMGS3
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
@@ -0,0 +1,244 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: f28p65x_cla_c_lnk.cmd
|
||||
//
|
||||
// TITLE: Linker Command File for CLA Math library examples that run
|
||||
// on the f28003x platform
|
||||
//
|
||||
// This file includes all RAM and FLASH blocks present on the
|
||||
// f28003x and depending on the active build configuration
|
||||
// (RAM or FLASH) the appropriate sections will either be loaded
|
||||
// into RAM or FLASH blocks
|
||||
//
|
||||
//###########################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//###########################################################################
|
||||
|
||||
//
|
||||
// CLA_C is defined to 1 in the project properties
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
//
|
||||
//--define=CLA_C=1
|
||||
//
|
||||
// CLA_MATH_TABLES_IN_ROM is defined in the project properties according to
|
||||
// build configuration selected
|
||||
// Project Properties -> C2000 Linker -> Advanced Options -> Command File
|
||||
// Preprocessing -> --define
|
||||
// Set this variable to 1 to use the CLA Math Tables in the CLA Data ROM
|
||||
// If set to 0, make sure the right CLA Math library (one without the _datarom
|
||||
// suffix) is used in the project
|
||||
//
|
||||
//--define=CLA_MATH_TABLES_IN_ROM=1
|
||||
//
|
||||
|
||||
MEMORY
|
||||
{
|
||||
|
||||
#if defined(RAM)
|
||||
BEGIN : origin = 0x00000000, length = 0x00000002
|
||||
#elif defined(_FLASH)
|
||||
BEGIN : origin = 0x00080000, length = 0x00000002
|
||||
#endif
|
||||
|
||||
RAMM0 : origin = 0x0001B1, length = 0x00024F
|
||||
RAMM1 : origin = 0x000400, length = 0x000400
|
||||
|
||||
RAMLS0 : origin = 0x008000, length = 0x000800
|
||||
RAMLS1 : origin = 0x008800, length = 0x000800
|
||||
RAMLS2 : origin = 0x009000, length = 0x000800
|
||||
RAMLS3 : origin = 0x009800, length = 0x000800
|
||||
RAMLS4 : origin = 0x00A000, length = 0x000800
|
||||
RAMLS5 : origin = 0x00A800, length = 0x000800
|
||||
RAMLS6 : origin = 0x00B000, length = 0x000800
|
||||
RAMLS7 : origin = 0x00B800, length = 0x000800
|
||||
RAMLS8 : origin = 0x022000, length = 0x002000 // When configured as CLA program use the address 0x4000
|
||||
RAMLS9 : origin = 0x024000, length = 0x002000 // When configured as CLA program use the address 0x6000
|
||||
|
||||
RAMGS0 : origin = 0x010000, length = 0x002000
|
||||
RAMGS1 : origin = 0x012000, length = 0x002000
|
||||
RAMGS2 : origin = 0x014000, length = 0x002000
|
||||
RAMGS3 : origin = 0x016000, length = 0x002000
|
||||
RAMGS4 : origin = 0x018000, length = 0x002000
|
||||
|
||||
RESET : origin = 0x003FFFC0, length = 0x00000002
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 1 */
|
||||
FLASH_BANK1_SEC0 : origin = 0x090000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC1 : origin = 0x091000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC2 : origin = 0x092000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC3 : origin = 0x093000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC4 : origin = 0x094000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC5 : origin = 0x095000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC6 : origin = 0x096000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC7 : origin = 0x097000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC8 : origin = 0x098000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC9 : origin = 0x099000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC10 : origin = 0x09A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC11 : origin = 0x09B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC12 : origin = 0x09C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC13 : origin = 0x09D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC14 : origin = 0x09E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK1_SEC15 : origin = 0x09F000, length = 0x001000 /* on-chip Flash */
|
||||
|
||||
BOOT_RSVD : origin = 0x000002, length = 0x0001AF /* Part of M0, BOOT rom will use this for stack */
|
||||
|
||||
CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
|
||||
CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
|
||||
CPU1TOCPU2RAM : origin = 0x03A000, length = 0x000800
|
||||
CPU2TOCPU1RAM : origin = 0x03B000, length = 0x000800
|
||||
|
||||
|
||||
|
||||
/* Flash sectors */
|
||||
/* BANK 0 */
|
||||
FLASH_BANK0_SEC0 : origin = 0x080002, length = 0x000FFE /* on-chip Flash */
|
||||
FLASH_BANK0_SEC1 : origin = 0x081000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC2 : origin = 0x082000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC3 : origin = 0x083000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC4 : origin = 0x084000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC5 : origin = 0x085000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC6 : origin = 0x086000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC7 : origin = 0x087000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC8 : origin = 0x088000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC9 : origin = 0x089000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC10 : origin = 0x08A000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC11 : origin = 0x08B000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC12 : origin = 0x08C000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC13 : origin = 0x08D000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC14 : origin = 0x08E000, length = 0x001000 /* on-chip Flash */
|
||||
FLASH_BANK0_SEC15 : origin = 0x08F000, length = 0x001000 /* on-chip Flash */
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
codestart : > BEGIN
|
||||
|
||||
.bss : > RAMGS0
|
||||
.const : > RAMGS0
|
||||
.data : > RAMGS0
|
||||
.init_array : > RAMGS0
|
||||
|
||||
#if defined(RAM)
|
||||
.TI.ramfunc : > RAMGS0
|
||||
.text : > RAMGS1
|
||||
.cinit : > RAMGS0
|
||||
|
||||
.pinit : > RAMGS0
|
||||
.switch : > RAMGS0
|
||||
|
||||
.econst : > RAMGS3
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
CLA1mathTables : > RAMLS4
|
||||
#endif
|
||||
|
||||
Cla1Prog : > RAMLS0
|
||||
|
||||
|
||||
#elif defined(_FLASH)
|
||||
|
||||
#if defined(__TI_EABI__)
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(RamfuncsRunStart),
|
||||
LOAD_START(RamfuncsLoadStart),
|
||||
LOAD_SIZE(RamfuncsLoadSize)
|
||||
|
||||
|
||||
#else
|
||||
.TI.ramfunc : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMGS2,
|
||||
RUN_START(_RamfuncsRunStart),
|
||||
LOAD_START(_RamfuncsLoadStart),
|
||||
LOAD_SIZE(_RamfuncsLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
.text : >> FLASH_BANK0_SEC3 | FLASH_BANK0_SEC4
|
||||
.cinit : > FLASH_BANK0_SEC5
|
||||
|
||||
.pinit : > FLASH_BANK0_SEC0
|
||||
.switch : > FLASH_BANK0_SEC0
|
||||
|
||||
.econst : > FLASH_BANK0_SEC2
|
||||
|
||||
#if !(CLA_MATH_TABLES_IN_ROM)
|
||||
//
|
||||
//Load tables to Flash and copy over to RAM
|
||||
//
|
||||
#if defined(__TI_EABI__)
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(CLA1mathTablesRunStart),
|
||||
LOAD_START(CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(CLA1mathTablesLoadSize)
|
||||
|
||||
#else
|
||||
CLA1mathTables : LOAD = FLASH_BANK0_SEC1,
|
||||
RUN = RAMLS4,
|
||||
RUN_START(_CLA1mathTablesRunStart),
|
||||
LOAD_START(_CLA1mathTablesLoadStart),
|
||||
LOAD_SIZE(_CLA1mathTablesLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#if defined(__TI_EABI__)
|
||||
Cla1Prog : LOAD = FLASH_BANK1_SEC1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(Cla1ProgRunStart),
|
||||
LOAD_START(Cla1ProgLoadStart),
|
||||
LOAD_SIZE(Cla1ProgLoadSize)
|
||||
|
||||
#else
|
||||
Cla1Prog : LOAD = FLASH_BANK1_SEC1,
|
||||
RUN = RAMLS0,
|
||||
RUN_START(_Cla1ProgRunStart),
|
||||
LOAD_START(_Cla1ProgLoadStart),
|
||||
LOAD_SIZE(_Cla1ProgLoadSize)
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error Add either "RAM" or "_FLASH" to C2000 Linker -> Advanced Options -> Command File Preprocessing -> --define
|
||||
#endif
|
||||
|
||||
Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW
|
||||
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH
|
||||
MSGRAM_CPU1_TO_CPU2 > CPU1TOCPU2RAM, type=NOINIT
|
||||
MSGRAM_CPU2_TO_CPU1 > CPU2TOCPU1RAM, type=NOINIT
|
||||
|
||||
#ifdef CLA_C
|
||||
//
|
||||
// CLA C compiler sections
|
||||
//
|
||||
// Must be allocated to memory the CLA has write access to
|
||||
//
|
||||
.scratchpad : > RAMLS5
|
||||
.bss_cla : > RAMLS5
|
||||
.const_cla : > RAMLS5
|
||||
#endif
|
||||
|
||||
IOBuffer : > RAMLS3
|
||||
|
||||
.reset : > RESET, TYPE = DSECT /* not used, */
|
||||
|
||||
.cio : > RAMGS3
|
||||
.sysmem : > RAMGS3
|
||||
|
||||
.stack : > RAMM1 /* Needs to be in lower 64K memory */
|
||||
|
||||
.ebss : > RAMGS3
|
||||
.esysmem : > RAMGS3
|
||||
}
|
||||
|
||||
/*
|
||||
//=============================================================================
|
||||
// End of file.
|
||||
//=============================================================================
|
||||
*/
|
||||
Reference in new issue
Block a user