[avr-gcc-list] Larger than 64K memory sections

2009-08-26 Thread Parthasaradhi Nayani
Hello all, I am using a 4MB flash memory with my Mega64. I would like to create a memory section for the entire 4MB. Is it possible? If yes, how can this be done in the makefile? Thank you very much for your time. Regards, Nayani ___

[avr-gcc-list] Problem allocating memory in xflash

2009-08-26 Thread Parthasaradhi Nayani
Hello all, I have created an external flash memory section in the makefile thus LDFLAGS += -Wl,--section-start,.exflash=0x85 and named (defined) this section as XFLASH. I have a structure prclkp of size 32 bytes. When I define struct prclkp XFLASH PLULOC1[1023];   No error is reported,

[avr-gcc-list] Re: Larger than 64K memory sections

2009-08-26 Thread David Brown
Parthasaradhi Nayani wrote: Hello all, I am using a 4MB flash memory with my Mega64. I would like to create a memory section for the entire 4MB. Is it possible? If yes, how can this be done in the makefile? Thank you very much for your time. Regards, Nayani You can't directly access such

[avr-gcc-list] Re: Larger than 64K memory sections

2009-08-26 Thread David Brown
Jan Waclawek wrote: I am using a 4MB flash memory with my Mega64. I would like to create a memory section for the entire 4MB. Is it possible? If yes, how can this be done in the makefile? Thank you very much for your time. You can't directly access such large memory areas from an AVR,

Re: [avr-gcc-list] Re: Larger than 64K memory sections

2009-08-26 Thread David Kelly
On Wed, Aug 26, 2009 at 03:10:05PM +0200, David Brown wrote: All in all, I can't see any advantage to the OP in using memory sections here, and I can see a great many complications if it can be made to work at all. I agree that with the avr-gcc toolset that a great many complications will

[avr-gcc-list] Re: Larger than 64K memory sections

2009-08-26 Thread David Brown
David Kelly wrote: On Wed, Aug 26, 2009 at 03:10:05PM +0200, David Brown wrote: All in all, I can't see any advantage to the OP in using memory sections here, and I can see a great many complications if it can be made to work at all. I agree that with the avr-gcc toolset that a great many

Re: [avr-gcc-list] Re: Larger than 64K memory sections

2009-08-26 Thread Parthasaradhi Nayani
David Kelly wrote: You are right that we know nothing about the application in question - details here would make it much easier to give recommendations. Hello all, I mentioned 4MB flash as it is the HW spec. This 4MB gets filled over a period of time. Details of application - I have data