[Tinyos-help] program the mote with TinyDBApp application

jsuh at xbow.com jsuh at xbow.com
Fri Jan 9 17:18:17 PST 2004


Hello Dharani,

Be sure to type in a "MIB510=/dev/ttyS0" (assuming your MIB510 is connected
to COM1) BEFORE the "make install.<nodeid> mica2. As an example you could
use the following command line to compile, then install TinyDBApp into a
MICA2 basestation mote:

MIB510=/dev/ttyS0 make install.0 mica2

Sincerely,
John Suh
Technical Support Engineer
Crossbow Technology, Inc.
408-965-3310
http://www.xbow.com



-----Original Message-----
From: Dharaninath Tavanati [mailto:dta004 at latech.edu] 
Sent: Friday, January 09, 2004 4:39 PM
To: tinyos-help at Millennium.Berkeley.EDU
Subject: [Tinyos-help] program the mote with TinyDBApp application




Hi,
    I am using MIB 510 interface board and mica2 mote(MPR400CB). I am
getteing errors when I try to install the mote with TinyDBApp application.
Could any body help me how to overcome this problem.

The error message

nath_srk at ifmL201 /
$ cd opt/tinyos-1.x/apps/TinyDBApp

nath_srk at ifmL201 /opt/tinyos-1.x/apps/TinyDBApp
$ make mica2 install.0
    compiling TinyDBApp to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2
-DTOSH_DATA_LENGTH=4 9 -I %T/lib/Util -I%T/lib/Attributes -I%T/lib/Commands
-I%T/lib/TinyDB -I%T/lib/ Route -I%T/lib/Queue  -I%T/lib/FS
-I%T/lib/TinyDB/Aggregates -fno-strict-aliasin g -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000 -fnesc
-cfile=build/mica2/app.c  TinyDBApp.nc -lm
nesc1: warning: calls to ReceiveMsg.receive in AMPromiscuous are uncombined
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3512:
warning: ca ll via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3522:
warning: ca ll via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3548:
warning: ca ll via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/AggOperator.nc:366: warning:
call  via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/AggOperator.nc:391: warning:
call  via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/AggOperator.nc:518: warning:
call  via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/AggOperator.nc:534: warning:
call  via function pointer
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3937:
warning: `N etwork.getDataPayLoad' called asynchronously from
`RadioSendCoordinator.startSym bol'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3928:
warning: `N etwork.getQueryPayLoad' called asynchronously from
`RadioSendCoordinator.startSy mbol'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3934:
warning: `S erviceScheduler.get' called asynchronously from
`RadioSendCoordinator.startSymbo l'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:3925:
warning: `S erviceScheduler.get' called asynchronously from
`RadioSendCoordinator.startSymbo l'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:372: warning:
non -atomic accesses to shared variable `mMustTimestamp':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:935: warning:

n
on-atomic write
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:373: warning:
non -atomic accesses to shared variable `mTimestampMsg':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/TinyDB/TupleRouterM.nc:936: warning:

n
on-atomic write
    compiled TinyDBApp to build/mica2/main.exe
           60870 bytes in ROM
            2838 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
make mica2 reinstall.0 PROGRAMMER="DAPA" PROGRAMMER_FLAGS="-dprog=dapa
-dpart=AT mega128 --wr_fuse_e=ff "
make[1]: Entering directory `/opt/tinyos-1.x/apps/TinyDBApp'
    installing mica2 binary
set-mote-id build/mica2/main.srec build/mica2/main.srec.out `echo
reinstall.0
|p
erl -pe 's/^reinstall.//; $_=hex if /^0x/i;'`
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.out 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.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=0xe2, mem=0xff
flash error at address 0x3: file=0x01, mem=0xff
flash error at address 0x4: file=0x0c, mem=0xff
flash error at address 0x5: file=0x94, mem=0xff
flash error at address 0x7: file=0x01, mem=0xff
flash error at address 0x8: file=0x0c, mem=0xff
flash error at address 0x9: file=0x94, mem=0xff

Regards,
dharani


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list