Yeah, I tried that too. Erase is safe because write will fail if that location has already been written to. Format only sets the sector table, and stores it with FormatStorage.commit. Doesn't work with allocateFixed either.

Manu.


On 9/10/06, Sarfraz Nawaz <[EMAIL PROTECTED]> wrote:
Have you tried using FormatStorage.allocateFixed(vol_id, start_addr, size) ? After a format there is no need to do an erase as far as I know.

On 9/9/06, Manu Bansal <[EMAIL PROTECTED]> wrote:
Hi,

I have some tmotes that seem to be failing on my flash application. FlashViewer is working fine with these motes - it is able to erase, write and read back the same data. But I have another flash-testing application called readWrite, which tries to format-erase-write-read-compare. This application is failing on these motes. The code for readWrite is attached (I believe it's in the tinyos tree). I don't understand why FlashViewer and readWrite are disagreeing. Any help is appreciated.

Thanks,

Manu Bansal.

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




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

Reply via email to