Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-16 Thread Philip Levis

On Oct 16, 2006, at 1:57 AM, Daniele Munaretto wrote:


Dear all,
i am still quite surprised that after upgrading to tinyos-2.x,  
following in a precise way the instructions, if i compile something  
in tinyos-2 it's all ok, if i compile something in tinyos-1.x, i  
obtain only errors, as in the attached file ( compiling Blink app).


Anyone could help me?
it's really important for me for working
thanks very much
Daniele



In theory -- barring strange configurations on your machine -- then  
you should be able to switch between 1.x and 2.x by changing these  
three environment variables


TOSDIR
MAKERULES
CLASSPATH

If you're using TOSROOT then you need to change that to.

I personally default to 2.x but have a script that changes my shell  
to 1.x through setenv (export).


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-17 Thread Daniele Munaretto
All this happened after the installation of T2 (or upgrading, without 
touching T1)..i don't know how i might have messed up the access to that 
directory. Anyway, is there any possibility to know what to modify in 
/usr/local/avr ?

i don't know exactly how this directory has to be..
thanks very much
Daniele




Michael Schippling wrote:

The functions in question are defined in the AVR header files, not TOS.
You may have messed up the access to /usr/local/avr somehow. Or does
T2 use a different AVR version?
MS




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-17 Thread Daniele Munaretto

Hi Michael,
I've found the problem right in usr/local folder.
It's strange but the sub-folders avr, lib, include, info, share and bin 
in tinyos-1.x (from a pc which runs only tinyos-1.x) are different than 
the tinyos-2.x's ones (for example avr folder is empty here).
So to switch correctly from one to other version, i need not only to 
change PATHS, but also these sub-folders..quite annoying but it works fine!


If you have any ideas about this, it will be really appreciated
However many thanks Michael!
Daniele


Michael Schippling wrote:

The functions in question are defined in the AVR header files, not TOS.
You may have messed up the access to /usr/local/avr somehow. Or does
T2 use a different AVR version?
MS




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-17 Thread Michael Schippling

I dunno why T2 would empty the AVR dir, nor if it works
if one exists. Have you tried switching back? Maybe it
was an install glitch.

MS

Daniele Munaretto wrote:

Hi Michael,
I've found the problem right in usr/local folder.
It's strange but the sub-folders avr, lib, include, info, share and bin 
in tinyos-1.x (from a pc which runs only tinyos-1.x) are different than 
the tinyos-2.x's ones (for example avr folder is empty here).
So to switch correctly from one to other version, i need not only to 
change PATHS, but also these sub-folders..quite annoying but it works fine!


If you have any ideas about this, it will be really appreciated
However many thanks Michael!
Daniele


Michael Schippling wrote:

The functions in question are defined in the AVR header files, not TOS.
You may have messed up the access to /usr/local/avr somehow. Or does
T2 use a different AVR version?
MS



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-18 Thread Daniele Munaretto
Yes, i switch from one to other one and viceversa, and the only solution 
is this one




Michael Schippling wrote:

I dunno why T2 would empty the AVR dir, nor if it works
if one exists. Have you tried switching back? Maybe it
was an install glitch.

MS

Daniele Munaretto wrote:

Hi Michael,
I've found the problem right in usr/local folder.
It's strange but the sub-folders avr, lib, include, info, share and 
bin in tinyos-1.x (from a pc which runs only tinyos-1.x) are 
different than the tinyos-2.x's ones (for example avr folder is empty 
here).
So to switch correctly from one to other version, i need not only to 
change PATHS, but also these sub-folders..quite annoying but it works 
fine!


If you have any ideas about this, it will be really appreciated
However many thanks Michael!
Daniele


Michael Schippling wrote:

The functions in question are defined in the AVR header files, not TOS.
You may have messed up the access to /usr/local/avr somehow. Or does
T2 use a different AVR version?
MS






___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-20 Thread Daniele Munaretto
All this happened after the installation of T2 (or upgrading, without 
touching T1)..i don't know how i might have messed up the access to that 
directory. Anyway, is there any possibility to know what to modify in 
/usr/local/avr ?

i don't know exactly how this directory has to be..
thanks very much
Daniele


Michael Schippling wrote:

The functions in question are defined in the AVR header files, not TOS.
You may have messed up the access to /usr/local/avr somehow. Or does
T2 use a different AVR version?
MS


Daniele Munaretto wrote:

Dear all,
 i am still quite surprised that after upgrading to tinyos-2.x, 
following in a precise way the instructions, if i compile something 
in tinyos-2 it's all ok, if i compile something in tinyos-1.x, i 
obtain only errors, as in the attached file ( compiling Blink app).


Anyone could help me?
it's really important for me for working
thanks very much
Daniele




In file included from /opt/tinyos-1.x/tos/platform/micaz/hardware.h:82,
 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function 
