Yeah,

 

I think the target doesn't matter.

 

If you wish to let it work with the msp430 target argument do the following:

 

 

Step 1:              Create a new file in \tinyos-1.x\tos\platform\msp430\
and name it hardware.h

Step 2:              Copy the contents of
\tinyos-1.x\tos\platform\msp430\msp430hardware.h to the hardware.h file that
you just created in step 1.

 

 

That's all, the -target=msp430 argument should work now.

 

 

Good luck!

 

 

Chougna

 

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
julien falco
Sent: vrijdag 8 juni 2007 15:27
To: Oussama Chougna
Cc: [email protected]
Subject: Re: [Tinyos-help] mig with tmote

 


Ok, thanks, my mistake. i've tried the way you said. it works well with pc:

[EMAIL PROTECTED] /opt/moteiv/apps/test_silvia/MobileMote/MoMoController
$  mig java -target=pc -java-classname=classout  PWMMsg.h PWMMsg -o
classout.java

but not with msp430:

[EMAIL PROTECTED] /opt/moteiv/apps/test_silvia/MobileMote/MoMoController
$  mig java -target=msp430 -java-classname=classout  PWMMsg.h PWMMsg -o
classou 
t.java
/opt/tinyos-1.x/tos/system/tos.h:144:22: hardware.h: No such file or
directory
<commandline>: failed to preprocess /opt/tinyos-1.x/tos/system/tos.h
failed to parse message file PWMMsg.h

Is there anything to update? 

Cheers.

 

On 6/8/07, Oussama Chougna <[EMAIL PROTECTED]> wrote:

Hi,

 

First, for mig don't specify tmote but msp430 instead.

Second, why do you specify MoMoControllerC.nc for? The header file and the
name of your message struct is enough.

 

 

So it should be this:

 

$ mig java -target=msp430 -java-classname=classout  PWMMsg.h
your_struct_name -o classout.java

 

So check your PWMMsg.h header file for your_struct_name and substitute it in
the above line.

 

 

Success

 

 

Chougna

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of julien
falco
Sent: vrijdag 8 juni 2007 14:35
To: [email protected]
Subject: [Tinyos-help] mig with tmote

 

I am trying to use mig to generate a java class for my message with a tmote.
I tried with this code:

[EMAIL PROTECTED] /opt/moteiv/apps/test_silvia/MobileMote/MoMoController
$ mig java -target=tmote -java-classname=classout MoMoControllerC.nc
PWMMsg.h
-o classout.java

and here is what i get:


Unknown target tmote
Known targets for TinyOS directory /opt/tinyos-1.x/tos
and the specified include directories are:
  atmega8 mica mica128 mica2 mica2dot micaz msp430 pc rene2 telos telosb 
failed to parse message file MoMoControllerC.nc

is mig not possible with tmote?? if i try telosb, i get a lot of errors...

thanks for your help!

 

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

Reply via email to