Hello all,
I'm trying to use the PowerTossimZ, but later that I downloaded the module
and replaced the files according the README, I get error whenever I run any
application, with "make micaz sim"
For example:
mkdir -p simbuild/micaz
placing object files in simbuild/micaz
writing XML schema to app.xml
compiling RadioCountToLedsAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"marianna\"
-DIDENT_HOSTNAME=\"marianna-deskto\" -DIDENT_USERHASH=0x30315190L
-DIDENT_TIMESTAMP=0x4dee76e9L -DIDENT_UIDHASH=0x548aa066L
-Wno-nesc-data-race RadioCountToLedsAppC.nc -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:64,
from RadioCountToLedsAppC.nc:47:
In component `TossimActiveMessageP':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:82: conflicting types
for `AMSend.getPayload'
/opt/tinyos-2.x/tos/interfaces/AMSend.nc:135: previous declaration of
`AMSend.getPayload'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: In function
`AMSend.getPayload':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:83: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: At top level:
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:86: `getPayload' is
not in interface `Receive'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: In function
`Receive.getPayload':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:87: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: At top level:
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:90: `payloadLength'
is not in interface `Receive'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:94: `getPayload' is
not in interface `Snoop'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: In function
`Snoop.getPayload':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:95: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: At top level:
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:98: `payloadLength'
is not in interface `Snoop'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: In function
`Model.receive':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:113: warning: passing
argument 2 of `Packet.getPayload' makes integer from pointer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc: At top level:
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:187: conflicting
types for `Packet.getPayload'
/opt/tinyos-2.x/tos/interfaces/Packet.nc:126: previous declaration of
`Packet.getPayload'
In file included from RadioCountToLedsAppC.nc:47:
In component `RadioCountToLedsC':
RadioCountToLedsC.nc: In function `MilliTimer.fired':
RadioCountToLedsC.nc:88: warning: passing argument 2 of `Packet.getPayload'
makes integer from pointer without a cast
make: ** [sim-exe] Erro 1
Anyone knows tell me how I resolved this?
Best Regards,
--
Marianna Araújo
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help