Sign in

username:

password:



Not a member?

Search c3x



Search tips

Subscribe to c3x



c3x by Keywords

Boot | C31 | TMS320VC33 | VC33

Sponsor

DM6467T DaVinci video processor enables H.264 1080p decoding up to 60 fps/eight D1 channel encoding.
Details Here!

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C3x | Cannot allocate .bss, .const and .sysmem

Technical discussions about the TI C3x DSPs (including the C31, C32 and C33 DSPs).

  

Post a new Thread

Cannot allocate .bss, .const and .sysmem - lamk...@yahoo.com - Apr 7 12:47:50 2009

Good day,

I've a problem in linking the program and need for help. I am using TI TMS320C31
board. I wrote a program in C, named dspfinal.c. I compiled the program and it
shows not error. However, when I link the program into .cmd, it shows error.

These are the errors:
>>cannot allocate .text in RAM0 < page 0 >
>>can't allocate .bss, size 000005d3 < page 0>
>>can't allocate .const, size 00000309 < page 0>
>>can't allocate .sysmem,size 00000400 < page 0>
>>errors in input - dspfinal.out not built

I was using the command "lnk30 dspfinal.cmd" in command prompt. Below
is my dspfinal.cmd file.

-c /*using C convention */
-stack 0x100 /*256 words stack */
matrixc.obj /*object file */
-O matrixc.out /*executable output file */
-l rts30.lib /*run-time library support*/
MEMORY
{
RAMS: org=0x809800, len=0x2 /*boot stack */
RAM0: org=0x809802, len=0x3FE /*internal block 0*/
RAM1: org=0x809C00, len=0x3C0 /*internal block 1*/
}
SECTIONS
{
.text: {} > RAM0 /*code */
.cinit: {} > RAM0 /*initialization tables*/
.stack: {} > RAM1 /*system stack */
}

_____________________________________

______________________________
DSPRelated.com's 50,000th member announced! Details Here.



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

RE: Cannot allocate .bss, .const and .sysmem - Bill Finger - Apr 7 13:05:49 2009

Dear lamkhengeu,

There are some problems with your command file.  Firstly, you only seem
to have 0x3FE words in RAM0, yet you are placing your .text and .cinit
functions there, and .text doesn't fit.  (.text is your code, by the
way).

Also, your command file does not specify where .bss, .const, or .sysmem
sections are located.  (.sysmem is the heap section.  You should specify
its size in the command file.)

Take a look at the map file; it will give you a hint as to where things
are being placed.  I would say though, unless you have some external ram
in-circuit you're in trouble.

Regards,
Bill

> -----Original Message-----
> From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On 
> Behalf Of l...@yahoo.com
> Sent: Tuesday, April 07, 2009 12:23 PM
> To: c...@yahoogroups.com
> Subject: [c3x] Cannot allocate .bss, .const and .sysmem
> 
> Good day,
> 
> I've a problem in linking the program and need for help. I am 
> using TI TMS320C31 board. I wrote a program in C, named 
> dspfinal.c. I compiled the program and it shows not error. 
> However, when I link the program into .cmd, it shows error.
> 
> These are the errors:
> >>cannot allocate .text in RAM0 < page 0 >
> >>can't allocate .bss, size 000005d3 < page 0>
> >>can't allocate .const, size 00000309 < page 0>
> >>can't allocate .sysmem,size 00000400 < page 0>
> >>errors in input - dspfinal.out not built
> 
> I was using the command "lnk30 dspfinal.cmd" in command 
> prompt. Below is my dspfinal.cmd file.
> 
> -c /*using C convention */
> -stack 0x100 /*256 words stack */
> matrixc.obj /*object file */
> -O matrixc.out /*executable output file */
> -l rts30.lib /*run-time library support*/
> MEMORY
> {
> RAMS: org=0x809800, len=0x2 /*boot stack */
> RAM0: org=0x809802, len=0x3FE /*internal block 0*/
> RAM1: org=0x809C00, len=0x3C0 /*internal block 1*/
> }
> SECTIONS
> {
> .text: {} > RAM0 /*code */
> .cinit: {} > RAM0 /*initialization tables*/
> .stack: {} > RAM1 /*system stack */
> }

_____________________________________

______________________________
DSPRelated.com's 50,000th member announced! Details Here.



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