[Tinyos-help] FW: assembly & nesC

Michael Schippling schip at santafe.edu
Sun Nov 16 10:13:05 PST 2008


Just a couple suggestions ...
Compare your usage with some existing ones.
I found one in tinyos-1.x/tos/platform/avrmote/crc.h where there is
no \n\t at the end of the asm() string.

It's also possible that the embedded newline between your mnemonic
strings is causing trouble. You could try putting them into one
string.

MS

stefano starita wrote:
> 
> 
> ------------------------------------------------------------------------
> From: sihtu at hotmail.it
> To: tinyos-help at millenium.berkeley.edu
> Subject: assembly & nesC
> Date: Sat, 15 Nov 2008 15:55:11 +0100
> 
> Hi to all,
> I'm trying to send to a sensor a version of AES, written in assembly, 
> embedded in a nesC program. The mote is the Mica2 and the programming 
> board is the mib510. Every time I try to compile with ncc I receive the 
> errors:
> garbage at the end of the line. I've removed the symbol $but nothing 
> happened. I receive this error even if I try to embed this two 
> instruction: asm( "andi r24, low(-5)\n\t"
>                                              "sts 59, r24\n\t");
> Can somebody tell me what error I'm making?
>  
> Thank you
>  
> Stefano
> 
> ------------------------------------------------------------------------
> Scarica gratis Messenger Beta! Portati avanti. 
> <http://download.live.com/messenger/?mkt=it-it>
> ------------------------------------------------------------------------
> Scarica gratis Messenger Beta! Portati avanti. 
> <http://download.live.com/messenger/?mkt=it-it>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew



More information about the Tinyos-help mailing list