When following the README of TOSThreads-tenet, I get errors when compiling
InterpreterTenet or LoaderTenet
The README uses "make telosb".
Shouldn't "make telosb threads" be used?
1. When compiling /opt/threaded-tenet/mote/apps/InterpreterTenet
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
compiling Tenet to a telosb binary
ncc -o build/telosb/main.exe -Os -O -DTHREADS
-tosscheduler=TinyTaskSchedulerC,TinyTaskSchedulerC.TaskBasic,TaskBasic,Task
Basic,runTask,postTask -mdisable-hwmul -Wall -Wshadow -Wnesc-all
-target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb
-I/home/mido/Documents/WMU/TDVMS/Code/nesC/MyLib -DIDENT_APPNAME=\"Tenet\"
-DIDENT_USERNAME=\"mido\" -DIDENT_HOSTNAME=\"localhost.local\"
-DIDENT_USERHASH=0x142b7455L -DIDENT_TIMESTAMP=0x4b71be54L
-DIDENT_UIDHASH=0x10c69c6aL -I/opt/tinyos-2.x/tos/lib/tosthreads/system
-I/opt/tinyos-2.x/tos/lib/tosthreads/interfaces
-I/opt/tinyos-2.x/tos/lib/tosthreads/types
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/msp430
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/msp430/adc12
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/cc2420
-I/opt/tinyos-2.x/tos/lib/tosthreads/platforms/telosa -DTOSH_DATA_LENGTH=110
-I../../ilib -I../../itasklets -I../../tasklets
-I../../tasklets/platform/telosb -I. -I../../lib -I../../lib/timer
-I../../lib/transport -I../../lib/trd -I../../lib/routing -I../../lib/net
-I../../lib/net/lqirp -I/opt/tinyos-2.x/tos/lib/net
-I/opt/tinyos-2.x/tos/lib/net/lqi -DMAX_NUM_THREADS=4 -DMHOP_QUEUE_SIZE=4
-DRAM_TRD=1 Tenet.nc -lm
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
In file included from Tenet.nc:100:
In component `Actuate':
../../tasklets/Actuate.nc: In function `actuate_run':
../../tasklets/Actuate.nc:92: `ACTUATE_LEDS_TOGGLE' undeclared (first use in
this function)
../../tasklets/Actuate.nc:92: (Each undeclared identifier is reported only
once
../../tasklets/Actuate.nc:92: for each function it appears in.)
../../tasklets/Actuate.nc:92: case label does not reduce to an integer
constant
/opt/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:66:2: warning:
#warning Accessing TimerA for ADC12
make: *** [exe0] Error 1
2. When compiling /opt/threaded-tenet/mote/apps/LoaderTenet, I get:
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
compiling Tenet to a telosb binary
ncc -o build/telosb/main.exe -Os -O -DTHREADS
-tosscheduler=TinyTaskSchedulerC,TinyTaskSchedulerC.TaskBasic,TaskBasic,Task
Basic,runTask,postTask -mdisable-hwmul -Wall -Wshadow -Wnesc-all
-target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb
-I/home/mido/Documents/WMU/TDVMS/Code/nesC/MyLib -DIDENT_APPNAME=\"Tenet\"
-DIDENT_USERNAME=\"mido\" -DIDENT_HOSTNAME=\"localhost.local\"
-DIDENT_USERHASH=0x142b7455L -DIDENT_TIMESTAMP=0x4b71bcd5L
-DIDENT_UIDHASH=0xda12f021L -I/opt/tinyos-2.x/tos/lib/tosthreads/system
-I/opt/tinyos-2.x/tos/lib/tosthreads/interfaces
-I/opt/tinyos-2.x/tos/lib/tosthreads/types
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/msp430
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/msp430/adc12
-I/opt/tinyos-2.x/tos/lib/tosthreads/chips/cc2420
-I/opt/tinyos-2.x/tos/lib/tosthreads/platforms/telosa -DTOSH_DATA_LENGTH=110
-I../../clib -I/opt/tinyos-2.x/tos/lib/tosthreads/sensorboards/tmote_onboard
-I/opt/tinyos-2.x/tos/lib/tosthreads/csystem
-I/opt/tinyos-2.x/tos/lib/tosthreads/lib/tinyld -I. -I../../lib
-I../../lib/timer -I../../lib/transport -I../../lib/trd -I../../lib/routing
-I../../lib/net -I../../lib/net/lqirp -I/opt/tinyos-2.x/tos/lib/net
-I/opt/tinyos-2.x/tos/lib/net/lqi -DMAX_NUM_THREADS=4 -DTOSTHREAD_TENET=1
-DTOSTHREAD_MAIN_STACK_SIZE=1500 -DDISABLE_LOADER_FLASH=1
-DDISABLE_LOADER_USERBUTTON=1 -DMHOP_QUEUE_SIZE=4 -DRAM_TRD=1 Tenet.nc -lm
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"
In file included from ../../clib/BinaryInstallerC.nc:39,
from Tenet.nc:38:
In component `BinaryInstallerP':
../../clib/BinaryInstallerP.nc:46: interface DynamicLoader not found
In file included from ../../clib/BinaryInstallerC.nc:39,
from Tenet.nc:38:
../../clib/BinaryInstallerP.nc:190: `loadFromFlashDone' is not in interface
`DynamicLoader'
../../clib/BinaryInstallerP.nc:193: `loadFromMemoryDone' is not in interface
`DynamicLoader'
../../clib/BinaryInstallerP.nc: In function `TaskRecv.receive':
../../clib/BinaryInstallerP.nc:219: interface has no command or event named
`loadFromMemory'
In component `BinaryInstallerC':
../../clib/BinaryInstallerC.nc: At top level:
../../clib/BinaryInstallerC.nc:40: component DynamicLoaderC not found
../../clib/BinaryInstallerC.nc:49: no match
make: *** [exe0] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help