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
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...