MEM Module
2-204
The MEM Manager property, Segment for malloc()/free(), is used to
implement the standard C malloc, free, and calloc functions. These
functions actually use the MEM functions (with segid = Segment for
malloc/free) to allocate and free memory.
Note:
The MEM module does not set or configure hardware registers
associated with a DSP’s memory subsystem. Such configuration is the
responsibility of the user and is typically handled by software loading
programs, or in the case of Code Composer Studio, the startup or
menu options. For example, to access external memory on a c6000
platform, the External Memory Interface (EMIF) registers must first be
set appropriately before any access. The earliest opportunity for EMIF
initialization within DSP/BIOS would be during the user initialization
hook (see
Global Settings
in the
API Reference Guide
).
MEM Manager
Properties
The DSP/BIOS Memory Section Manager allows you to specify the
memory segments required to locate the various code and data sections
of a DSP/BIOS application.
Note that settings you specify in the Visual Linker normally override
settings you specify in the configuration. See the Visual Linker help for
details on using the Visual Linker with DSP/BIOS.
The following global properties can be set for the MEM module in the
MEM Manager Properties dialog of the DSP/BIOS Configuration Tool or
in a Tconf script:
General tab
❏
Reuse Startup Code Space
. If this property is set to true, the startup
code section (.sysinit) can be reused after startup is complete.
Tconf Name: REUSECODESPACE
Type: Bool
Example:
bios.MEM.REUSECODESPACE = false;
❏
Argument Buffer Size
. The size of the .args section. The .args
section contains the argc, argv, and envp arguments to the program's
main() function. Code Composer loads arguments for the main()
function into the .args section. The .args section is parsed by the boot
file.
Tconf Name: ARGSSIZE
Type: Numeric
Example:
bios.MEM.ARGSSIZE = 0x0004;