You are using the wrong syntax to set the programmer options.
The "uisp -dprog=dapa ..." line indicates that it's trying to use
the old parallel connection programmer. I always forget how to do
it on the command line so I set this in my Makelocal file:
DEFAULT_PROGRAM=mib510
MIB510=COM5
where you might use /dev/ttyS0
MS
Underléa Cabreira Corrêa wrote:
> Dear all,
>
> I 'm just getting start with TinyOS and Mica Motes platform, but I
> already have got a problem in the first lesson from tutorial.
> I m using TinyOS 2.x in a Linux Ubunto machine. I have followed the
> installation instruction from
> http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html. I have
> tested my environment with $ tos-check-env and I just have got a warning
> about the GraphViz version ...
> My problem is : I can t install the Blink app on Mica2. Every time I
> have tried I have got the following flash error address :(
>
> [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink# make mica2 install, 1 MIB510,
> /dev/ttyS0
> mkdir -p build/mica2
> compiling BlinkAppC to a mica2 binary
> ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"root\"
> -DIDENT_HOSTNAME=\"besouro\" -DIDENT_USERHASH=0xcc8c50dfL
> -DIDENT_TIMESTAMP=0x48641421L -DIDENT_UIDHASH=0x39bb344dL
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/mica2/wiring-check.xml BlinkAppC.nc -lm
> compiled BlinkAppC to build/mica2/main.exe
> 7130 bytes in ROM
> 52 bytes in RAM
> avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
> avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex
> writing TOS image
> cp build/mica2/main.srec build/mica2/main.srec.out
> installing mica2 binary with dapa
> uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff --erase
> pulse
> Atmel AVR ATmega128 is found.
> Erasing device ...
> pulse
> Reinitializing device
> Atmel AVR ATmega128 is found.
>
> Fuse High Byte set to 0xd9
>
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff
> --upload if=build/mica2/main.srec.out
> pulse
> Atmel AVR ATmega128 is found.
> Uploading: flash
>
> Fuse High Byte set to 0xd9
>
> Fuse Extended Byte set to 0xff
> sleep 1
> uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 --wr_fuse_e=ff
> --verify if=build/mica2/main.srec.out
> 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=0x49, mem=0xff
> I have tried the suggestions that I found on this list but no one have
> fixed my problem :(
> Any suggestion ?
> Thank you so much!!
>
> --
> Léa
>
> <http://www.das.ufsc.br/%7Eunderlea/>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help