`TOSH_sleep':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:144: warning: 
implicit declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function 
`__nesc_atomic_start':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:160: warning: 
implicit declaration of function `inp'
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h: In function 
`__nesc_atomic_end':
/opt/tinyos-1.x/tos/platform/avrmote/avrhardware.h:167: warning: 
implicit declaration of function `outp'

In file included from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function `getADC':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:88: warning: implicit 
declaration of function `inw'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_SET_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:116: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_CLR_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:116: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_READ_RED_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:116: warning: implicit 
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_RED_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:116: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_RED_LED_INPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:116: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_SET_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:117: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_CLR_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:117: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_READ_GREEN_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:117: warning: implicit 
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_GREEN_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:117: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_GREEN_LED_INPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:117: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_SET_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:118: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_CLR_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:118: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_READ_YELLOW_LED_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:118: warning: implicit 
declaration of function `inp'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_YELLOW_LED_OUTPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:118: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_MAKE_YELLOW_LED_INPUT':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:118: warning: implicit 
declaration of function `cbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_SET_SERIAL_ID_PIN':
/opt/tinyos-1.x/tos/platform/micaz/hardware.h:120: warning: implicit 
declaration of function `sbi'
/opt/tinyos-1.x/tos/platform/micaz/hardware.h: In function 
`TOSH_CLR_SERIAL_ID_PI

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-27 Thread Adam
Daniele,
 
How do you fix the problem? I meet the same problem as you.
 
 
On 10/17/06, Daniele Munaretto <[EMAIL PROTECTED]> wrote:
Hi Michael,I've found the problem right in usr/local folder.It's strange but the sub-folders avr, lib, include, info, share and bin
in tinyos-1.x (from a pc which runs only tinyos-1.x) are different thanthe tinyos-2.x's ones (for example avr folder is empty here).So to switch correctly from one to other version, i need not only tochange PATHS, but also these sub-folders..quite annoying but it works fine!
If you have any ideas about this, it will be really appreciatedHowever many thanks Michael!DanieleMichael Schippling wrote:> The functions in question are defined in the AVR header files, not TOS.
> You may have messed up the access to /usr/local/avr somehow. Or does> T2 use a different AVR version?> MS>>___Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-27 Thread Michael Schippling

I just suffered through a mostly pointless reload of cygwin
done in a misguided attempt to get gcc working for a little
JNI foo...anyway, I got all the avr rpms from under here:
http://www.tinyos.net/download.html
If you look at the manual install instructions you should
be able to muddle through.

MS


Adam wrote:

Daniele,
 
How do you fix the problem? I meet the same problem as you.
 
 



On 10/17/06, *Daniele Munaretto* <[EMAIL PROTECTED] 
> wrote:


Hi Michael,
I've found the problem right in usr/local folder.
It's strange but the sub-folders avr, lib, include, info, share and bin
in tinyos-1.x (from a pc which runs only tinyos-1.x) are different than
the tinyos-2.x's ones (for example avr folder is empty here).
So to switch correctly from one to other version, i need not only to
change PATHS, but also these sub-folders..quite annoying but it
works fine!

If you have any ideas about this, it will be really appreciated
However many thanks Michael!
Daniele


Michael Schippling wrote:
 > The functions in question are defined in the AVR header files,
not TOS.
 > You may have messed up the access to /usr/local/avr somehow. Or does
 > T2 use a different AVR version?
 > MS
 >
 >

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-27 Thread Adam
I tried to reinstall all avr related tools as in http://www.tinyos.net/tinyos-1.x/doc/install.html
 
It does not solve this problem, it will complain saying missing dependencies libxxx.o files.  
On 10/27/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
I just suffered through a mostly pointless reload of cygwindone in a misguided attempt to get gcc working for a little
JNI foo...anyway, I got all the avr rpms from under here:http://www.tinyos.net/download.htmlIf you look at the manual install instructions you shouldbe able to muddle through.
MSAdam wrote:> Daniele,>> How do you fix the problem? I meet the same problem as you.> On 10/17/06, *Daniele Munaretto* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> Hi Michael,> I've found the problem right in usr/local folder.
> It's strange but the sub-folders avr, lib, include, info, share and bin> in tinyos-1.x (from a pc which runs only tinyos-1.x) are different than> the tinyos-2.x's ones (for example avr folder is empty here).
> So to switch correctly from one to other version, i need not only to> change PATHS, but also these sub-folders..quite annoying but it> works fine!>> If you have any ideas about this, it will be really appreciated
> However many thanks Michael!> Daniele>>> Michael Schippling wrote:>  > The functions in question are defined in the AVR header files,> not TOS.
>  > You may have messed up the access to /usr/local/avr somehow. Or does>  > T2 use a different AVR version?>  > MS>  >>  >>> ___
> Tinyos-help mailing list> Tinyos-help@Millennium.Berkeley.EDU> Tinyos-help@Millennium.Berkeley.EDU
>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> <
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>>>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-27 Thread Michael Schippling

Better send the actual commands and errors...
I don't know what the "it" that is complaining is.
MS


Adam wrote:
I tried to reinstall all avr related tools as in 
http://www.tinyos.net/tinyos-1.x/doc/install.html
 
It does not solve this problem, it will complain saying missing 
dependencies libxxx.o files.


 
On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


I just suffered through a mostly pointless reload of cygwin
done in a misguided attempt to get gcc working for a little
JNI foo...anyway, I got all the avr rpms from under here:
http://www.tinyos.net/download.html
If you look at the manual install instructions you should
be able to muddle through.

MS


Adam wrote:
 > Daniele,
 >
 > How do you fix the problem? I meet the same problem as you.
 >
 >
 >
 >
 > On 10/17/06, *Daniele Munaretto* < [EMAIL PROTECTED]

 > >> wrote:
 >
 > Hi Michael,
 > I've found the problem right in usr/local folder.
 > It's strange but the sub-folders avr, lib, include, info,
share and bin
 > in tinyos-1.x (from a pc which runs only tinyos-1.x) are
different than
 > the tinyos-2.x's ones (for example avr folder is empty here).
 > So to switch correctly from one to other version, i need not
only to
 > change PATHS, but also these sub-folders..quite annoying but it
 > works fine!
 >
 > If you have any ideas about this, it will be really appreciated
 > However many thanks Michael!
 > Daniele
 >
 >
 > Michael Schippling wrote:
 >  > The functions in question are defined in the AVR header files,
 > not TOS.
 >  > You may have messed up the access to /usr/local/avr
somehow. Or does
 >  > T2 use a different AVR version?
 >  > MS
 >  >
 >  >
 >
 > ___
 > Tinyos-help mailing list
 > Tinyos-help@Millennium.Berkeley.EDU

 > >
 >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 > <
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>
 >
 >



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-28 Thread Adam
Michael,
 
Thank you. Here is the problem:
 
I can compile 1.x application with "make telosb", but not "make micaz" -- show following errors (how to correct it): 
 
/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: warning: `CCATimer.start' called asynchronously from `CCA.startWait'/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning: `Send.sendDone 
' called asynchronously from `sendFailed'/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages:/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown opcode 
 `state'/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown opcode `state'/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unrecognized s 
ymbol type ""/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown opcode `state'/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: expected comma 
 after name `CC2420ControlM' in .size directive
There are about 100 lines like this - omit here to save space...
 
 
 
