[Tinyos-help] Programming problem

2006-07-10 Thread Sankar Gorthi

It's not your typical Flash error of death, but it is just as frustrating.

Steps adhered to:
1. Install tinyos-1.1.0 with cygwin, etc. (typical installation)
2. Try programming mica2 with Blink - works fine.
2. Upgrade Cygwin with the latest setup file from www.cygwin.com
3. Upgrade nesc to nesc-1.1.2b ...
4. Upgrade tinyos to tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
5. Try programming a mica2 mote with Blink:
Result:
$ MIB510=COM4 make mica2 install
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall  
-Wshadow -DDE
F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10  
-fnesc-cfile=build/mica2/ap

p.c  Blink.nc -lm
compiled Blink to build/mica2/main.exe
   0 bytes in ROM
   0 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
installing mica2 binary
uisp -dprog=mib510 -dserial=COM4 -dpart=ATmega128 --wr_fuse_e=ff  --erase  
--uplo

ad  if=build/mica2/main.srec

At this point the programmer LED (red) glows and then nothing. Cygwin and  
the programmer board maintain this state until I hit ctrl+c to stop the  
process.


I tried installing tinyos-1.1.10 without upgrading cygwin, but it gave me  
the "__getreent" error.


I tried installing the cygwin upgrade given on the tinyos.net/download  
page. No luck.


I tried changing the programmer (to another MIB510). No luck there either.
Different mote, same problem.

Please help. Do I need to use a different version of cygwin or tinyos? I  
need to use the tinyos-1.1.10 version as it is the recommended version for  
programming the Cricket series of motes.


Sankar.

Extraneous info:
I added a PCI card to add 4 serial ports to my PC which came with none  
(NetMos Quad ports: PCI NM9845CV). The drivers for this were good and I've  
tried the ports with MATLAB, LabVIEW, Hyperlink etc. No problems there.  
Ports are installed properly. Com4 is the first port on this card.



--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


Re: [Tinyos-help] Programming problem

2006-07-10 Thread Sankar Gorthi

As you can see, the compilation results show this output:
 compiled Blink to build/mica2/main.exe
 0 bytes in ROM
 0 bytes in RAM

Is there anything in particular that can be said about this?

Sankar.


On Mon, 10 Jul 2006 18:34:01 -0500, Sankar Gorthi  
<[EMAIL PROTECTED]> wrote:


It's not your typical Flash error of death, but it is just as  
frustrating.


Steps adhered to:
1. Install tinyos-1.1.0 with cygwin, etc. (typical installation)
2. Try programming mica2 with Blink - works fine.
2. Upgrade Cygwin with the latest setup file from www.cygwin.com
3. Upgrade nesc to nesc-1.1.2b ...
4. Upgrade tinyos to tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
5. Try programming a mica2 mote with Blink:
Result:
$ MIB510=COM4 make mica2 install
 compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall  
-Wshadow -DDE
F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10  
-fnesc-cfile=build/mica2/ap

p.c  Blink.nc -lm
 compiled Blink to build/mica2/main.exe
0 bytes in ROM
0 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe  
build/mica2/main.srec

make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
 installing mica2 binary
uisp -dprog=mib510 -dserial=COM4 -dpart=ATmega128 --wr_fuse_e=ff   
--erase --uplo

ad  if=build/mica2/main.srec

At this point the programmer LED (red) glows and then nothing. Cygwin  
and the programmer board maintain this state until I hit ctrl+c to stop  
the process.


I tried installing tinyos-1.1.10 without upgrading cygwin, but it gave  
me the "__getreent" error.


I tried installing the cygwin upgrade given on the tinyos.net/download  
page. No luck.


I tried changing the programmer (to another MIB510). No luck there  
either.

Different mote, same problem.

Please help. Do I need to use a different version of cygwin or tinyos? I  
need to use the tinyos-1.1.10 version as it is the recommended version  
for programming the Cricket series of motes.


Sankar.

Extraneous info:
I added a PCI card to add 4 serial ports to my PC which came with none  
(NetMos Quad ports: PCI NM9845CV). The drivers for this were good and  
I've tried the ports with MATLAB, LabVIEW, Hyperlink etc. No problems  
there. Ports are installed properly. Com4 is the first port on this card.







--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


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


Re: [Tinyos-help] Programming problem

2006-07-11 Thread Conor Todd
Sometimes, under WinXP, I have to use something like Hyperterminal to
initially open and close the COM port to which the MIB510 is attached
before programs under Cygwin can do it.  It might just be my
laptop, though.

  - ConorOn 7/10/06, Sankar Gorthi <[EMAIL PROTECTED]> wrote:
As you can see, the compilation results show this output:  compiled Blink to build/mica2/main.exe  0 bytes in ROM  0 bytes in RAMIs there anything in particular that can be said about this?
Sankar.On Mon, 10 Jul 2006 18:34:01 -0500, Sankar Gorthi<[EMAIL PROTECTED]> wrote:> It's not your typical Flash error of death, but it is just as
> frustrating.>> Steps adhered to:> 1. Install tinyos-1.1.0 with cygwin, etc. (typical installation)> 2. Try programming mica2 with Blink - works fine.> 2. Upgrade Cygwin with the latest setup file from 
www.cygwin.com> 3. Upgrade nesc to nesc-1.1.2b ...> 4. Upgrade tinyos to tinyos-1.1.10Jan2005cvs-1.cygwin.noarch> 5. Try programming a mica2 mote with Blink:> Result:
> $ MIB510=COM4 make mica2 install>  compiling Blink to a mica2 binary> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall> -Wshadow -DDE> F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10
> -fnesc-cfile=build/mica2/ap> p.c  Blink.nc -lm>  compiled Blink to build/mica2/main.exe> 0 bytes in ROM> 0 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe> build/mica2/main.srec> make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'>  installing mica2 binary> uisp -dprog=mib510 -dserial=COM4 -dpart=ATmega128 --wr_fuse_e=ff
> --erase --uplo> ad  if=build/mica2/main.srec>> At this point the programmer LED (red) glows and then nothing. Cygwin> and the programmer board maintain this state until I hit ctrl+c to stop
> the process.>> I tried installing tinyos-1.1.10 without upgrading cygwin, but it gave> me the "__getreent" error.>> I tried installing the cygwin upgrade given on the 
tinyos.net/download> page. No luck.>> I tried changing the programmer (to another MIB510). No luck there> either.> Different mote, same problem.
>> Please help. Do I need to use a different version of cygwin or tinyos? I> need to use the tinyos-1.1.10 version as it is the recommended version> for programming the Cricket series of motes.
>> Sankar.>> Extraneous info:> I added a PCI card to add 4 serial ports to my PC which came with none> (NetMos Quad ports: PCI NM9845CV). The drivers for this were good and> I've tried the ports with MATLAB, LabVIEW, Hyperlink etc. No problems
> there. Ports are installed properly. Com4 is the first port on this card.>>--No opera plot can be sensible, for people do not sing when they arefeeling sensible. - W. H. Auden
___Tinyos-help mailing listTinyos-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] Programming problem

2006-07-11 Thread Sankar Gorthi

I used LabVIEW and MATLAB to close the ports. No change.

In my umpteenth reinstallation, I now see this behaviour:


$ MIB510=COM5 make mica2 install
mkdir -p build/mica2
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall  
-Wshadow -DDE
F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10  
-fnesc-cfile=build/mica2/app.c  Blink.nc -lm

compiled Blink to build/mica2/main.exe
1644 bytes in ROM
  48 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
installing mica2 binary
uisp -dprog=mib510 -dserial=COM5 -dpart=ATmega128 --wr_fuse_e=ff  --erase  
--upload  if=build/mica2/main.srec




Cygwin is stuck at this line as I write this email. While the programmer  
board LED doesn't glow now, Cygwin has stopped responding to Ctrl+C.


I ran TOScheck and the only error that I got was that the 'dot' was  
missing in the PATH variable.


To recant, the procedure was:
1. I installed the installation package with tinyos-1.1.0 - programs  
compile, motes programmed, all A-OK!
2. I upgrade cygwin to the version given on the tinyos website  
(cygwin-1.2a)
3. I tried programming the motes here - no response from the uisp.  
programs compile, and the build folder is populated, but the programming  
part hangs.

4. I then upgraded nesc with nesc-1.1.2b-1.cygwin.i386
5. Try programming the motes, no luck. programs compile, programmer hangs.
6. Upgraded TinyOS with tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
7. Try programming the motes, no luck again. Programs compile programmer  
hangs. (output shown above). Atleast the bytes in ROM and RAM aren't 0  
like in the previous iteration.


Please help, at wit's end.

Sankar.


On Tue, 11 Jul 2006 09:09:15 -0500, Conor Todd <[EMAIL PROTECTED]>  
wrote:



Sometimes, under WinXP, I have to use something like Hyperterminal to
initially open and close the COM port to which the MIB510 is attached  
before

programs under Cygwin can do it.  It might just be my laptop, though.

  - Conor

On 7/10/06, Sankar Gorthi <[EMAIL PROTECTED]> wrote:


As you can see, the compilation results show this output:
  compiled Blink to build/mica2/main.exe
  0 bytes in ROM
  0 bytes in RAM

Is there anything in particular that can be said about this?

