Hi all,

I am modifying Deluge for some application. I need to write some data on off-chip flash.

I tried to use the AllocationReq interface provided by ByteEEPROMAllocate  component to see if I can use some memory. But ByteEEPROMAllocate.request() always returned FAIL. In fact, in a loop, I tested if ByteEEPROMAllocate.request() returns SUCCESS for any part of the memory. It always returned FAIL.

Next I tried to use PageEEPROM interface provided by PageEEPROMC. I had read somewhere (dont remember where) that we can safely use 1500+ pages. I tried to use Page 2000 and then Page 2047 (assuming 2047 is the last page. I am not sure, but 512K memory means there should be 2048 pages.). I could write data on off-chip Flash and read that data from there too. But then when I tried to ping the mote ( or say inject new image), it didnt work because it said "Deluge is not running in the mote". I thought this meant that I was writing on t! he Page used by Deluge.

I also tried to use EEPROMWrite and EEPROMRead interfaces provided by EEPROM component. I could write the data , but reading gave random results. However, when I used these interfaces for a simple non-Deluge application like Blink, I could successfully read and write date on the Flash. But when I used the same thing for Deluge, I could write data but reading gave random results.

I know that there should be a way to write on Flash. But I dont know where I am making mistake. Please  help me how to use off-chip flash. Also please note that I want my data preserved even when I reboot the mote from a different image.

Thanks in advance,
raj


New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to