Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
Post a new Thread
Heap Allocation On 5510DSK - Abhishek Dixit - Nov 4 2:37:00 2005
Dear All,
For implementing video decoder I have changed target board to
TMS320VC5510DSK from TMS320C6416DSK. But I am having problem in
allocating heap size. The dynamic memory allocation during code
execution fails at very early stage even though much memory is still
left unused. May be I am unable to allocate memory for heap. What's the
solution for this problem? The contents of cmd file and linker options
and a portion of map file are given below.
Thanks
CMD File:
MEMORY
{
ISRAM (RWIX): origin = 00FF0h, length = 02F000h
BSSRAM (RWIX): origin = 030000h, length = 010000h
BSSRAM1 (RWIX): origin = 040000h, length = 020000h
RAM (RWIX): origin = 060000h, length = 02000h
SDRAM (RWIX): origin = 062000h, length = 010000h
SYSRAM (RWIX): origin = 072000h, length = 0d000h
SYSRAM1 (RWIX): origin = 080000h, length = 0300000h
}
SECTIONS
{
.text : > ISRAM
.bss : { *(.bss) }>> BSSRAM | BSSRAM1
.switch : > RAM
.cinit : > RAM
.vectors : > RAM
.data : > RAM
.sysmem : { *(.sysmem) } >> SYSRAM | SYSRAM1
.stack : > RAM
.sysstack: > RAM
.cio : > RAM
.const : > SDRAM
}
LINKER OPTIONS:
-c -e_c_int00 -heap0x30d000 -m".\Debug\hello.map" -o".\Debug\hello.out"
-x -l"rts55x.lib"
A section of map file is as below:
MEMORY CONFIGURATION
name origin length used attr
fill
(bytes) (bytes) (bytes)
---------------------- -------- --------- -------- ----
------
ISRAM 00000ff0 0002f000 0002b2e8 RWIX
BSSRAM 00030000 00010000 00004536 RWIX
BSSRAM1 00040000 00020000 00018cbc RWIX
RAM 00060000 00002000 000015be RWIX
SDRAM 00062000 00010000 0000d730 RWIX
SYSRAM 00072000 0000d000 00000000 RWIX
SYSRAM1 00080000 00300000 00000000 RWIX

(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )