Exercise 2a
Exercise 2a
Looking at the following block diagram, and create a linker command file.
Exercise 2a
Exercise 2a
F2812
F2812
M0SARAM
M0SARAM
(0x400)
(0x400)
M1SARAM
M1SARAM
(0x400)
(0x400)
L0SARAM
L0SARAM
(0x1000)
(0x1000)
L1SARAM
L1SARAM
(0x1000)
(0x1000)
0x00 0000
0x00 0000
0x00 0400
0x00 0400
0x00 8000
0x00 8000
0x00 9000
0x00 9000
FLASH
FLASH
(0x20000)
(0x20000)
0x3D 8000
0x3D 8000
H0SARAM
H0SARAM
(0x2000)
(0x2000)
0x3F 8000
0x3F 8000
Create the linker command file for the given memory
Create the linker command file for the given memory
map by filling in the blanks on the following slide
map by filling in the blanks on the following slide
Fill in the blanks:
Exercise 2a
Exercise 2a
-
-
Command File
Command File
Memory
Memory
{
{
PAGE__: /* Program Space */
PAGE__: /* Program Space */
_____: org = ____
_____: org = ____
___,
___,
len
len
= ___
= ___
___
___
______: /* Data Space */
______: /* Data Space */
_______: org = ___
_______: org = ___
____,
____,
len
len
= _____
= _____
_______:
_______:
org = ____
org = ____
___,
___,
len
len
= _____
= _____
_______:
_______:
org = ___
org = ___
____,
____,
len
len
= __
= __
___
___
_______: org = ___
_______: org = ___
____,
____,
len
len
= _
= _
____
____
_______: org = ___
_______: org = ___
____,
____,
len
len
= _
= _
____
____
}
}
SECTIONS
SECTIONS
{
{
.text: > FLASH PAGE 0
.text: > FLASH PAGE 0
.
.
ebss
ebss
: > M1SARAM PAGE 1
: > M1SARAM PAGE 1
.
.
cinit
cinit
: > FLASH PAGE 0
: > FLASH PAGE 0
.stack: > M0SARAM PAGE 1
.stack: > M0SARAM PAGE 1
}
}
C28x - Programming Development Environment 2 - 15