[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Parthasaradhi Nayani
Subject: [avr-gcc-list] Problem allocating memory in xflash
Date: Wed, 26 Aug 2009 03:59:58 -0700 (PDT)

Hello all,
I have created an external flash memory section in the makefile thus

LDFLAGS += -Wl,--section-start,.exflash=0x850000

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, whereas

struct prclkp XFLASH PLULOC1[1024]; generates an error - "size of array too large"

If the size of the section is 64K, then the above i well within the limit but still the error is popping up. Has this anything to do with sign? Please advice. Thank you.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]