On 10/27/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
Better send the actual commands and errors...I don't know what the "it" that is complaining is.
MSAdam wrote:> I tried to reinstall all avr related tools as in> http://www.tinyos.net/tinyos-1.x/doc/install.html>> It does not solve this problem, it will complain saying missing
> dependencies libxxx.o files.>>> On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]> [EMAIL PROTECTED]
>> wrote:>> I just suffered through a mostly pointless reload of cygwin> done in a misguided attempt to get gcc working for a little> JNI foo...anyway, I got all the avr rpms from under here:
> http://www.tinyos.net/download.html> If you look at the manual install instructions you should> be able to muddle through.>
> MS>>> Adam wrote:>  > Daniele,>  >>  > How do you fix the problem? I meet the same problem as you.>  >>  >>  >
>  >>  > On 10/17/06, *Daniele Munaretto* < [EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>  > [EMAIL PROTECTED]> [EMAIL PROTECTED]
>>> wrote:>  >>  > Hi Michael,>  > I've found the problem right in usr/local folder.>  > It's strange but the sub-folders avr, lib, include, info,
> share and bin>  > in tinyos-1.x (from a pc which runs only tinyos-1.x) are> different than>  > the tinyos-2.x's ones (for example avr folder is empty here).>  > So to switch correctly from one to other version, i need not
> only to>  > change PATHS, but also these sub-folders..quite annoying but it>  > works fine!>  >>  > If you have any ideas about this, it will be really appreciated
>  > However many thanks Michael!>  > Daniele>  >>  >>  > Michael Schippling wrote:>  >  > The functions in question are defined in the AVR header files,
>  > not TOS.>  >  > You may have messed up the access to /usr/local/avr> somehow. Or does>  >  > T2 use a different AVR version?>  >  > MS
>  >  >>  >  >>  >>  > ___>  > Tinyos-help mailing list>  > 
Tinyos-help@Millennium.Berkeley.EDU> Tinyos-help@Millennium.Berkeley.EDU>>  > 
Tinyos-help@Millennium.Berkeley.EDU> Tinyos-help@Millennium.Berkeley.EDU>>>  >> 
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>  > <> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>  >>  >>>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-28 Thread Michael Schippling

This has now officially gone way beyond my expertise, if any...

Since those seem to be assembler errors (err...what happened to the
"missing dependencies libxxx.o files" errors you mentioned...?),
and the telos uses a different assembler, I'd still guess that
your avr tools are not entirely there, there. Perhaps your path
is not set correctly? I don't know what the difference between
T1 and T2 is vis the tools, or anything else actually.

You could try adding a "-v" to the nesc line and see if it
has anything to say about what it's doing.

I do remember seeing reports of similar error messages in the
help list, so I hope someone has figured it out and will answer...
MS


Adam wrote:

Michael,
 
Thank you. Here is the problem:
 
I can compile 1.x application with "make telosb", but not "make micaz" 
-- show following errors (how to correct it):
 
/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: warning: 
`CCATime

r.start' called asynchronously from `CCA.startWait'
/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning: 
`Send.sendDone

' called asynchronously from `sendFailed'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages:
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: 
unrecognized s

ymbol type ""
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: expected 
comma

 after name `CC2420ControlM' in .size directive

There are about 100 lines like this - omit here to save space...

 
 



 
On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


Better send the actual commands and errors...
I don't know what the "it" that is complaining is.
MS


Adam wrote:
 > I tried to reinstall all avr related tools as in
 > http://www.tinyos.net/tinyos-1.x/doc/install.html
 >
 > It does not solve this problem, it will complain saying missing
 > dependencies libxxx.o files.
 >
 >
 > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]

 > >> wrote:
 >
 > I just suffered through a mostly pointless reload of cygwin
 > done in a misguided attempt to get gcc working for a little
 > JNI foo...anyway, I got all the avr rpms from under here:
 > http://www.tinyos.net/download.html
 > If you look at the manual install instructions you should
 > be able to muddle through.
 >
 > MS
 >
 >
 > Adam wrote:
 >  > Daniele,
 >  >
 >  > How do you fix the problem? I meet the same problem as you.
 >  >
 >  >
 >  >
 >  >
 >  > On 10/17/06, *Daniele Munaretto* <
[EMAIL PROTECTED] 
 > mailto:[EMAIL PROTECTED]>>
 >  > 
 >   >
 >  > Hi Michael,
 >  > I've found the problem right in usr/local folder.
 >  > It's strange but the sub-folders avr, lib, include, info,
 > share and bin
 >  > in tinyos-1.x (from a pc which runs only tinyos-1.x) are
 > different than
 >  > the tinyos-2.x's ones (for example avr folder is empty
here).
 >  > So to switch correctly from one to other version, i
need not
 > only to
 >  > change PATHS, but also these sub-folders..quite
annoying but it
 >  > works fine!
 >  >
 >  > If you have any ideas about this, it will be really
appreciated
 >  > However many thanks Michael!
 >  > Daniele
 >  >
 >  >
 >  > Michael Schippling wrote:
 >  >  > The functions in question are defined in the AVR
header files,
 >  > not TOS.
 >  >  > You may have messed up the access to /usr/local/avr
 > somehow. Or does
 >  >  > T2 use a different AVR version?
 >  >  > MS
 >  >  >
 >  >  >
 >  >
 >  > ___
 >  > Tinyos-help mailing list
 >  > Tinyos-help@Millennium.Berkeley.EDU

 > >
 >  > mailto:Tinyos-help@Millennium.Berkeley.EDU>
 > >>
 >  >
 >
https://ma

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-28 Thread Adam
Michael,
 
Thanks a lot for trying to help. I tried to copy the avr directory from another working computer, still does not solve this problem.
 
Then, I tried to re-install tinyos-tools-1.x, it will complaint as following:
 
Adam@/opt>rpm --ignoreos --force -Uvh tinyos-tools-1.1.0-1.i386.rpmerror: Failed dependencies:    /usr/bin/perl is needed by tinyos-tools-1.1.0-1    libc.so.6 is needed by tinyos-tools-1.1.0-1
    libc.so.6(GLIBC_2.0) is needed by tinyos-tools-1.1.0-1    libc.so.6(GLIBC_2.1) is needed by tinyos-tools-1.1.0-1    libc.so.6(GLIBC_2.1.3) is needed by tinyos-tools-1.1.0-1    libgcc_s.so.1 is needed by 
tinyos-tools-1.1.0-1    libgcc_s.so.1(GCC_3.0) is needed by tinyos-tools-1.1.0-1    libm.so.6 is needed by tinyos-tools-1.1.0-1    libstdc++.so.5 is needed by tinyos-tools-1.1.0-1    libstdc++.so.5(CXXABI_1.2) is needed by 
tinyos-tools-1.1.0-1    libstdc++.so.5(GLIBCPP_3.2) is needed by tinyos-tools-1.1.0-1    perl(strict) is needed by tinyos-tools-1.1.0-1    tinyos-tools >= 1.2.2 is needed by (installed) tinyos-2.0.0beta2-3
 
On 10/28/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
This has now officially gone way beyond my expertise, if any...Since those seem to be assembler errors (err...what happened to the
"missing dependencies libxxx.o files" errors you mentioned...?),and the telos uses a different assembler, I'd still guess thatyour avr tools are not entirely there, there. Perhaps your pathis not set correctly? I don't know what the difference between
T1 and T2 is vis the tools, or anything else actually.You could try adding a "-v" to the nesc line and see if ithas anything to say about what it's doing.I do remember seeing reports of similar error messages in the
help list, so I hope someone has figured it out and will answer...MSAdam wrote:> Michael,>> Thank you. Here is the problem:>> I can compile 1.x application with "make telosb", but not "make micaz"
> -- show following errors (how to correct it):>> /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: warning:> `CCATime> r.start' called asynchronously from `CCA.startWait'
> /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:> `Send.sendDone> ' called asynchronously from `sendFailed'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages:
> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown> opcode>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown> opcode>  `state'
> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:> unrecognized s> ymbol type ""> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown> opcode
>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: expected> comma>  after name `CC2420ControlM' in .size directive>> There are about 100 lines like this - omit here to save space...
>>> On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]> [EMAIL PROTECTED]
>> wrote:>> Better send the actual commands and errors...> I don't know what the "it" that is complaining is.> MS>>> Adam wrote:>  > I tried to reinstall all avr related tools as in
>  > http://www.tinyos.net/tinyos-1.x/doc/install.html>  >>  > It does not solve this problem, it will complain saying missing
>  > dependencies libxxx.o files.>  >>  >>  > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>  > [EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:>  >>  > I just suffered through a mostly pointless reload of cygwin
>  > done in a misguided attempt to get gcc working for a little>  > JNI foo...anyway, I got all the avr rpms from under here:>  > 
http://www.tinyos.net/download.html>  > If you look at the manual install instructions you should>  > be able to muddle through.>  >>  > MS>  >
>  >>  > Adam wrote:>  >  > Daniele,>  >  >>  >  > How do you fix the problem? I meet the same problem as you.>  >  >
>  >  >>  >  >>  >  >>  >  > On 10/17/06, *Daniele Munaretto* <> [EMAIL PROTECTED]
 [EMAIL PROTECTED]>>  > [EMAIL PROTECTED]> [EMAIL PROTECTED]>>>  >  > [EMAIL PROTECTED]> [EMAIL PROTECTED]>>  > [EMAIL PROTECTED]> 
[EMAIL PROTECTED] wrote:>  >  >>  >  > Hi Michael,>  >  > I've found the problem right in usr/local folder.>  >  > It's strange but the sub-folders avr, lib, include, info,
>  > share and bin>  >  > in tinyos-1.x (from a pc which runs only tinyos-1.x) are>  > different than>  >  > the tinyos-2.x's ones (for example avr folder is empty
> here).>  >  > So to switch correctly from one to other version, i> need not>  > only to>  >  > change PATHS, but also these sub-folders..

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-28 Thread Adam
If I try to uninstall tinyos-tools-1.2.2, it says
 
