[Tinyos-devel] broken BaseStation in the latest CVS from tinyos-2.x

Razvan Musaloiu-E. razvanm at cs.jhu.edu
Wed Aug 30 15:07:32 PDT 2006


Hi!

I just noticed that the BaseStation is broken. The error looks like this:

$ make telosb
mkdir -p build/telosb
    compiling BaseStationC 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= -I%T/oski  BaseStationC.nc -lm
In file included from
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1C.nc:76,
                 from /home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/Msp430Uart1P.nc:62,
                 from /home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/Msp430Uart1C.nc:56,
                 from /home/tinyos2auto/local/src/tinyos-2.x/tos/platforms/telosa/PlatformSerialC.nc:6,
                 from /home/tinyos2auto/local/src/tinyos-2.x/tos/lib/serial/SerialDispatcherC.nc:51,
                 from /home/tinyos2auto/local/src/tinyos-2.x/tos/lib/serial/SerialActiveMessageC.nc:45,
                 from BaseStationC.nc:71:
In component `HplMsp430Usart1P':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `AsyncStdControl.stop':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:111: interface has no command or event named `disableI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: At top level:
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:191: `isI2C' is not in interface `Usart'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `Usart.getMode':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:204: interface has no command or event named `isI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: At top level:
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:267: `enableI2C' is not in interface `Usart'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:271: `disableI2C' is not in interface `Usart'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `Usart.setModeSpi':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:299: interface has no command or event named `disableI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `Usart.setModeUartTx':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:342: interface has no command or event named `disableI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `Usart.setModeUartRx':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:361: interface has no command or event named `disableI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: In function `Usart.setModeUart':
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:380: interface has no command or event named `disableI2C'
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc: At top level:
/home/tinyos2auto/local/src/tinyos-2.x/tos/chips/msp430/usart/HplMsp430Usart1P.nc:398: `setModeI2C' is not in interface `Usart'
In component `SerialDispatcherC':
/home/tinyos2auto/local/src/tinyos-2.x/tos/lib/serial/SerialDispatcherC.nc:58: no match
make: *** [exe0] Error 1
$

By going back... 6 days I was able to compile it.

Something else: the support/sdk/c/prettylisten is also a little broken. A
way to fix it is the following:

diff -u -r1.1.2.1 prettylisten.c
--- prettylisten.c      2 May 2006 23:19:14 -0000       1.1.2.1
+++ prettylisten.c      30 Aug 2006 21:26:00 -0000
@@ -45,8 +45,9 @@
          if (!msg)
            exit(0);

-         printf("addr %u, length %u, group %u, type %u\n  ",
-                spacket_header_addr_get(msg),
+         printf("dest %u, src %u, length %u, group %u, type %u\n  ",
+                spacket_header_dest_get(msg),
+                spacket_header_src_get(msg),
                 spacket_header_length_get(msg),
                 spacket_header_group_get(msg),
                 spacket_header_type_get(msg));

--
Razvan ME





More information about the Tinyos-devel mailing list