[Tinyos-help] mica2 "Failed to enter programming mode"
Neal Patwari
npatwari at ece.utah.edu
Tue Sep 5 15:48:35 PDT 2006
I've in the past used a MIB510 to program my mica2 motes and had no
problem. Now, I have only a MIB520 programming board, and I can't
understand how to properly program it. I first run the command:
export MOTECOM=serial at COM13:mica2
Then, in the Blink directory, I use:
make mica2 reinstall.23 mib510,/dev/ttyS12
The output of this command is usually:
set-mote-id build/mica2/main.srec build/mica2/main.srec.out-26 26
Could not find symbol TOS_LOCAL_ADDRESS in build/mica2/main.exe,
ignoring symbol.
installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS12 --wr_fuse_h=0xd8
-dpart=ATmega128 --wr_f
use_e=ff --erase --upload if=build/mica2/main.srec.out-26
Firmware Version: 1.8
Atmel AVR ATmega128 is found.
Uploading: flash
Fuse High Byte set to 0xd8
Fuse Extended Byte set to 0xff
rm -f build/mica2/main.exe.out-26 build/mica2/main.srec.out-26
installing mica2 bootloader using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS12 --wr_fuse_h=0xd8 -dpart=ATmega128
--wr_f use_e=ff --upload
if=/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/mica2/main.ihex
Firmware Version: ?.?
Failed to enter programming mode.
make: *** [program_bl] Error 2
The red ISP light remains lit after this. Even though I get this error,
when I restart the mica2, the device has in fact been programmed with
the new program.
And, once in a while, the "failed to enter..." error does not happen -
it finishes successfully.
(My computer 'Ports' are COM13 and COM14 for my USB cable connection to
the MIB 520. I've used 'mib510' instead of 'mib520' on the command
line because I'm told my version of Tinyos (1.1.15) does not have the
'mib520' defined.)
Can anyone tell me how to properly program a mica2 using the MIB 520?
Thank you,
Neal
--
Neal Patwari University of Utah
Assistant Professor, Dept. of Electrical & Computer Engineering
http://www.ece.utah.edu/~npatwari/ npatwari at ece.utah.edu
More information about the Tinyos-help
mailing list