[Tinyos-help] UISP hang after cygwin and TinyOS 1.1.15 upgrade
Thomas Bahls
tbahls at zylaya.com
Wed Jun 14 14:16:24 PDT 2006
I'm unable to reprogram my micaZ motes now that I've upgraded to TinyOS
1.1.15 and updated my Cygwin environment. Things were working fine when I
was at TinyOS 1.1.10. Applications compile fine (Blink, for example) but
UISP appears to hang up until I type CTRL-C. Some relevant command line
snippets appear at the bottom.
The mote itself seems unaffected by all this; it is still happily running
the old CntToLedsAndRfm application the whole time UISP is attempting to
reprogram it. Here is the history of how I got to this point:
1. Original working installation was per Chapter 2 in the Crossbow
"Getting Started Guide" (TinyOS 1.1.0 distribution, 1.1.10 update applied,
Crossbow contrib directory added, and Crossbow utilities [including UISP]
replacing the original ones via "XInstall").
2. Attempted to install the TinyOS 1.1.15 RPM and discovered that I'd
need to update nesC first. Installed the nesC 1.1.1-2 RPM.
3. Installed the TinyOS 1.1.15 RPM successfully, but nesC compilations
failed with the "entry point __getreent not found" error.
4. Upgraded to the latest 'n' greatest Cygwin environment from
www.cygwin.com.
5. TinyOS application compile, but UISP hangs. :-(
I might add a couple of other points. I passed on installing the Cygwin
distribution called out on the "Upgrade Your Cygwin Environment" page
because I was unsure just what version it was. My original Cygwin DLL was
1.3 (if I recall correctly) and the RPM on that upgrade page had a "1.2" in
it. I wasn't sure whether that referred to TinyOS 1.2 or Cygwin, so to avoid
an inadvertent downgrade I just installed the latest version. I also have
another Cygwin DLL in my path (the one that installs with WinAVR) but that
one is version 1.5.18 (almost the same as my new one), and it was there when
UISP worked properly.
Thanks in advance for any ideas you may have.
- Tom
========================================================================
$ make micaz install mib520,com5
mkdir -p build/micaz
compiling Blink to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-DDEF_TOS_A
M_GROUP=0x7d -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
-board=mica
sb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"tbahls\"
-DI
DENT_HOSTNAME=\"tbahls-desk\" -DIDENT_USER_HASH=0x5fb14421L
-DIDENT_UNIX_TIME=0x
44907422L -DIDENT_UID_HASH=0x8efd4b98L -I/opt/tinyos-1.x/tos/lib/CC2420Radio
Bli
nk.nc -lm
compiled Blink to build/micaz/main.exe
1662 bytes in ROM
49 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
writing TOS image
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib520
uisp -dprog=mib520 -dserial=com5 --wr_fuse_h=0xd8 -dpart=ATmega128
--wr_fuse_e=f
f --erase --upload if=build/micaz/main.srec.out
make: *** [program] Interrupt
$ uisp -v=4 -dprog=mib520 -dserial=com5 --wr_fuse_h=0xd8 -dpart=ATmega128
--wr_
fuse_e=ff --erase --upload if=build/micaz/main.srec.out
Transmit: { . [aa] U [55] U [55] . [aa] . [17] Q [51] 1 [31] . [13] . [01] }
Transmit: { . [aa] U [55] U [55] . [aa] . [17] Q [51] 1 [31] . [13] . [01] }
^C
$ which uisp
/usr/local/bin/uisp
$ file /usr/local/bin/uisp
/usr/local/bin/uisp: symbolic link to
`/opt/tinyos-1.x/contrib/xbow/bin/uisp.exe'
$ uisp --version
uisp version 20030820tinyos
(C) 1997-1999 Uros Platise, 2000-2003 Marek Michalkiewicz
(c) 2003 Philip Buonadonna, Intel Corporation
(c) 2003 , Crossbow Technology
uisp is free software, covered by the GNU General Public License.
You are welcome to change it and/or distribute copies of it under
the conditions of the GNU General Public License.
$ uname -a
CYGWIN_NT-5.1 tbahls 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
========================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060614/72fb70d8/attachment.html
More information about the Tinyos-help
mailing list