Thanks. 
I have a mote with ATTiny2313 integrated on the same board. The idea is provide 
automatic update for the microcontroller software. ATTiny receives the new 
software from microcontroller, save it on an at45 flash, and then reprogram the 
mcu with this new soft. I need the binary to send small packets to mcu, who 
send this to ATTiny. The s record or intel hex are too big and need processing 
for create binary data. How I do this hex dumping?

----- Mensaje original ----
De: Michael Schippling <[EMAIL PROTECTED]>
Para: jose m <[EMAIL PROTECTED]>
CC: [email protected]
Enviado: lunes 15 de octubre de 2007, 19:31:07
Asunto: Re: [Tinyos-help] Compile to binary

I would suppose that it is a loader format, probably ELF,
and contains all kinds of extra stuff like symbols. Try
hex dumping it to see what's there...

But to get it to the mote you generally need an "SREC" format,
at least that's what micas want, and it looks like tmotes have
embedded something like it in their tos_image.xml files.
If you use the standard TOS makefiles these files should
be generated for you. Then it's a matter of downloading
to the controllers, for which TOS conveniently provides
programs.

If you follow along on the tutorial path you will find
make [platform]   -- to produce the binaries
make [platform] install  -- to download them

Is that not working for you?
MS


jose m wrote:
> Just one. Why this file is so large? In bytes I mean. Compilation
 says 
> "1753 bytes in ROM", but this "main.exe" has 6684 bytes... If I write
 
> "main.exe" to the microcontroller, is this the right program and
 works fine?
> 
> ----- Mensaje original ----
> De: Michael Schippling <[EMAIL PROTECTED]>
> Para: jose m <[EMAIL PROTECTED]>
> CC: [email protected]
> Enviado: sábado 13 de octubre de 2007, 16:16:12
> Asunto: Re: [Tinyos-help] Compile to binary
> 
> main.exe is the binary file for the platform to which you are
 compiling
> I suspect that there is another question though?
> MS
> 
> 
> jose m wrote:
>  > Hello,
>  >
>  > A question: Can I compile my code to create a binary file? not
 intel or
>  > motorola, hexadecimal code. Is the "main.exe" the binary?
>  > Thanks in advance.
>  >
>  >
>  >
 ------------------------------------------------------------------------
>  >
>  > El Mundial de Rugby 2007
>  > Las últimas noticias en Yahoo! Deportes:
>  > http://ar.sports.yahoo.com/mundialderugby
>  >
>  >
>  >
 ------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > Tinyos-help mailing list
>  > [email protected] 
> <mailto:[email protected]>
>  >
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
>
 ------------------------------------------------------------------------
> 
> Seguí de cerca a la Selección Argentina de Rugby
> en el Mundial de Francia 2007.
> http://ar.sports.yahoo.com/mundialderugby
> 
> 
>
 ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help






      Seguí de cerca a la Selección Argentina de Rugby en el Mundial de Francia 
2007.
http://ar.sports.yahoo.com/mundialderugby
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to