2kB is used by TOSBoot, the bootloader.  You have 48-2=46k available
to your application.  Memory can only be segmented in pages of 512
bytes, so you don't get 48k-1796.

The BSL is located in a special part of flash that is not part of the main 48k.

-Joe

On 3/28/06, Martin Gercke <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I am having some difficulties getting to the bottom of RAM/ROM-details when
> compiling an application for TeloB.
>  As a read from the datasheet there is
>  48KB flash memory available (ROM)
>  10KB RAM
>
>  I am slowly running into memory problems with my application and try to
> find out the exact ammount I have left.
>  When I compile for telosb the output says:
>  26136 bytes in ROM
>  8891 bytes in RAM
>
>  And when I use the BSL it tells me first (flashing the BSL):
>  1796 bytes programmed.
>  then it tells me (flashing my application):
>  26168 bytes programmed.
>
>  Ok, so
>
>  1. how do these numbers relate to each other.
>  2. do I have to substract 1796bytes from the maximum of 48KB Flash memory
> to get the maximum for my application (ROM)?
>  if no, why don't I need more flash memory as the BSL has to be on the
> MSP430 when flashin my application.
>
>  would be very very nice if someone could clarify this for me.
>
>  martin
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>

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

Reply via email to