MEM Module
Application Program Interface
2-213
A heap can potentially be sized to cross a 64K page boundary. See
the MEM_alloc topic for information about the effects of page
boundaries on heaps.
Tconf Name: heapSize
Type: Numeric
Example:
myMem.heapSize = 0x03f80;
❏
enter a user defined heap identifier
. If this property is set to true,
you can define your own identifier label for this heap.
Tconf Name: enableHeapLabel
Type: Bool
Example:
myMem.enableHeapLabel = false;
❏
heap identifier label
. If the property above is set to true, type a name
for this segment’s heap.
Tconf Name: heapLabel
Type: Extern
Example:
myMem.heapLabel =
prog.extern("seg_name", "asm");
❏
space
. Type of memory segment. This is set to code for memory
segments that store programs, and data for memory segments that
store program data.
Tconf Name: space
Type: EnumString
Options:
"code/data", "io"
Example:
myMem.space = "code/data";
The predefined memory segments in a configuration file, particularly
those for external memory, are dependent on the board template you
select. In general, Table 2-5 lists segments that can be defined for the
c5000:
Table 2-5.
Typical Memory Segments for C5000 Boards
Name
Memory Segment Type
USERREGS User
scratchpad
memory
BIOSREGS
Scratchpad memory reserved for use by
DSP/BIOS
VECT
Interrupt vector table
IDATA
Internal data RAM
IPROG
Internal program RAM
EDATA
External data memory
EPROG
External program memory