Dear all,

I have several question with regard to the relation between the bootloader
and TinyOS with the underlying device as MicaZ (or Atmega128). My goal is
to understand how to upload an application to a specific memory address in
the internal flash of Atmega128.

First, I want to confirm if what I learned is correct.

1. It seems that once I compiled a TinyOS application, e.g. Blink, the
output (and uploaded) image includes the whole OS (necessary components and
libraries in the dependencies) and the application BlinkApp, is it correct?

2. From the tutorial, it seems that I can only package one application into
the system image, because in the Makefile I can only define one component.
Is it correct?

3. If 2. is correct, then the TinyOS is like a one task application. If I
want to add another function, e.g., Bark, I have to modify the top
component module as "BlinkAndBark", wire Blink and Bark components and
start them asynchronously. Is it correct?

Here are my main questions:

I learned from the datasheet of Atmega128 that its internal flash is
comprised of bootloader section (e.g. 0xF000 ~ 0xFFFF) and the application
section (e.g. 0x0000~0xEFFF).

1. I want to put an application in the bootloader section and the other
part in the applicatioin section, because I need the capability to write to
internal flash. But the whole TOS image is too big to fit in bootloader
section. So can I selectively choose a component to stay in bootloader
section, and the other parts outside. How can I do it if TinyOS only allows
the upload of one packaged system image?

2. I checked a bit about Deluge (using TOSBoot). It seems that the tosboot
indicates -DTOSBOOT_START in the Makefile where to put tosboot. Does it
mean that the rest stays elsewhere? But I compiled app/test/deluge/Blink,
and its main.srec does not include address within 0xF000~0xFFFF according
to the description of SREC format, only 0x0000~0x3610. I am confused...

3. How to write bootloader in TinyOS? Any tutorials, principle? I have only
seen avr bootloader.

I am trying to understand it and finally build something. Any hint would be
welcome!! Thanks a lot for your help!

regards,
Vivien
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to