Sankar.


On Mon, 10 Jul 2006 18:34:01 -0500, Sankar Gorthi
<[EMAIL PROTECTED]> wrote:

> It's not your typical Flash error of death, but it is just as
> frustrating.
>
> Steps adhered to:
> 1. Install tinyos-1.1.0 with cygwin, etc. (typical installation)
> 2. Try programming mica2 with Blink - works fine.
> 2. Upgrade Cygwin with the latest setup file from www.cygwin.com
> 3. Upgrade nesc to nesc-1.1.2b ...
> 4. Upgrade tinyos to tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
> 5. Try programming a mica2 mote with Blink:
> Result:
> $ MIB510=COM4 make mica2 install
>  compiling Blink to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall
> -Wshadow -DDE
> F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10
> -fnesc-cfile=build/mica2/ap
> p.c  Blink.nc -lm
>  compiled Blink to build/mica2/main.exe
> 0 bytes in ROM
> 0 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe
> build/mica2/main.srec
> make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
>  installing mica2 binary
> uisp -dprog=mib510 -dserial=COM4 -dpart=ATmega128 --wr_fuse_e=ff
> --erase --uplo
> ad  if=build/mica2/main.srec
>
> At this point the programmer LED (red) glows and then nothing. Cygwin
> and the programmer board maintain this state until I hit ctrl+c to  
stop

> the process.
>
> I tried installing tinyos-1.1.10 without upgrading cygwin, but it gave
> me the "__getreent" error.
>
> I tried installing the cygwin upgrade given on the tinyos.net/download
> page. No luck.
>
> I tried changing the programmer (to another MIB510). No luck there
> either.
> Different mote, same problem.
>
> Please help. Do I need to use a different version of cygwin or  
tinyos? I

> need to use the tinyos-1.1.10 version as it is the recommended version
> for programming the Cricket series of motes.
>
> Sankar.
>
> Extraneous info:
> I added a PCI card to add 4 serial ports to my PC which came with none
> (NetMos Quad ports: PCI NM9845CV). The drivers for this were good and
> I've tried the ports with MATLAB, LabVIEW, Hyperlink etc. No problems
> there. Ports are installed properly. Com4 is the first port on this
card.
>
>



--
No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden

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





--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H

Re: [Tinyos-help] Programming problem

2006-07-11 Thread Tehn Yit Chin
I am not sure if this is possible, but are you able to use a different 
programmer, like avrdude or AVRStudio, to program mote?


This may indicate that the binary is incorrectly generated.

Tehn Yit Chin
Embedded System Engineer, Grey Innovation Pty. Ltd.


Sankar Gorthi wrote:

I used LabVIEW and MATLAB to close the ports. No change.

In my umpteenth reinstallation, I now see this behaviour:


$ MIB510=COM5 make mica2 install
mkdir -p build/mica2
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall  
-Wshadow -DDE
F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10  
-fnesc-cfile=build/mica2/app.c  Blink.nc -lm

compiled Blink to build/mica2/main.exe
1644 bytes in ROM
  48 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
installing mica2 binary
uisp -dprog=mib510 -dserial=COM5 -dpart=ATmega128 --wr_fuse_e=ff  
--erase  --upload  if=build/mica2/main.srec




Cygwin is stuck at this line as I write this email. While the 
programmer  board LED doesn't glow now, Cygwin has stopped responding to 
Ctrl+C.


I ran TOScheck and the only error that I got was that the 'dot' was  
missing in the PATH variable.


To recant, the procedure was:
1. I installed the installation package with tinyos-1.1.0 - programs  
compile, motes programmed, all A-OK!
2. I upgrade cygwin to the version given on the tinyos website  
(cygwin-1.2a)
3. I tried programming the motes here - no response from the uisp.  
programs compile, and the build folder is populated, but the 
programming  part hangs.

4. I then upgraded nesc with nesc-1.1.2b-1.cygwin.i386
5. Try programming the motes, no luck. programs compile, programmer hangs.
6. Upgraded TinyOS with tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
7. Try programming the motes, no luck again. Programs compile 
programmer  hangs. (output shown above). Atleast the bytes in ROM and 
RAM aren't 0  like in the previous iteration.


Please help, at wit's end.

Sankar.


On Tue, 11 Jul 2006 09:09:15 -0500, Conor Todd <[EMAIL PROTECTED]>  
wrote:



Sometimes, under WinXP, I have to use something like Hyperterminal to
initially open and close the COM port to which the MIB510 is attached  
before

programs under Cygwin can do it.  It might just be my laptop, though.

  - Conor

On 7/10/06, Sankar Gorthi <[EMAIL PROTECTED]> wrote:



