Hi.
I am trying to allocate a certain array used by my program in external memory. My LCF file looke like this:
Code:
MEMORY
{
/* vecs + L2SRAM + CIO + STACK = size of internal memory */
vecs: o = 0x00000000, l = 0x00000200, fill = 0
L2SRAM: o = 0x00000200, l = 0x000F98E0 /*1 MB of L2SRAM (minus vecs, cio sections)*/
CIO: o = 0x000F9EE0, l = 0x00000120 /*esbn: I try this to avoid message "Invalid CIO command (5)"*/
STACK: o = 0x000FF000, l = 0x00000400
/*L2SRAM + STACK + CIO + vecs = 0xFA000 = 1024 kB*/
EXT_MEM: o = 0x80000000, l = 0x000F0000 /*I allocate 983 kB externally to read in DWTinput.*/
}
SECTIONS
{
"vectors" > vecs
.my_bufs > L2SRAM .cinit > L2SRAM
.text > L2SRAM
.stack > STACK
.bss > L2SRAM
.const > L2SRAM
.data > L2SRAM
"DataMatrix"
{
getdata.obj(.far)
} > EXT_MEM
.far > L2SRAM
.switch > L2SRAM
.sysmem > L2SRAM
.tables > L2SRAM
.cio > CIO
}
As far as I can understand I should now have the far-section of the getdata-file in EXT_MEM, but I get the following error message:
>> esbnLCF.cmd: error: system error, can't open file 'getdata.obj' for input: No such file or directory
I have checked my .map file to make sure that part of getdata.obj really is placed in the .far section.
What can I do to allocate my array in EXT_MEM?
Thank you.
Esben.