User`s guide
Libraries and Runtime Code
MSL for DSP56800E
328
Targeting MC56F83xx/DSP5685x Controllers
Allocating Stacks and Heaps for the
DSP56800E
Stationery linker command files (LCF) define heap, stack, and bss locations. LCFs are
specific to each target board. When you use M56800E stationery to create a new
project, CodeWarrior automatically adds the LCF to the new project.
See “ELF Linker and Command Language,”
for general LCF information. See each
specific target LCF in Stationery for specific LCF information.
See Table 11.2
for the variables defined in each Stationery LCF.
To change the locations of these default values, modify the linker command file in
your DSP56800E project.
NOTE
Ensure that the stack and heap memories reside in data memory.
Table 11.1 Host File Creation Location
fopen Filename Parameter Host Creation Location
filename with no path target project file folder
full path location of full path
Table 11.2 LCF Variables and Address
Variables Address
_stack_addr the start address of the stack
_heap_size the size of the heap
_heap_addr the start address of the heap
_heap_end the end address of the heap
_bss_start start address of memory reserved for uninitialized variables
_bss_end end address of bss