[Tinyos-devel] broken BaseStation in the latest CVS from
tinyos-2.x
Jonathan Hui
jwhui at cs.berkeley.edu
Thu Aug 31 10:27:27 PDT 2006
Yup. I've contacted Phil Levis about this issue. Several days ago, he
checked in a change that requires components that wire in
SerialDispatcherC to provide Init as well. Maybe I'm mistaken, but I
thought we moved to a policy where components would wire SoftwareInit
themselves. So I'm checking to see what his thoughts were in doing so.
But, I think he's out of town right now. Does someone want to clarify
what the Init policy is these days?
--
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/
On 8/31/06, Razvan Musaloiu-E. <razvanm at cs.jhu.edu> wrote:
> Hi!
>
> On Thu, 31 Aug 2006, Jonathan Hui wrote:
>
> > I just checked in a fix for this problem. Update and try again.
>
> Just a small error remains:
> $ 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 component `SerialDispatcherC':
> /home/tinyos2auto/local/src/tinyos-2.x/tos/lib/serial/SerialDispatcherC.nc:58: no match
> make: *** [exe0] Error 1
>
> SerialDispatcherC.nc expects PlatformSerialC to have an Init interface
> but platforms/telosa/PlatformSerialC.nc doesn't have one.
>
> Thanks for the quick response! :-)
> Razvan ME
>
> > On 8/30/06, Razvan Musaloiu-E. <razvanm at cs.jhu.edu> wrote:
> > > 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
> > >
> > >
> > >
> > > _______________________________________________
> > > Tinyos-devel mailing list
> > > Tinyos-devel at Millennium.Berkeley.EDU
> > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
> > >
> >
>
>
More information about the Tinyos-devel
mailing list