As you can see, the compilation results show this output:
  compiled Blink to build/mica2/main.exe
  0 bytes in ROM
  0 bytes in RAM

Is there anything in particular that can be said about this?

Sankar.


On Mon, 10 Jul 2006 18:34:01 -0500, Sankar Gorthi
<[EMAIL PROTECTED]> wrote:

> It's not your typical Flash error of death, but it is just as
> frustrating.
>
> Steps adhered to:
> 1. Install tinyos-1.1.0 with cygwin, etc. (typical installation)
> 2. Try programming mica2 with Blink - works fine.
> 2. Upgrade Cygwin with the latest setup file from www.cygwin.com
> 3. Upgrade nesc to nesc-1.1.2b ...
> 4. Upgrade tinyos to tinyos-1.1.10Jan2005cvs-1.cygwin.noarch
> 5. Try programming a mica2 mote with Blink:
> Result:
> $ MIB510=COM4 make mica2 install
>  compiling Blink to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall
> -Wshadow -DDE
> F_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10
> -fnesc-cfile=build/mica2/ap
> p.c  Blink.nc -lm
>  compiled Blink to build/mica2/main.exe
> 0 bytes in ROM
> 0 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe
> build/mica2/main.srec
> make[1]: Entering directory `/opt/tinyos-1.x/apps/Blink'
>  installing mica2 binary
> uisp -dprog=mib510 -dserial=COM4 -dpart=ATmega128 --wr_fuse_e=ff
> --erase --uplo
> ad  if=build/mica2/main.srec
>
> At this point the programmer LED (red) glows and then nothing. Cygwin
> and the programmer board maintain this state until I hit ctrl+c to  
stop

> the process.
>
> I tried installing tinyos-1.1.10 without upgrading cygwin, but it gave
> me the "__getreent" error.
>
> I tried installing the cygwin upgrade given on the tinyos.net/download
> page. No luck.
>
> I tried changing the programmer (to another MIB510). No luck there
> either.
> Different mote, same problem.
>
> Please help. Do I need to use a different version of cygwin or  
tinyos? I

> need to use the tinyos-1.1.10 version as it is the recommended version
> for programming the Cricket series of motes.
>
> Sankar.
>
> Extraneous info:
> I added a PCI card to add 4 serial ports to my PC which came with none
> (NetMos Quad ports: PCI NM9845CV). The drivers for this were good and
> I've tried the ports with MATLAB, LabVIEW, Hyperlink etc. No problems
> there. Ports are installed properly. Com4 is the first port on this
card.
>
>



--
No opera plot can be sensible, for people do not sing when they are
feeling sensible. - W. H. Auden

___

Re: [Tinyos-help] Programming problem

2006-07-11 Thread Mark Bramwell



I am not sure if this will help you with your 
problem but I also had the dot problem.  I made the following changes to 
make 'that' problem go away...
 
I am creating an installation guide for my 
prof.  Here is a section that will help you...

Checking the TOS Installation
toscheck completed with errors:
 
-->WARNING: CLASSPATH may not include '.' (that is,  the symbol for the current
 working directory). Please 
add '.' to your CLASSPATH or you may experience conf
iguration problems.
 
Edit 
/opt/tinyos-1.x/tools/java/javapath
Line 41 should be this:  
#unshift @add, ".";
    
Line 57 should be this:
print 
"$addpath;$oldpath;.\n";
 
Build the java 
tools
cd /opt/tinyos-1.x/tools/java
make
cd /opt/tinyos-1.x/tools/java/jni
make install
 
 > Cygwin is stuck 
at this line as I write this email. While the programmer  > board 
LED doesn't glow now, Cygwin has stopped responding to Ctrl+C.> > 
I ran TOScheck and the only error that I got was that the 'dot' was  
> missing in the PATH variable.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] programming problem with simpleAccel in tiny-2.x-contrib

2012-05-14 Thread mike healy
Hi,

You appear to be using the tinyos-2.x tree from Sourceforge CVS. This is
old and out of date. Instead you should be using the tinyos-main tree from
googlecode svn: http://code.google.com/p/tinyos-main/source/checkout

Mike

On Thu, May 10, 2012 at 9:34 AM, Yuefan Chen  wrote:

> Hi,
>
> I have one problem that I can successfully compile simpleAccel under
> folder apps in tiny-2.x-contrib
>
> I did the following steps:
>
> 1. I opened liveCD and entered tiny2
> 2.cvs new tinyos2 main three and cvs tiny-2.x-contrib
> 3. compile it by typing make shimmer2
>
>
> The error is showed in the attached file!
>
> Can someone helps with that
> Thanks in advance
> --
>
> Best Regards
>
> Yuefan Chen
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help