DSPRelated.com
Forums

evm6201 error: Cannot allocate .text!!!!

Started by pooriya_s October 4, 2002
Hi everybody,
I am using TMS320C6201 and trying to compile a big program on it,when
I want to build it all, in linker section it says:
"error: can not allocate .text" and "The output file was not built"

The way that I tought that could work was that: Go to the memory
section manager in configuration tools , Choose the Compiler section
and change the .text from to IPROM to SDRAM0. but then I had 30
errors: "relocation overflow accured at .... in .text"
I am using CCS 2.0
I really appreciate if anybody can help me!!!!!

pooriya



You probably still has some code in your internal memory like the interrupt
vectors.
When that needs to call into the code int the text section that you moved the
"length" of the jump excedes
what is allowed for the small memory model that you probably use. You can:

Move your interrupt vectors to the same memory as the text section and keep the
small memory model.
Or change to a memory model that allows the "longer" jumps (read up on -ml
compiler options).

Note that any external memory is orders of magnitude slower than the internal
memory, you should use the instruction cache.
Yes, it is really a pain when your program grows larger than the internal
memory....

/Regards, P Ligander pooriya_s wrote:

> Hi everybody,
> I am using TMS320C6201 and trying to compile a big program on it,when
> I want to build it all, in linker section it says:
> "error: can not allocate .text" and "The output file was not built"
>
> The way that I tought that could work was that: Go to the memory
> section manager in configuration tools , Choose the Compiler section
> and change the .text from to IPROM to SDRAM0. but then I had 30
> errors: "relocation overflow accured at .... in .text"
> I am using CCS 2.0
> I really appreciate if anybody can help me!!!!!
>
> pooriya
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/