On Jul 14, 2006, at 2:29 AM, Liu Haibin wrote:
Hi,
I downloaded the development Tinyos-2.x codes. I got an error when
I compiled the BaseStation application.
[EMAIL PROTECTED] BaseStation]$ make micaz sim
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling BaseStationC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-
nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\
(\) -finline-limit=100000 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -
Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -
board=micasb -I%T/oski -Wno-nesc-data-race BaseStationC.nc -fnesc-
dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-
dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-
dumpfile=app.xml
In component `BaseStationC':
BaseStationC.nc :79: ambiguous match
make: *** [sim-exe] Error 1
But "make micaz" worked fine. Any idea what went wrong? Thanks.
tos/lib/tossim/SerialActiveMessageC:
interface Receive[am_id_t id];
interface Receive as Snoop[am_id_t id];
It looks like the TOSSIM SerialActiveMessageC has a slightly
different signature: it provides Snoop while the standard one (lib/
serial) does not. The wiring in BaseStationC is this:
BaseStationP.RadioReceive -> Radio.Receive;
Therefore nesC does not know which to wire to. This is a mistake in
the TOSSIM SerialActiveMessageC, and I'll check in the fix (remove
Snoop).
That being said, TOSSIM currently does not support serial
communication; what are you using BaseStation for in simulation?
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help