Creating a Linker Command File
Placing Sections in Memory
Placing Sections in Memory
.
.
ebss
ebss
.
.
cinit
cinit
.text
.text
Memory
Memory
M0SARAM
M0SARAM
(0x400)
(0x400)
0x00 0000
0x00 0000
0x3D 8000
0x3D 8000
0x00 0400
0x00 0400
M1SARAM
M1SARAM
(0x400)
(0x400)
FLASH
FLASH
(0x20000)
(0x20000)
Sections
Sections
.stack
.stack
Linking code is a three step process:
1. Defining the various regions of memory (on-chip SARAM vs. FLASH vs. External Memory).
2. Describing what sections go into which memory regions
3. Running the linker with “build” or “rebuild”
C28x - Programming Development Environment 2 - 11