Adam@/opt>rpm -e tinyos-tools-1.2.2-1error: Failed dependencies:    /bin/sh is needed by (installed) mspgcc-win32tinyos-20041204-2    /bin/sh is needed by (installed) task-tinydb-1.1.3July2004cvs-1
    /bin/sh is needed by (installed) mate-asvm-2.2.1-1    /bin/sh is needed by (installed) tinyos-1.1.15Dec2005cvs-1    tinyos-tools >= 1.1.0 is needed by (installed) tinyos-1.1.15Dec2005cvs-1
 
On 10/28/06, Adam <[EMAIL PROTECTED]> wrote:

Michael,
 
Thanks a lot for trying to help. I tried to copy the avr directory from another working computer, still does not solve this problem.
 
Then, I tried to re-install tinyos-tools-1.x, it will complaint as following:
 
Adam@/opt>rpm --ignoreos --force -Uvh tinyos-tools-1.1.0-1.i386.rpmerror: Failed dependencies:    /usr/bin/perl is needed by tinyos-tools-1.1.0-1    libc.so.6 is needed by tinyos-tools-1.1.0-1
     libc.so.6(GLIBC_2.0) is needed by tinyos-tools-1.1.0-1    libc.so.6(GLIBC_2.1) is needed by tinyos-tools-1.1.0-1    libc.so.6(GLIBC_2.1.3) is needed by tinyos-tools-1.1.0-1    libgcc_s.so.1 is needed by 
tinyos-tools-1.1.0-1    libgcc_s.so.1(GCC_3.0) is needed by tinyos-tools-1.1.0-1    libm.so.6 is needed by tinyos-tools-1.1.0-1    libstdc++.so.5 is needed by tinyos-tools-1.1.0-1    libstdc++.so.5(CXXABI_1.2) is needed by 
tinyos-tools-1.1.0-1    libstdc++.so.5(GLIBCPP_3.2) is needed by tinyos-tools-1.1.0-1    perl(strict) is needed by tinyos-tools-1.1.0-1    tinyos-tools >= 1.2.2 is needed by (installed) tinyos-2.0.0beta2-3
  

