<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=518373402-02062004><FONT face=Arial color=#0000ff size=2>thats 
what i have done.  started my db at 0x81 in eeprom.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> en-nut-discussion-bounces@egnite.de 
[mailto:en-nut-discussion-bounces@egnite.de] <B>On Behalf Of </B>Zheng 
Anding<BR><B>Sent:</B> Wednesday, June 02, 2004 10:18 AM<BR><B>To:</B> Ethernut 
User Chat (English)<BR><B>Subject:</B> Re: [En-Nut-Discussion] Save Data to the 
EEPROM<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I thought the first 64 bytes of EEPROM are reserved by Nut/OS and 
the next 64 bytes are reserved by Nut/Net, we can use the remaining 3968 bytes, 
according to the software manual...<BR><BR><B><I>Harald Kipp 
<harald.kipp@egnite.de></I></B> wrote: 
<BLOCKQUOTE class=replbq 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Joerg,<BR><BR><BR>>I 
  found the commands EEPROM_READ and EEPROM_WRITE.<BR>><BR>>#define 
  EEPROM_WRITE(addr,src)<BR>><BR>>My problem now is to get the value for 
  "addr". There are some constant <BR>>value in the examples like 
  CONFNET_EE_OFFSET, but whats the value I need?<BR><BR>There's no pre-defined 
  value, AFAIK. I recommend to<BR>start at address 512. Anything from 0 to 511 
  is<BR>weakly reserved for Nut/OS.<BR><BR>>Perhaps anybody knows a another 
  way to save the Data?<BR><BR>No, EEPROM is the right place. Have a look 
  into<BR>nut/os/confos.c, NutLoadConfig() and NutSaveConfig().<BR>This works 
  with ICC and GCC. Note, that the value<BR>is read before writing, which 
  reduces wear out.<BR>(Was it Alexander, who gave this 
  hint?)<BR><BR>Harald<BR><BR>_______________________________________________<BR>En-Nut-Discussion 
  mailing 
  list<BR>En-Nut-Discussion@egnite.de<BR>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion</BLOCKQUOTE></DIV>
<P>
<HR SIZE=1>
<FONT face=arial size=-1>Do you Yahoo!?<BR>Friends. Fun. <A 
href="http://messenger.yahoo.com/">Try the all-new Yahoo! 
Messenger</A></FONT></BODY></HTML>