[Dspforum] Can't Allocate .far Error
Joseph
joseph at echelonembedded.com
Mon Oct 20 20:20:11 MDT 2008
Adam,
"Far" is placed in internal memory by the .cmd file (yours if probably
C6713dsk.cmd). You could either modify that and play around with it to do
what you want, or you could use a #pragma to tell the linker to put a
variable into a particular data section like this:
// #pragma DATA_SECTION(data, ".EXT_RAM")
In this case, the variable "data" would be placed into external memory. Just
do this for the variables that are causing you problems.
Joseph
------------------------------
*From:* Adam Brenchley [mailto:abrenchley at hotmail.com]
*Sent:* Monday, October 20, 2008 8:37 PM
*To:* Wenstrand, Doug S.; Haber, Joseph
*Subject:* Can't Allocate .far Error
When trying to compile my code for lab 6, I get the following errors from
the compiler:
>> error: can't allocate .far, size 003d0364 (page 0) in IRAM (avail:
0002fde0)
>> error: errors in input - ./Debug/fftlab.out not built
I think this means that my program (or arrays) take up too much space, but I
am not sure how to make it smaller. Is there some settings somewhere to
change how the memory is allocated? or am just doing something wrong in my
code?
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://echelonembedded.com/pipermail/dspforum_echelonembedded.com/attachments/20081020/807aff00/attachment.html>
More information about the Dspforum
mailing list