On 10/28/06, Michael Schippling <[EMAIL PROTECTED]
> wrote: 
This has now officially gone way beyond my expertise, if any...Since those seem to be assembler errors (err...what happened to the 
"missing dependencies libxxx.o files" errors you mentioned...?),and the telos uses a different assembler, I'd still guess thatyour avr tools are not entirely there, there. Perhaps your pathis not set correctly? I don't know what the difference between 
T1 and T2 is vis the tools, or anything else actually.You could try adding a "-v" to the nesc line and see if ithas anything to say about what it's doing.I do remember seeing reports of similar error messages in the 
help list, so I hope someone has figured it out and will answer...MSAdam wrote:> Michael,>> Thank you. Here is the problem:>> I can compile 1.x application with "make telosb", but not "make micaz" 
> -- show following errors (how to correct it):>> /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: warning:> `CCATime> r.start' called asynchronously from `CCA.startWait'
> /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:> `Send.sendDone> ' called asynchronously from `sendFailed'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages: 
> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown> opcode>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown> opcode>  `state' 
> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:> unrecognized s> ymbol type ""> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown> opcode
>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: expected> comma>  after name `CC2420ControlM' in .size directive>> There are about 100 lines like this - omit here to save space... 
>>> On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]
> [EMAIL PROTECTED] >> wrote:>> Better send the actual commands and errors...
> I don't know what the "it" that is complaining is.> MS>>> Adam wrote:>  > I tried to reinstall all avr related tools as in >  > 
http://www.tinyos.net/tinyos-1.x/doc/install.html>  >>  > It does not solve this problem, it will complain saying missing >  > dependencies libxxx.o files.>  >
>  >>  > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]>  [EMAIL PROTECTED]>>  > 
[EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:>  >>  > I just suffered through a mostly pointless reload of cygwin 
>  > done in a misguided attempt to get gcc working for a little>  > JNI foo...anyway, I got all the avr rpms from under here:>  > 
http://www.tinyos.net/download.html>  > If you look at the manual install instructions you should>  > be able to muddle through.>  >>  > MS>  > 
>  >>  > Adam wrote:>  >  > Daniele,>  >  >>  >  > How do you fix the problem? I meet the same problem as you.>  >  > 
>  >  >>  >  >>  >  >>  >  > On 10/17/06, *Daniele Munaretto* <> 
[EMAIL PROTECTED] [EMAIL PROTECTED]>>  > [EMAIL PROTECTED]> 
[EMAIL PROTECTED]>>>  >  > [EMAIL PROTECTED]
> [EMAIL PROTECTED]>>  > 
[EMAIL PROTECTED]>  [EMAIL PROTECTED] wrote:
>  >  >>  >  > Hi Mic

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Michael Schippling

try using this option to rpm:
   --nodeps don't verify package dependencies

Also I have been quite successful at copying an entire working cygwin
(with TOStools) from one machine to another. Always with the same root
dir in my case, though I don't know if it matters. There are two
Windows registry entries for CYGNUS, but if you have already installed
on the machine they should be set.

MS

Adam wrote:

Michael,
 
Thanks a lot for trying to help. I tried to copy the avr directory from 
another working computer, still does not solve this problem.
 
Then, I tried to re-install tinyos-tools-1.x, it will complaint as 
following:
 
Adam@/opt>rpm --ignoreos --force -Uvh tinyos-tools-1.1.0-1.i386.rpm

error: Failed dependencies:
/usr/bin/perl is needed by tinyos-tools-1.1.0-1
libc.so.6 is needed by tinyos-tools-1.1.0-1
libc.so.6(GLIBC_2.0) is needed by tinyos-tools-1.1.0-1
libc.so.6(GLIBC_2.1) is needed by tinyos-tools-1.1.0-1
libc.so.6(GLIBC_2.1.3) is needed by tinyos-tools-1.1.0-1
libgcc_s.so.1 is needed by tinyos-tools-1.1.0-1
libgcc_s.so.1(GCC_3.0) is needed by tinyos-tools-1.1.0-1
libm.so.6 is needed by tinyos-tools-1.1.0-1
libstdc++.so.5 is needed by tinyos-tools-1.1.0-1
libstdc++.so.5(CXXABI_1.2) is needed by tinyos-tools-1.1.0-1
libstdc++.so.5(GLIBCPP_3.2) is needed by tinyos-tools-1.1.0-1
perl(strict) is needed by tinyos-tools-1.1.0-1
tinyos-tools >= 1.2.2 is needed by (installed) tinyos-2.0.0beta2-3

 
On 10/28/06, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


This has now officially gone way beyond my expertise, if any...

Since those seem to be assembler errors (err...what happened to the
"missing dependencies libxxx.o files" errors you mentioned...?),
and the telos uses a different assembler, I'd still guess that
your avr tools are not entirely there, there. Perhaps your path
is not set correctly? I don't know what the difference between
T1 and T2 is vis the tools, or anything else actually.

You could try adding a "-v" to the nesc line and see if it
has anything to say about what it's doing.

I do remember seeing reports of similar error messages in the
help list, so I hope someone has figured it out and will answer...
MS


Adam wrote:
 > Michael,
 >
 > Thank you. Here is the problem:
 >
 > I can compile 1.x application with "make telosb", but not "make
micaz"
 > -- show following errors (how to correct it):
 >
 > /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:
warning:
 > `CCATime
 > r.start' called asynchronously from `CCA.startWait'
 > /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:
 > `Send.sendDone
 > ' called asynchronously from `sendFailed'
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler
messages:
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error:
unknown
 > opcode
 >  `state'
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error:
unknown
 > opcode
 >  `state'
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:
 > unrecognized s
 > ymbol type ""
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:
unknown
 > opcode
 >  `state'
 > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error:
expected
 > comma
 >  after name `CC2420ControlM' in .size directive
 >
 > There are about 100 lines like this - omit here to save space...
 >
 >
 >
 >
 >
 >
 > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]

 > >> wrote:
 >
 > Better send the actual commands and errors...
 > I don't know what the "it" that is complaining is.
 > MS
 >
 >
 > Adam wrote:
 >  > I tried to reinstall all avr related tools as in
 >  > http://www.tinyos.net/tinyos-1.x/doc/install.html
 >  >
 >  > It does not solve this problem, it will complain saying
missing
 >  > dependencies libxxx.o files.
 >  >
 >  >
 >  > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]

 > mailto:[EMAIL PROTECTED]>>
 >  > 
  >
 >  > I just suffered through a mostly pointless reload of
cygwin
 >  > done in a misguided attempt to get gcc working for a
little
 >  > JNI foo...anyway, I got all the avr rpms from under here:
 >  > http://www.tinyos.net/download.html
 >  > If you look at the manual install instructions you should
 >  > b

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Philip Levis

On Oct 28, 2006, at 9:45 AM, Adam wrote:


Michael,

Thank you. Here is the problem:

I can compile 1.x application with "make telosb", but not "make  
micaz" -- show following errors (how to correct it):


