2006-02-20 11:16 PM
How to define a Data segment, for placing data in Ext. ram?
2006-02-14 07:27 PM
I am using the IAR compiler..
I have an External RAM where I want to place only certain data.. I think I have to use segments and #pragma, but what to write in the Linker xcl file? Best regards, Frank Andersen2006-02-14 08:05 PM
I want to place code in flash, data for OS and buffers for USB in internal ram, and data large data structures in external ram.
Best regards, Frank Andersen2006-02-16 06:25 PM
I face the same problem. I don't know how to do.
2006-02-20 11:16 PM
Thx,
To use the #pragma location You have to define the segment eg. EXTRAM in the linker file, like this: -DSRAMSTART=0x60000000 -DSRAMEND=0x600FFFFF -Z(DATA)EXTRAM=SRAMSTART-SRAMEND To declare a variable in the segment ''EXTRAM'' do: #pragma location=''EXTRAM'' __no_init long ExtMem; Best regards, Frank Andersen