[Tinyos-help] "flash error" when uploading binary to mica2 mote
Michael Schippling
schip at santafe.edu
Wed Dec 26 10:05:38 PST 2007
For whatever reason the makefile is not picking up on wanting to
use the MIB, the "uisp -dprog=dapa" option is the default to use
the old parallel port interface. I have never fully understood
how this is supposed to be done via the command line so I put
these two defines in the Makelocal file:
DEFAULT_PROGRAM=mib510
MIB510=/dev/ttyS4
Note that you should set MIB510=/dev/ttyS0 if that is really
the port you are using....
MS
Chris Yao wrote:
> hi,
>
> I am new to mica2/tinyos. I got the following errors when trying to
> uploading binary to mica2 using MIB 510. What is wrong? Thanks.
>
> ==========
>
> $ make mica2 install mib510,/dev/ttyS0
> 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=100000
> -fnesc-cfile=build/mica2/ap
> p.c Blink.nc -lm
> compiled Blink to build/mica2/main.exe
> 1428 bytes in ROM
> 44 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=dapa -dpart=ATmega128 --wr_fuse_e=ff --erase
> pulse
> Atmel AVR ATmega128 is found.
> Erasing device ...
> pulse
> Reinitializing device
> Atmel AVR ATmega128 is found.
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff --upload
> if=build/mica2/main.s
> rec
> pulse
> Atmel AVR ATmega128 is found.
> Uploading: flash
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa -dpart=ATmega128 --wr_fuse_e=ff --verify
> if=build/mica2/main.s
> rec
> pulse
> Atmel AVR ATmega128 is found.
> Verifying: flash
> flash error at address 0x0: file=0x0c, mem=0xff
> flash error at address 0x1: file=0x94, mem=0xff
> flash error at address 0x2: file=0x46, mem=0xff
> flash error at address 0x3: file=0x00, mem=0xff
> flash error at address 0x4: file=0x0c, mem=0xff
> flash error at address 0x5: file=0x94, mem=0xff
> flash error at address 0x6: file=0x63, mem=0xff
> flash error at address 0x7: file=0x00, mem=0xff
> flash error at address 0x8: file=0x0c, mem=0xff
> flash error at address 0x9: file=0x94, mem=0xff
> flash error at address 0xa: file=0x63, mem=0xff
> flash error at address 0xb: file=0x00, mem=0xff
> flash error at address 0xc: file=0x0c, mem=0xff
> flash error at address 0xd: file=0x94, mem=0xff
> flash error at address 0xe: file=0x63, mem=0xff
> flash error at address 0xf: file=0x00, mem=0xff
> flash error at address 0x10: file=0x0c, mem=0xff
> flash error at address 0x11: file=0x94, mem=0xff
> flash error at address 0x12: file=0x63, mem=0xff
> flash error at address 0x13: file=0x00, mem=0xff
> flash error at address 0x14: file=0x0c, mem=0xff
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
More information about the Tinyos-help
mailing list