Hi David,
I use blockstorage interface and I use BlockWrite and BlockRead to write and
read respectively on telosb. I am able to read the data but the data is not the
same as the one written. I am not sure whether the write is happening correctly.
I suspect this because I called some Leds in the writeDone and that call is not
being executed.
This is my write call.
return_val = call BlockWrite.write(0,Data,6);
if(!return_val)
call Leds.yellowOn();
The Data is initially set to
memset((void *)Data,10,6)
In my writeDone
call Leds.yellowOn();
In another program I have written the read structure where I read from the flash
using the following call
return_val = call FlashRead.read(0,Data,6);
if(!return_val)
call Leds.redOn();
In the readDone I do a memcmp of the 2; the data read with the written data. It
says they are not the same.
Please let me know where I have made a mistake.
Is there a way I can check the exact content of the flash?
Thanks in advance.
Regards,
Santosh.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help