Hi everybody,


I am trying to figure out how to read from the Internal flash, on a tmote sky.
For as much as I have understood, BlockStorage and EEPROM ( ByteEEPROM and PageEEPROM ) are both used for reading/writing/formatting only the external flash.
On the other side there is the InternalFlash module, but it seems to me that it can be used only for accessing the information segment of the MSP internal flash ( address range is 0x1000 - 0x107E )


Going throug the source code of   tinyos-1.x/tos/platform/msp430/InternalFlashC.nc  it seems that, after checking some conditions, it just accesses the flash without using any function (at least when reading).
And, indeed, the MSP430 user manual ( which can be found at Texas Instruments' site - http://focus.ti.com/lit/ug/slau049f/slau049f.pdf  ) says that the internal flash is mounted in the same address space as RAM memory, peripheral modules and function registers.

So, apparently it turns out that if I need to read from internal flash, I can just peek at any (even) address in between 0x3FDF and 0xFFDF (48kB of flash memory).


But, there seems to be an inconsistency:
When InternalFlashC.nc has to access the information sector of the internal flash, it looks for an address that is in between 0x1000 and 0x10FF. An address which, according to TI's user manual, should be somewhere in RAM memory, and not in the flash.


I am really confused.
Can anybody help me find a way out of this mess?


Thanks,
Mate.



PS: A couple of days ago I posted a similar question, but I never received it back. So, I suppose that it got lost or something similar...
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to