Lab 2a: Linker Command File
Lab 2a: Linker Command File
Objective
Create a linker command file and link the C program file (LAB2.C) into the system described
below.
Lab 2a: Linker Command File
Lab 2a: Linker Command File
System Description:
System Description:
•
•
TMS320F2812
TMS320F2812
•
•
All internal RAM blocks allocated
All internal RAM blocks allocated
Placement of Sections:
Placement of Sections:
•
•
.text into RAM Block H0SARAM on PAGE 0 (code space)
.text into RAM Block H0SARAM on PAGE 0 (code space)
•
•
.
.
cinit
cinit
into RAM Block H0SARAM on PAGE 0 (code space)
into RAM Block H0SARAM on PAGE 0 (code space)
•
•
.
.
ebss
ebss
into RAM Block M1SARAM on PAGE 1 (data space)
into RAM Block M1SARAM on PAGE 1 (data space)
•
•
.stack into RAM Block M0SARAM on PAGE 1 (data space)
.stack into RAM Block M0SARAM on PAGE 1 (data space)
F2812
F2812
Memory
Memory
on-chip
memory
on
on
-
-
chip
chip
memory
memory
0x00 0000
0x00 0000
0x00 0400
0x00 0400
0x00 8000
0x00 8000
0x00 9000
0x00 9000
0x3F 8000
0x3F 8000
H0SARAM
(0x2000)
H0SARAM
H0SARAM
(0x2000)
(0x2000)
M1SARAM
(0x400)
M1SARAM
M1SARAM
(0x400)
(0x400)
L1SARAM
(0x1000)
L1SARAM
L1SARAM
(0x1000)
(0x1000)
L0SARAM
(0x1000)
L0SARAM
L0SARAM
(0x1000)
(0x1000)
M0SARAM
(0x400)
M0SARAM
M0SARAM
(0x400)
(0x400)
System Description
• TMS320F2812
• All internal RAM blocks allocated
Placement of Sections:
• .text into RAM Block H0SARAM on PAGE 0 (code space)
• .cinit into RAM Block H0SARAM on PAGE 0 (code space)
• .ebss into RAM Block M1SARAM on PAGE 1 (data space)
• .stack into RAM Block M0SARAM on PAGE 1 (data space)
Procedure
Create a New Project
1. Double click on the Code Composer Studio icon on the desktop. Maximize Code
Composer Studio to fill your screen. The menu bar (at the top) lists File ... Help. Note
the horizontal tool bar below the menu bar and the vertical tool bar on the left-hand side.
C28x - Programming Development Environment 2 - 17