I have inherited code that was previously written for micaz motes. I would
like to build and install the hex file onto a telosb mote. If I perform a
"make telosb", I get the following error:
xubun...@xubuntos-tinyos:/opt/tinyos-2.x/apps/stanley$ make telosb
mkdir -p build/telosb
tos-storage-stm25p /opt/tinyos-2.x/tos/platforms/telosb <volumes-stm25p.xml
>build/telosb/StorageVolumes.h || rm -f build/telosb/StorageVolumes.h
ERROR: size of volume 'CONFIGTEST' is not a multiple of 65536
compiling PacketParrotC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -Ibuild/telosb
-DIDENT_PROGRAM_NAME=\"PacketParrotC\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x4c2488deL -DIDENT_UID_HASH=0x1a5856a7L PacketParrotC.nc
-lm
PacketParrotC.nc:42:28: StorageVolumes.h: No such file or directory
<commandline>: failed to preprocess PacketParrotC.nc
make: *** [exe0] Error 1
However, if I execute "make telos", I get no errors at all:
xubun...@xubuntos-tinyos:/opt/tinyos-2.x/apps/stanley$ make telos
mkdir -p build/telosa
compiling PacketParrotC to a telosa binary
ncc -o build/telosa/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosa
-fnesc-cfile=build/telosa/app.c -board= -Ibuild/telosa
-DIDENT_PROGRAM_NAME=\"PacketParrotC\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x4c248947L -DIDENT_UID_HASH=0xb1b36a24L PacketParrotC.nc
-lm
In file included from PacketParrotC.nc:49:
In component `PacketParrotP':
PacketParrotP.nc: In function `LogRead.readDone':
PacketParrotP.nc:99: warning: passing argument 2 of `Packet.getPayload'
makes pointer from integer without a cast
nesc1: warning: calls to Receive.receive in CC2420ReceiveP fan out, but
there is no combine function specified for the return type
PacketParrotP.nc: In function `PacketParrotP$LogRead$readDone':
PacketParrotP.nc:99: warning: passing arg 2 of
`PacketParrotP$Packet$getPayload' makes pointer from integer without a cast
compiled PacketParrotC to build/telosa/main.exe
21316 bytes in ROM
598 bytes in RAM
msp430-objcopy --output-target=ihex build/telosa/main.exe
build/telosa/main.ihex
writing TOS image
When I take the next step to install tinyos onto a telosb mote, I get the
following error:
xubun...@xubuntos-tinyos:/opt/tinyos-2.x/apps/stanley$ make telos install
bsl,/dev/ttyUSB0
mkdir -p build/telosa
compiling PacketParrotC to a telosa binary
ncc -o build/telosa/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosa
-fnesc-cfile=build/telosa/app.c -board= -Ibuild/telosa
-DIDENT_PROGRAM_NAME=\"PacketParrotC\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x4c248225L -DIDENT_UID_HASH=0x1cea3a32L PacketParrotC.nc
-lm
In file included from PacketParrotC.nc:49:
In component `PacketParrotP':
PacketParrotP.nc: In function `LogRead.readDone':
PacketParrotP.nc:99: warning: passing argument 2 of `Packet.getPayload'
makes pointer from integer without a cast
nesc1: warning: calls to Receive.receive in CC2420ReceiveP fan out, but
there is no combine function specified for the return type
PacketParrotP.nc: In function `PacketParrotP$LogRead$readDone':
PacketParrotP.nc:99: warning: passing arg 2 of
`PacketParrotP$Packet$getPayload' makes pointer from integer without a cast
compiled PacketParrotC to build/telosa/main.exe
21316 bytes in ROM
598 bytes in RAM
msp430-objcopy --output-target=ihex build/telosa/main.exe
build/telosa/main.ihex
writing TOS image
cp build/telosa/main.ihex build/telosa/main.ihex.out
installing telosa binary using bsl
tos-bsl --telos -c /dev/ttyUSB0 -r -e -I -p build/telosa/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
An error occoured:
Timeout
make: *** [program] Error 1
When I checked whether a mote is connected, it appears that it is:
Reference Device Description
---------- ---------------- ---------------------------------------------
XBSJEOGB /dev/ttyUSB0 XBOW Crossbow Telos Rev.B
It would be greatly appreciated to know what went wrong with what I was
trying to do. Thanks in advance!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help