Le Monday 07 April 2008 08:30:37 daniel widyanto, vous avez écrit :
> Hi all,
>
> Can I have suggestions about the interface that I should implement for
> MCU's internal EEPROM ?
>
> I'm using micaz compatible mote, and I want to store the mote's
> configuration (sampling time, offset, etc) inside MCU's EEPROM (because
> ATMega128 has 4096 bytes EEPROM, which I think it's more than enough for
> configuration).

If you want to use the internal eeprom you should use the InternalFlashC.nc 
(don't worry it's just badly name it's accessing the EEPROM not the flash ) 
component:
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x/tos/lib/tosboot/avr/

To use it properly you will need some files under the tosboot directory (at 
least InternalFlash.h and check the memory areas used by deluge in 
micaz/TOSBoot_platform.h in order to not overwrite deluge variables if you 
use it ... ) 

BTW, looks like :
tos/lib/tosboot/telosb/InternalFlash.nc
is a leftover it's not needed anymore as it's a duplicate of :
tos/interfaces/InternalFlash.nc


> I've read TEP103, and its tutorial in
> http://docs.tinyos.net/index.php/Storage. But I don't have the tools to
> convert the XML into EEPROM map.

I belive that the BlockStorage has no  support for the internal EEPROM, it's 
not a block device anyway, it can be written a byte at a time... 
Anyway the conversion should be automatically handled by the makefiles using 
the tos-storage-{at45db or stm25p} tool tin the tinyos-tools package...

cheers
Aurélien

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to