/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:  
warning: `CCATime

r.start' called asynchronously from `CCA.startWait'
/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:  
`Send.sendDone

' called asynchronously from `sendFailed'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler  
messages:
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error:  
unknown opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error:  
unknown opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:  
unrecognized s

ymbol type ""
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:  
unknown opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error:  
expected comma

 after name `CC2420ControlM' in .size directive
There are about 100 lines like this - omit here to save space...




nesC uses $ in identifiers.

Default versions of the avr assembler do not recognize it. But  
there's a simple compilation flag in the assembler (something like  
"use_dollar") which lets them work. So the TinyOS avr distributions  
have this enabled.


It looks like you have a version that doesn't have it enabled. Check  
which version of avr-gcc is being called?


This has come up many times in the past on the list; I'd search the  
archives.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Michael Schippling

Yes, it's come up many times...
however I've never seen this '$' explanation before...
thanks
MS


Philip Levis wrote:

On Oct 28, 2006, at 9:45 AM, Adam wrote:


Michael,

Thank you. Here is the problem:

I can compile 1.x application with "make telosb", but not "make micaz" 
-- show following errors (how to correct it):


/opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161: 
warning: `CCATime

r.start' called asynchronously from `CCA.startWait'
/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning: 
`Send.sendDone

' called asynchronously from `sendFailed'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages:
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: 
unrecognized s

ymbol type ""
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown 
opcode

 `state'
/cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error: 
expected comma

 after name `CC2420ControlM' in .size directive
There are about 100 lines like this - omit here to save space...




nesC uses $ in identifiers.

Default versions of the avr assembler do not recognize it. But there's a 
simple compilation flag in the assembler (something like "use_dollar") 
which lets them work. So the TinyOS avr distributions have this enabled.


It looks like you have a version that doesn't have it enabled. Check 
which version of avr-gcc is being called?


This has come up many times in the past on the list; I'd search the 
archives.


Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Joe Polastre

The $ is silly and after years of arguing against it, David Gay added
a directive to nesC that lets you set an alternate identifier instead
of having to recompile a toolchain without the $ identifier.

-Joe

On 10/29/06, Michael Schippling <[EMAIL PROTECTED]> wrote:

Yes, it's come up many times...
however I've never seen this '$' explanation before...
thanks
MS


Philip Levis wrote:
> On Oct 28, 2006, at 9:45 AM, Adam wrote:
>
>> Michael,
>>
>> Thank you. Here is the problem:
>>
>> I can compile 1.x application with "make telosb", but not "make micaz"
>> -- show following errors (how to correct it):
>>
>> /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:
>> warning: `CCATime
>> r.start' called asynchronously from `CCA.startWait'
>> /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:
>> `Send.sendDone
>> ' called asynchronously from `sendFailed'
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler messages:
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error: unknown
>> opcode
>>  `state'
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error: unknown
>> opcode
>>  `state'
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:
>> unrecognized s
>> ymbol type ""
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error: unknown
>> opcode
>>  `state'
>> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error:
>> expected comma
>>  after name `CC2420ControlM' in .size directive
>> There are about 100 lines like this - omit here to save space...
>>
>>
>
> nesC uses $ in identifiers.
>
> Default versions of the avr assembler do not recognize it. But there's a
> simple compilation flag in the assembler (something like "use_dollar")
> which lets them work. So the TinyOS avr distributions have this enabled.
>
> It looks like you have a version that doesn't have it enabled. Check
> which version of avr-gcc is being called?
>
> This has come up many times in the past on the list; I'd search the
> archives.
>
> Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Adam
Michael,
 
Thanks a lot. I successfully solve this problem by rpm install tinyos-tools-1.1.0 using nodeps. After I run toscheck, only warning is that:
 
--> WARNING: The uisp version found by toscheck is not '20030820tinyos'. Pleaseupdate your uisp version. The source for uisp version 20030820tinyos can be found in the TinyOS 1.1.0 distribution. 
 
I never see a rpm for this. Do you happen to know where to download?
 
