[Tinyos-help] basic issue
Adnan Iqbal
adnaaniqbaal at gmail.com
Thu Mar 1 15:32:18 PST 2007
Thanx Micheal. I already figured out that for xbow stuff, we need to use
contrib/xbow and some other fixes described in support CD from xbow. Every
thing is working fine after that. your other suggestion may also work but i
did not test that.
Adnan
On 3/2/07, Michael Schippling <schip at santafe.edu> wrote:
>
> The makefile is not picking up the "MIB510, com1" setting from
> the command line (you see: uisp -dprog=dapa... where it should
> be -dprog=mib510) perhaps because there should be no space
> between the two words. I did once figure out what the correct
> command line format for this was. I forget offhand now but you
> may be able to search on it in the help list archives.
>
> I set these parameters explicitly in the contrib/xbow/MakeXbowlocal
> file with:
> DEFAULT_PROGRAM=mib510
> MIB510=COM3
>
> I think in the 'regular' apps tree you could put those settings
> in the Makelocal file, or set an environment variable as:
> export MIB510=COM3
> (I only work out of the contrib/xbow tree so I'm not sure if the
> above is complete or correct...)
>
> MS
>
> Adnan Iqbal wrote:
> > Hi
> >
> > I am using windows/cygwin/tinyos to write "Blink" application on sensor
> > (micaz). I am continuously having Flash error. It seems that program is
> > compiled correctly but not being transferred. Detailed output is here.
> >
> >
> > $make micaz install MIB510, com1
> >
> > mkdir -p build/micaz
> >
> > compiling Blink to a micaz binary
> >
> > ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> > -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz
> > -fnesc-cfile=build/micaz/app.c -board=micasb -I%T/lib/Deluge
> > -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"Administrator\"
> > -DIDENT_HOSTNAME=\"WSN-3\" -DIDENT_USER_HASH=0xf2e3933dL
> > -DIDENT_UNIX_TIME=0x45e6fae3L -DIDENT_UID_HASH=0x4ee1ea33L
> > -I/opt/tinyos- 1.x/tos/lib/CC2420Radio Blink.nc <http://Blink.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 with dapa
> >
> > uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff
> --erase
> >
> > pulse
> >
> > pulse
> >
> > Fuse High Byte set to 0xd8
> >
> > Fuse Extended Byte set to 0xff
> >
> > sleep 1
> >
> > uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff
> > --upload if=build/micaz/main.srec.out
> >
> > pulse
> >
> > Fuse High Byte set to 0xd8
> >
> > Fuse Extended Byte set to 0xff
> >
> > sleep 1
> >
> > uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff
> > --verify if=build/micaz/main.srec.out
> >
> > pulse
> >
> > Fuse High Byte set to 0xd8
> >
> > Fuse Extended Byte set to 0xff
> >
> > rm -f build/micaz/main.exe.out build/micaz/main.srec.out
> >
> > installing micaz bootloader with dapa
> >
> > uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff
> > --upload if=/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/micaz/main.ihex
> >
> > pulse
> >
> > Fuse High Byte set to 0xd8
> >
> > Fuse Extended Byte set to 0xff
> >
> > sleep 1
> >
> > uisp -dprog=dapa --wr_fuse_h=0xd8 -dpart=ATmega128 --wr_fuse_e=ff
> > --verify if=/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/micaz/main.ihex
> >
> > pulse
> >
> > Fuse High Byte set to 0xd8
> >
> > Fuse Extended Byte set to 0xff
> >
> > .
> >
> > .
> >
> > .
> >
> > Flash error at address 0x1f933: file 0xcf, mem=0xff
> >
> >
> >
> > --
> > Adnan Iqbal
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Adnan Iqbal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070302/7bc13b0f/attachment.html
More information about the Tinyos-help
mailing list