> -----Original Message-----
> From: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-
> boun...@millennium.berkeley.edu] On Behalf Of Jakob Bieling
> Sent: dinsdag 26 juli 2011 21:32
> To: Tinyos-Help
> Subject: Re: [Tinyos-help] Loading / saving a array of uint8_t at
> micaz/irisnodes
> 
> On Jul 26, 2011, at 6:27 PM, Michael Schippling wrote:
> 
> > I don't know if there is any erase of external EEPROM done
> > when a device is programmed, so the contents _might_ persist
> > across new downloads and thus you would only have to do
> > the message thing once.
> 
>   It does indeed persist, at least to my empirical knowledge. You will
> have to explicitly erase the flash, if you really want it erased.
Also,
> afaik, you _must_ erase it the first time you use a new
volumes-xyz.xml
> layout file. Not sure what happens if you don't, but I think that's
> what the docs said ..

Yup, it is persistent unless the node explicitly erases it. Since flash
can only be written by changing ones to zeroes, you need to erase the
flash (turning all bits back to ones) before it can be written. If the
whole flash is erased already, it shouldn't matter if you use a new
layout, but since you never know what leftover data may still be there,
it's a pretty good idea to explicitly erase it.
I'm not aware of any tools that can write the external flash directly,
though you could write an application that runs on the node and offers a
simple serial interface between the PC and the flash chip.
Kind regards,
Michiel

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to