Hi!

On Wed, 29 Oct 2008, Gireesh P wrote:

> Hi ,
>         So if I want to rewrite a part of program memory, can you tell me
> what are the minimum steps I should take?
> ( For example memory location loc1 has to be modified and new value is
> stored in external flash. It should first read from flash, find the program
> memory to be modified and rewrite that and reboot)

First of all I highly recommend a careful study of the MSP430 and the 
ATmega128 specs. The two architectures are quite different and they have 
different limitation.

In tosboot the writing is done using a component called ProgFlashM.nc. 
There is one in tos/lib/tosboot/msp430 and another one in 
tos/lib/tosboot/avr. The function that is using it is the programImage 
from TOSBootM.nc from tos/lib/tosboot.

--
Razvan ME

> On Tue, Oct 28, 2008 at 11:16 PM, Razvan Musaloiu-E. <[EMAIL PROTECTED]>wrote:
>
>> Hi!
>>
>> On Tue, 28 Oct 2008, Gireesh P wrote:
>>
>>  Dear TinyOS supporters,
>>>
>>>          I would like to know
>>> 1)more about  files used in "deluge" for tinyos 2.x.  Basically I am looking
>>> at boot loader and flash rewriting part such as the files to be included/
>>> functions to be used for this purpose
>>>
>>
>> The loading of the code from the external flash to the internal one takes
>> place exclusively in tosboot. You can find it in tos/lib/tosboot. The
>> communication with the tosboot is done using using some special regions of
>> internal flash memories. The code that is doing the tinyos application is in
>> NetProgM.nc from tos/lib/net/Deluge/extra. The format of the data that is
>> passed to the bootloader is describe by the tosboot_args_t from TOSBoot.h
>> from tos/lib/net/Deluge/extra.
>>
>>  2)Is there a working code of XNP for tinyos 2.x?
>>>
>>
>> I'm not aware of such a port. I agree that it would be useful to have an
>> equivalent for it. :-)
>>
>> All the best!
>> Razvan ME
>>
>
>
>
> --
> Thanks
> with regards
> Gireesh
> -------------------------
> Gireesan Namboothiri P
> MS(R) Student
> Dept of CSE
> IIT Madras
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to