Creating a Linker Command File
Linker Command Files (
.cmd
)
The linker concatenates each section from all input files, allocating memory to each section based
on its length and location as specified by the MEMORY and SECTIONS commands in the linker
command file.
Linking
Linking
Linker
Linker
Link.
Link.
cmd
cmd
.map
.map
.
.
obj
obj
.out
.out
Memory description
How to place s/w into h/w
Memory description
Memory description
How to place s/w into h/w
How to place s/w into h/w
Memory-Map Description
Describe the memory configuration of your target system to the linker. Without this specification,
the linker might place code or data into memory that doesn’t exist.
The format is:
Name: origin = 0x????, length = 0x????
For example, if you placed a 2K EPROM starting at memory location zero, it would read:
MEMORY
{
EPROM: origin = 0x0000 , length = 0x0800
}
You define each memory segment using the above format. If you added a RAM and an ABT646
transceiver, it might look like:
MEMORY
{
EPROM: origin = 0x0000 , length = 0x0800
RAM: origin = 0x1000 , length = 0x02000
ABT646: origin = 0x8000 , length = 0x00001
}
2 - 12
C28x - Programming Development Environment
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 ...