I am trying to store a small value in stm25p flash memory
on a telosb mote, using ConfigStorage in TOS2. However,
After mounting, ConfigStorage.valid() always returns TRUE,
even after imaging and mount and before fist commit. Thus,
I am unable to discern the "first" boot and seed that storage
position. Is this a known bug? I mean, the specification says
that after imaging ConfigStorage.valid() should return FALSE
after mounting but before first commitafter imaging, right?
For example, the following code should cause the led0 to
turn on after imaging, and led1 to turn on after reboot:
event void Mount.mountDone(error_t e)
{
if ConfigStorage.valid() { call Led.led1On(); }
else { all Led.led0On; }
}
For me, led1 always turns on even after imaging.
Thanks,
-chris
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help