On Thursday 12 October 2006 03:10 pm, Sean Casey wrote:
> Hello,
>> I've read that when writing to Flash, nothing is final until sync is
> called.  Does this imply that everything written thus far using
> fastappend (or any other writing function) is stored in memory?  Meaning
> sync must be called before you run out of memory?

At least for components like LogStorage in TinyOS-2.x, the data are written 
synchronously to flash.  However, due to metadata issues, the last bit of 
flash written may not be accessible until you issue sync(), which ensures 
that the metadata necessary to access that last bit has been written.

Note that 'bit' is not a literal bit, but some implementation dependent amount 
of data.  Also note that issuing sync() may waste some flash.  TEP 103, 
available form www.tinyos.net, describes the state of flash components in 
TinyOS-2.x pretty well; you should check it out.

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

Reply via email to