|
Hi
Weijen,
It
looks like you're using Boomerang, correct?
I
originally wrote FlashViewer for TinyOS-1.x without Boomerang, and Boomerang
introduced some arbitration architecture that FlashViewer didn't
support. In fact, FlashViewer was created just to figure out the
behavior of TinyOS-1.x BlockStorage on different platforms and allows you to
view what's on the flash. The green light indicates that FlashViewer
mounted to volume 0, and it looks like the format program you're using is just
fine in that it creates a whole bunch of volumes on the flash, each the size of
a sector (erase unit).
I'm
not sure what the StorageManagerM errors are that you're seeing, because those
are part of your TinyOS distribution. The BlockStorage behavior may
have changed as well - that could be causing the problems. If you look in
FlashViewerM, there's a function called "void execute(ViewerMsg
*message)" at the bottom. And it's there that you can see how BlockStorage
is being accessed.
I
stopped using FlashViewer when I found that BlockStorage wasn't going
to work for the projects I was working on. I built my own flash
abstraction layer, which I called "FlashBridge" because it bridges any and every
flash type to a set of raw, general interfaces - read, write, erase, flush, and
crc. FlashBridge was ported to Boomerang by Mark Kranz. If you use
FlashBridgeViewer, you'll be ditching the libraries in /lib/Flash and using
Rincon's /tos/lib/FlashBridge instead. The flash bridge test app is
currently located in /tos/lib/FlashBridge/apps/FlashBridgeViewer. Edit the
Makefile to choose a flash type and specify Boomerang. This will allow you
to read and write raw bytes on the flash, and erase any erase unit on the
flash. Basically, it forwards the commands from your computer to the
FlashBridge interface just like the FlashViewer program forwards commands from
your computer to the BlockStorage interface.
Sorry
I can't be more help on the FlashViewer/Boomerang end. But I hope this
gives you some ideas,
-David
|
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