Thanks 
On 10/29/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
try using this option to rpm:   --nodeps don't verify package dependenciesAlso I have been quite successful at copying an entire working cygwin
(with TOStools) from one machine to another. Always with the same rootdir in my case, though I don't know if it matters. There are twoWindows registry entries for CYGNUS, but if you have already installedon the machine they should be set.
MSAdam wrote:> Michael,>> Thanks a lot for trying to help. I tried to copy the avr directory from> another working computer, still does not solve this problem.>> Then, I tried to re-install 
tinyos-tools-1.x, it will complaint as> following:>> Adam@/opt>rpm --ignoreos --force -Uvh tinyos-tools-1.1.0-1.i386.rpm> error: Failed dependencies:> /usr/bin/perl is needed by 
tinyos-tools-1.1.0-1> libc.so.6 is needed by tinyos-tools-1.1.0-1> libc.so.6(GLIBC_2.0) is needed by tinyos-tools-1.1.0-1> libc.so.6(GLIBC_2.1) is needed by tinyos-tools-1.1.0-1
> libc.so.6(GLIBC_2.1.3) is needed by tinyos-tools-1.1.0-1> libgcc_s.so.1 is needed by tinyos-tools-1.1.0-1> libgcc_s.so.1(GCC_3.0) is needed by tinyos-tools-1.1.0-1> 
libm.so.6 is needed by tinyos-tools-1.1.0-1> libstdc++.so.5 is needed by tinyos-tools-1.1.0-1> libstdc++.so.5(CXXABI_1.2) is needed by tinyos-tools-1.1.0-1> libstdc++.so.5(GLIBCPP_3.2) is needed by 
tinyos-tools-1.1.0-1> perl(strict) is needed by tinyos-tools-1.1.0-1> tinyos-tools >= 1.2.2 is needed by (installed) tinyos-2.0.0beta2-3>>> On 10/28/06, *Michael Schippling* <
[EMAIL PROTECTED]> [EMAIL PROTECTED]>> wrote:>> This has now officially gone way beyond my expertise, if any...
>> Since those seem to be assembler errors (err...what happened to the> "missing dependencies libxxx.o files" errors you mentioned...?),> and the telos uses a different assembler, I'd still guess that
> your avr tools are not entirely there, there. Perhaps your path> is not set correctly? I don't know what the difference between> T1 and T2 is vis the tools, or anything else actually.
>> You could try adding a "-v" to the nesc line and see if it> has anything to say about what it's doing.>> I do remember seeing reports of similar error messages in the
> help list, so I hope someone has figured it out and will answer...> MS>>> Adam wrote:>  > Michael,>  >>  > Thank you. Here is the problem:
>  >>  > I can compile 1.x application with "make telosb", but not "make> micaz">  > -- show following errors (how to correct it):>  >
>  > /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:> warning:>  > `CCATime>  > r.start' called asynchronously from `CCA.startWait'>  > /opt/tinyos-
1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:>  > `Send.sendDone>  > ' called asynchronously from `sendFailed'>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler
> messages:>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error:> unknown>  > opcode>  >  `state'>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error:
> unknown>  > opcode>  >  `state'>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:>  > unrecognized s>  > ymbol type ""
>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:> unknown>  > opcode>  >  `state'>  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error:
> expected>  > comma>  >  after name `CC2420ControlM' in .size directive>  >>  > There are about 100 lines like this - omit here to save space...>  >
>  >>  >>  >>  >>  >>  > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]> [EMAIL PROTECTED]>>  > [EMAIL PROTECTED] [EMAIL PROTECTED]>>> wrote:
>  >>  > Better send the actual commands and errors...>  > I don't know what the "it" that is complaining is.>  > MS>  >>  >
>  > Adam wrote:>  >  > I tried to reinstall all avr related tools as in>  >  > http://www.tinyos.net/tinyos-1.x/doc/install.html
>  >  >>  >  > It does not solve this problem, it will complain saying> missing>  >  > dependencies libxxx.o files.>  >  >
>  >  >>  >  > On 10/27/06, *Michael Schippling* <[EMAIL PROTECTED]> [EMAIL PROTECTED]
>>  > [EMAIL PROTECTED

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-29 Thread Adam
This is my avr-gcc version -- seems to be current.
 
> avr-gcc -v
Reading specs from /usr/local/lib/gcc-lib/avr/3.3-tinyos/specsConfigured with: ./configure --target=avr --disable-nlsThread model: singlegcc version 3.3-tinyos 
On 10/29/06, Philip Levis <[EMAIL PROTECTED]> wrote:
On Oct 28, 2006, at 9:45 AM, Adam wrote:> Michael,>> Thank you. Here is the problem:
>> I can compile 1.x application with "make telosb", but not "make> micaz" -- show following errors (how to correct it):>> /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:
> warning: `CCATime> r.start' called asynchronously from `CCA.startWait'> /opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116: warning:> `Send.sendDone> ' called asynchronously from `sendFailed'
> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler> messages:> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error:> unknown opcode>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293: Error:
> unknown opcode>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:> unrecognized s> ymbol type ""> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:
> unknown opcode>  `state'> /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:296: Error:> expected comma>  after name `CC2420ControlM' in .size directive> There are about 100 lines like this - omit here to save space...
>>nesC uses $ in identifiers.Default versions of the avr assembler do not recognize it. Butthere's a simple compilation flag in the assembler (something like"use_dollar") which lets them work. So the TinyOS avr distributions
have this enabled.It looks like you have a version that doesn't have it enabled. Checkwhich version of avr-gcc is being called?This has come up many times in the past on the list; I'd search the
archives.Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-30 Thread Michael Schippling

This is in the --help of my version:

vincent:data [175] uisp --help
uisp version 20030820tinyos
(C) 1997-1999 Uros Platise, 2000-2003 Marek Michalkiewicz
(c) 2003 Philip Buonadonna, Intel Corporation
(c) 2003   ,Crossbow Technology



Report bugs to: Maintainers 
Updates:http://savannah.nongnu.org/projects/uisp


But I don't remember where I got it from...I would have guessed
tinyos-tools or nescc rpms. You could rummage through the xbow
site and see if they have a link for it.

MS


Adam wrote:

Michael,
 
Thanks a lot. I successfully solve this problem by rpm install 
tinyos-tools-1.1.0 using nodeps. After I run toscheck, only warning is that:
 
--> WARNING: The uisp version found by toscheck is not '20030820tinyos'. 
Please
update your uisp version. The source for uisp version 20030820tinyos can 
be foun

d in the TinyOS 1.1.0 distribution.
 
I never see a rpm for this. Do you happen to know where to download?
 
Thanks


 
On 10/29/06, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


try using this option to rpm:
   --nodeps don't verify package dependencies

Also I have been quite successful at copying an entire working cygwin
(with TOStools) from one machine to another. Always with the same root
dir in my case, though I don't know if it matters. There are two
Windows registry entries for CYGNUS, but if you have already installed
on the machine they should be set.

MS

Adam wrote:
 > Michael,
 >
 > Thanks a lot for trying to help. I tried to copy the avr
directory from
 > another working computer, still does not solve this problem.
 >
 > Then, I tried to re-install tinyos-tools-1.x, it will complaint as
 > following:
 >
 > Adam@/opt>rpm --ignoreos --force -Uvh tinyos-tools-1.1.0-1.i386.rpm
 > error: Failed dependencies:
 > /usr/bin/perl is needed by tinyos-tools-1.1.0-1
 > libc.so.6 is needed by tinyos-tools-1.1.0-1
 > libc.so.6(GLIBC_2.0) is needed by tinyos-tools-1.1.0-1
 > libc.so.6(GLIBC_2.1) is needed by tinyos-tools-1.1.0-1
 > libc.so.6(GLIBC_2.1.3) is needed by tinyos-tools-1.1.0-1
 > libgcc_s.so.1 is needed by tinyos-tools-1.1.0-1
 > libgcc_s.so.1(GCC_3.0) is needed by tinyos-tools-1.1.0-1
 > libm.so.6 is needed by tinyos-tools-1.1.0-1
 > libstdc++.so.5 is needed by tinyos-tools-1.1.0-1
 > libstdc++.so.5(CXXABI_1.2) is needed by tinyos-tools-1.1.0-1
 > libstdc++.so.5(GLIBCPP_3.2) is needed by tinyos-tools-1.1.0-1
 > perl(strict) is needed by tinyos-tools-1.1.0-1
 > tinyos-tools >= 1.2.2 is needed by (installed)
tinyos-2.0.0beta2-3
 >
 >
 > On 10/28/06, *Michael Schippling* < [EMAIL PROTECTED]

 > >> wrote:
 >
 > This has now officially gone way beyond my expertise, if any...
 >
 > Since those seem to be assembler errors (err...what happened
to the
 > "missing dependencies libxxx.o files" errors you mentioned...?),
 > and the telos uses a different assembler, I'd still guess that
 > your avr tools are not entirely there, there. Perhaps your path
 > is not set correctly? I don't know what the difference between
 > T1 and T2 is vis the tools, or anything else actually.
 >
 > You could try adding a "-v" to the nesc line and see if it
 > has anything to say about what it's doing.
 >
 > I do remember seeing reports of similar error messages in the
 > help list, so I hope someone has figured it out and will
answer...
 > MS
 >
 >
 > Adam wrote:
 >  > Michael,
 >  >
 >  > Thank you. Here is the problem:
 >  >
 >  > I can compile 1.x application with "make telosb", but not
"make
 > micaz"
 >  > -- show following errors (how to correct it):
 >  >
 >  > /opt/tinyos-1.x/tos/platform/micaz/HPLCC2420InterruptM.nc:161:
 > warning:
 >  > `CCATime
 >  > r.start' called asynchronously from `CCA.startWait'
 >  > /opt/tinyos- 1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116:
warning:
 >  > `Send.sendDone
 >  > ' called asynchronously from `sendFailed'
 >  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s: Assembler
 > messages:
 >  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:292: Error:
 > unknown
 >  > opcode
 >  >  `state'
 >  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:293:
Error:
 > unknown
 >  > opcode
 >  >  `state'
 >  > /cygdrive/c/DOCUME~1/Adam/LOCALS~1/Temp/ccjujniv.s:295: Error:
 >  > unrecognized s
 >  > ymbol type ""
 > 

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-30 Thread Adam
I tried to copy tools/src/uisp from another machine and recompile -- it shows similar error either 
/opt/tinyos-1.x/tools/src/uisp/src>makec++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -c Serial.CSerial.C: In member function `void TSerial::OpenPort()':Serial.C:243: warning: right-hand operand of comma has no effect
Serial.C:244: warning: right-hand operand of comma has no effectmake: *** [Serial.o] Error 1 
On 10/30/06, Adam <[EMAIL PROTECTED]> wrote:

Michael,
 
uisp can not install in my machine successfully due to unknown reasons ...
=
make  all-ammake[1]: Entering directory `/opt/tinyos-1.x/tools/src/uisp-20050207/src'if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT Serial.o -MD -MP-MF ".deps/Serial.Tpo" \  -c -o 
Serial.o `test -f 'Serial.C' || echo './'`Serial.C; \then mv -f ".deps/Serial.Tpo" ".deps/Serial.Po"; \else rm -f ".deps/Serial.Tpo"; exit 1; \fiSerial.C: In constructor `TSerial::TSerial()': 
Serial.C:158: warning: right-hand operand of comma has no effectSerial.C:159: warning: right-hand operand of comma has no effectmake[1]: *** [Serial.o] Error 1make[1]: Leaving directory `/opt/tinyos-1.x/tools/src/uisp-20050207/src' 
make: *** [all] Error 2 

On 10/30/06, Michael Schippling <[EMAIL PROTECTED]
> wrote: 
This is in the --help of my version:vincent:data [175] uisp --helpuisp version 20030820tinyos
(C) 1997-1999 Uros Platise, 2000-2003 Marek Michalkiewicz(c) 2003 Philip Buonadonna, Intel Corporation(c) 2003   ,Crossbow TechnologyReport bugs to: Maintainers <
 uisp-dev@nongnu.org>Updates:http://savannah.nongnu.org/projects/uisp
But I don't remember where I got it from...I would have guessedtinyos-tools or nescc rpms. You could rummage through the xbowsite and see if they have a link for it.MS

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problem on switching back to tinyos-1.x

2006-10-31 Thread Michael Schippling

sorry, I've never tried to compile it.
There _must_ be an install file on the
xbow or tinyos site someplace...
did you try Google?
MS


Adam wrote:
I tried to copy tools/src/uisp from another machine and recompile -- it 
shows similar error either
 
/opt/tinyos-1.x/tools/src/uisp/src>make

c++ -DHAVE_CONFIG_H -I. -I. -I.-Wall -Werror -g -O2 -c Serial.C
Serial.C: In member function `void TSerial::OpenPort()':
Serial.C:243: warning: right-hand operand of comma has no effect
Serial.C:244: warning: right-hand operand of comma has no effect
make: *** [Serial.o] Error 1
 
On 10/30/06, *Adam* <[EMAIL PROTECTED] > 
wrote:


Michael,
 
uisp can not install in my machine successfully due to unknown

reasons ...
=
make  all-am
make[1]: Entering directory
`/opt/tinyos-1.x/tools/src/uisp-20050207/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.-Wall -Werror -g -O2 -MT
Serial.o -MD -MP
-MF ".deps/Serial.Tpo" \
  -c -o Serial.o `test -f 'Serial.C' || echo './'`Serial.C; \
then mv -f ".deps/Serial.Tpo" ".deps/Serial.Po"; \
else rm -f ".deps/Serial.Tpo"; exit 1; \
fi
Serial.C: In constructor `TSerial::TSerial()':
Serial.C:158: warning: right-hand operand of comma has no effect
Serial.C:159: warning: right-hand operand of comma has no effect
make[1]: *** [Serial.o] Error 1
make[1]: Leaving directory
`/opt/tinyos-1.x/tools/src/uisp-20050207/src'
make: *** [all] Error 2

 
On 10/30/06, *Michael Schippling* <[EMAIL PROTECTED]

> wrote:

This is in the --help of my version:

vincent:data [175] uisp --help
uisp version 20030820tinyos
(C) 1997-1999 Uros Platise, 2000-2003 Marek Michalkiewicz
(c) 2003 Philip Buonadonna, Intel Corporation
(c) 2003   ,Crossbow Technology



Report bugs to: Maintainers < uisp-dev@nongnu.org
>
Updates:http://savannah.nongnu.org/projects/uisp


But I don't remember where I got it from...I would have guessed
tinyos-tools or nescc rpms. You could rummage through the xbow
site and see if they have a link for it.

MS



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help