[Tinyos-help] Problem with LogStorage (Tinyos 2.x, Tmote, m25p80)
Tobias Rein
reint at ee.ethz.ch
Fri Jan 5 05:25:16 PST 2007
Hi,
I'm using the LogRead and LogWrite interfaces of the component
LogStorageC (linear mode) for my application and there seams to be a bug:
I can write logs to the flash and I can read them without any problems.
I call LogWrite.sync() in each appendDone(...). Even though, after a
reset of the node only 8 kb of the data survive. That means that
LogRead.ReadDone(...) has the parameter 'length' set to 0 at an offset
around 8160.
Another curiosity is that LogWrite.appendDone(..) has the parameter
'recordsLost' set to TRUE at the edge of two sectors of the flash (e.g.
currentOffset = 65511 and I write a 82 byte log).
Thanks for your help!
Tobias
-------------------- xml-file (volumes-stm25p.xml) ----------------
<volume_table>
<volume name="LOG" size="1048576" />
</volume_table>
More information about the Tinyos-help
mailing list