avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] examples on how to create and use a dynamic array in


From: Bob Paddock
Subject: Re: [avr-gcc-list] examples on how to create and use a dynamic array in the EEPROM
Date: Fri, 16 Nov 2007 08:01:13 -0500
User-agent: Opera Mail/9.10 (Win32)

On Fri, 16 Nov 2007 04:30:21 -0500, Oven Senmeis <address@hidden> wrote:

Hello,

Would you please give me an example on how to create and use a dynamic array in the EEPROM of AT90CAN128? As far as I know, it’s not possible to use functions like malloc() to allocate space for pointers because GCC doesn't support malloc() for EEPROM. I suppose I have to reserve and free space manually.

No idea why you would want to do something like that, as it would
eventually destroy the EEPROM (Check the datasheet
for EEPROM Write Cycles), maybe these help?:

 * For reference see:
 *
 *      "Forget Me Not":
 *      http://www.embedded.com/story/OEG20010529S0121
 *
 *      "offsetof()":
* http://www.embedded.com/shared/printableArticle.jhtml?articleID=18312031




reply via email to

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