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