Hi Maggie,
>From the output of your reinstall, it appears that uisp (which is the
programming program that loads programs into the flash on the mote) is
failing.  The error 2 is the return code to the system that uisp is
returning.

The first thing I would do is see if I could use "uisp" to talk to the
MIB510 (the programmer).  For example can you read the current values of the
fuses?

>From the "com5" I assume you are running under cygwin.

uisp -v -dprog=mib510 -dserial=com5 --rd_fuses

and see if you get anything.  The -v will be more verbose and might give you
more information.

eric



On Thu, May 29, 2008 at 7:06 PM, Yu Qun <[EMAIL PROTECTED]> wrote:

>
> Hi everyone:
>
> Hope to gain some warm responses from you!
>
> I am the new one to use PN2, when I want to uplode the simple coding in the
> tutorials/lesson1" into the mote, the output is following, what is the Error
> 2, how to resolve the problem and make it work? would anyone like give me
> some ideas on it? Thanks!
> #############################
> Command:   make mica2 reinstall mib510,com5
> Cygwin:    C:\Crossbow\cygwin\bin
> Directory: C:\Crossbow\cygwin\opt\MoteWorks\apps\tutorials\MyApp\lesson_1\
> "/opt/MoteWorks/tools/bin/ide.pl 'make mica2 reinstall mib510,com5'
> 'C:\Crossbow\cygwin\opt\MoteWorks\apps\tutorials\MyApp\lesson_1\'"
> #############################
> ide.pl Ver:$Id: ide.pl,v 1.1.2.1 2006/05/29 07:22:52 lwei Exp $
> Executing: /opt/MoteWorks/apps/tutorials/MyApp/lesson_1/ bash -c "make
> mica2 reinstall mib510,com5"
> cp build/mica2/main.srec build/mica2/main.srec.out
>     installing mica2 binary using mib510
> uisp -dprog=mib510 -dserial=com5 --wr_fuse_h=0xd9 -dpart=ATmega128
> --wr_fuse_e=ff  --erase --upload if=build/mica2/main.srec.out
> timer timedout
> timer timedout
> timer timedout
> timer timedout
> Device is not responding correctly.
> make: *** [program] Error 2
>
> Thanks!
> Maggie
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to