Hi Wojciech, The problem seems to be a name conflict. If you copy over the file /opt/tinyos-2.x/tos/lib/rfxlink/layers/LowPowerListeningLayerP.nc to apps/tests/TestTimerSync and replace all the LISTEN strings with, for instance, LPL_LISTEN, the code will compile.
I'll try to hunt down where this string is being used elsewhere in the telos codebase and check in a fix, but in the meantime, this fix will work for you. Janos On Mon, Jun 20, 2011 at 9:42 AM, Wojciech Bober <[email protected]> wrote: > Hi Janos, > > Thanks for your reply! > > I would like to point out that I'm trying to compile tests/TestTimerSync > rather than test/TestFtsp/FtspLpl. > > Besides I can't compile my own code which uses TMilli timers in TimeSyncC > and does not use 32khz timer. > > I tried to compile the code as you advised (note you made a mistake and the > target should be "make telosb cc2420x_32khz"), but it didn't compile either. > > I would appreciate if you could try to compile tests/TestTimerSync using > cc2420x and let me know if it works for you. > > Regards, > Wojtek > > Compilation output: > ubuntu@ubuntu-VirtualBox:/opt/tinyos-main/apps/tests/rfxlink/TestPacketTimeSync$ > make telosb cc2420x_32khz > mkdir -p build/telosb > compiling TestPacketTimeSyncAppC to a telosb binary > ncc -o build/telosb/main.exe -Os -O -DTASKLET_IS_TASK > -I/opt/tinyos-main/tos/platforms/telosa/chips/cc2420x/t32khz > -I/opt/tinyos-main/tos/platforms/telosa/chips/cc2420x/t32khz/am > -I/opt/tinyos-main/tos/platforms/telosa/chips/cc2420x > -I/opt/tinyos-main/tos/chips/cc2420x > -I/opt/tinyos-main/tos/lib/rfxlink/layers > -I/opt/tinyos-main/tos/lib/rfxlink/util -mdisable-hwmul -fnesc-separator=__ > -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c > -board= -DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-main/tos/lib/printf > -DLOW_POWER_LISTENING -DIDENT_APPNAME=\"TestPacketTimeS\" > -DIDENT_USERNAME=\"ubuntu\" -DIDENT_HOSTNAME=\"ubuntu-VirtualB\" > -DIDENT_USERHASH=0x9a1c8f22L -DIDENT_TIMESTAMP=0x4dff5b90L > -DIDENT_UIDHASH=0xefeb5b3fL TestPacketTimeSyncAppC.nc -lm > /opt/tinyos-main/tos/chips/cc2420x/CC2420XRadioC.nc:190:3: warning: #warning > "*** USING LOW POWER LISTENING LAYER" > In file included from > /opt/tinyos-main/tos/lib/rfxlink/layers/LowPowerListeningLayerC.nc:60, > from > /opt/tinyos-main/tos/chips/cc2420x/CC2420XRadioC.nc:191, > from > /opt/tinyos-main/tos/chips/cc2420x/CC2420XActiveMessageC.nc:75, > from > /opt/tinyos-main/tos/platforms/telosa/chips/cc2420x/t32khz/am/ActiveMessageC.nc:54, > from TestPacketTimeSyncAppC.nc:29: > In component `LowPowerListeningLayerP': > /opt/tinyos-main/tos/lib/rfxlink/layers/LowPowerListeningLayerP.nc:92: > syntax error before `0x08' > In component `CC2420XTimeSyncMessageC': > /opt/tinyos-main/tos/chips/cc2420x/CC2420XTimeSyncMessageC.nc:61: ambiguous > match > /opt/tinyos-main/tos/chips/cc2420x/CC2420XTimeSyncMessageC.nc:69: ambiguous > match > In component `TestPacketTimeSyncAppC': > TestPacketTimeSyncAppC.nc:38: no match > TestPacketTimeSyncAppC.nc:47: no match > make: *** [exe0] Error 1 > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
