[Icc-avr] Memory Setup and Speed

Richard richard-lists at imagecraft.com
Sun Mar 25 21:54:32 PST 2007


The below works fine. Even better - if there are some variables that you do 
want in external mem, then just do something like

#pragma data:extmem_vars
char foo[1000];
int bar;
#pragma data:data

and in the Options->Target->"Other Options" box, add
         -bextmem_vars:0x1100
or whatever the address for the start of the external mem is.

At 04:44 PM 3/25/2007, BobGardner at aol.com wrote:

>I think the trick is dont check the ext mem box. Just poke the 'enable 
>external memory' magic number into the MCUCR at power on, and access ext 
>ram thru a pointer to 0x1100. ICCAVR doesn't know about the ext mem, will 
>keep stack and vars in internal ram.

// richard (This email is for mailing lists. To reach me directly, please 
use richard at imagecraft.com) 



More information about the Icc-avr mailing list