From: jleslie48 on
I'm on Code Composer V3.3, on a Windows XP machine, using a
TMS320C6713 DSP.

I just added a new source file to my project, got through the compile
and .h issues and the linker reports:

[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -
@"C6713Compact.lkf"
<Linking>
>> error: can't allocate .far, size 000c5984 (page 0) in IRAM (avail:
0002fe00)
>> error: errors in input - ./C6713Compact/ORS11x_Demo_C6713Compact.out not
built

>> Compilation failure

Build Complete,
3 Errors, 0 Warnings, 0 Remarks.


looking up "error: can't allocate .far, size" using the help button,
yahoo search, and TI's own website has yielded no insight, so now I
turn to those skilled in the Art...

From: Randy Yates on
jleslie48 <jon(a)jonathanleslie.com> writes:

> I'm on Code Composer V3.3, on a Windows XP machine, using a
> TMS320C6713 DSP.
>
> I just added a new source file to my project, got through the compile
> and .h issues and the linker reports:
>
> [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -
> @"C6713Compact.lkf"
> <Linking>
>>> error: can't allocate .far, size 000c5984 (page 0) in IRAM (avail:
> 0002fe00)
>>> error: errors in input - ./C6713Compact/ORS11x_Demo_C6713Compact.out not
> built
>
>>> Compilation failure
>
> Build Complete,
> 3 Errors, 0 Warnings, 0 Remarks.
>
>
> looking up "error: can't allocate .far, size" using the help button,
> yahoo search, and TI's own website has yielded no insight, so now I
> turn to those skilled in the Art...

You're running out of memory:

error: can't allocate .far, size 000c5984 (page 0) in IRAM (avail: 0002fe00)
--
% Randy Yates % "Though you ride on the wheels of tomorrow,
%% Fuquay-Varina, NC % you still wander the fields of your
%%% 919-577-9882 % sorrow."
%%%% <yates(a)ieee.org> % '21st Century Man', *Time*, ELO
http://home.earthlink.net/~yatescr
From: Alex Gibson on

"jleslie48" <jon(a)jonathanleslie.com> wrote in message
news:1177011325.348882.127480(a)n76g2000hsh.googlegroups.com...
> I'm on Code Composer V3.3, on a Windows XP machine, using a
> TMS320C6713 DSP.
>
> I just added a new source file to my project, got through the compile
> and .h issues and the linker reports:
>
> [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -
> @"C6713Compact.lkf"
> <Linking>
>>> error: can't allocate .far, size 000c5984 (page 0) in IRAM (avail:
> 0002fe00)
>>> error: errors in input - ./C6713Compact/ORS11x_Demo_C6713Compact.out
>>> not
> built
>
>>> Compilation failure
>
> Build Complete,
> 3 Errors, 0 Warnings, 0 Remarks.
>
>
> looking up "error: can't allocate .far, size" using the help button,
> yahoo search, and TI's own website has yielded no insight, so now I
> turn to those skilled in the Art...
>

May I suggest getting a couple of good books that run you through using
TI C6000 series dsps

Digital Sgnal Processing and Applications with the C6713 and C4616 DSK
by Rulph Chassing Wiley 2005

Real Time Digital Signal Processing Based on the TMS320C6000
by Nasser Kehtarnavaz Newnes 2005

For Image Processing

Embedded Image Processing on the TMS320C6000 DSP
by Shehrzad Qureshi Springer 2005


Most of these books run you through a few projects and introduce you to
the features of the dsps.

There is also some good material available on the TI university website
<http://focus.ti.com/general/docs/university/univ.tsp?templateId=5807&navigationId=10538&path=templatedata/cm/univgen/data/univ_ovw>


TI also has some online seminars/webcasts/on line training which may be
worthwhile to go through
http://focus.ti.com/docs/training/catalog/events/eventsbytype.jhtml?templateId=5517&navigationId=8457
some are good


Basically you have an error in your linker file or are trying to put to
much into the area you have set as IRAM (onchip ram- maybe)

What board are you using ?

Something similar to this(from a project for c6711/c6713 dsk) ?
/*C6xdsk.cmd Generic Linker command file*/

MEMORY
{
VECS: org = 0h, len = 0x220
IRAM: org = 0x00000220, len = 0x0000FDC0 /*internal memory*/
SDRAM: org = 0x80000000, len = 0x01000000 /*external memory*/
FLASH: org = 0x90000000, len = 0x00020000 /*flash memory*/
}

SECTIONS
{
vectors :> VECS
.text :> IRAM
.bss :> IRAM
.cinit :> IRAM
.stack :> IRAM
.sysmem :> SDRAM
.const :> IRAM
.switch :> IRAM
.far :> SDRAM
.cio :> SDRAM
}


Alex