Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

John Griessen john at ecosensory.com
Sun Dec 2 14:07:20 PST 2007


Vijayant Bhatnagar wrote:
> Hi,
> I updated all the CC2420* files and dumped in /opt/tinyos-2.x/tos/chips/cc2420/
> but its not working. What should I do in this case ?  I am getting same kind
> of errors like "interface has no > command or event named"...

Sounds bad.

I'd start with a fresh checkout of  /opt/tinyos-2.x
or a cvs update -dPC  to over write bad.  Also notice any ? files and 
remove,
so you see it's easier to do another checkout.  Overwriting file
in /opt/tinyos-2.x/tos/chips/cc2420  isn't going to help beginning efforts,
and it's always good to do a cp -r /opt/tinyos-2.x
/opt/tinyos-2.x-12dce07 or some such before trying some kind of code 
merging.

I'm at a point where I have learned a little tinyos-style
and made some apps by merging code
in with the  /opt/tinyos-2.x tree, and it's getting hard to manage, so
I'm learning to use Makefile directives like
CFLAGS += -I$(TOSDIR)/lib/net/ -I$(TOSDIR)/lib/net/ctp  .

With CFLAGS like that, the compiler looks in default places in the 
tinyos-2.x tree plus the extra ones.  That way we can compile code that 
uses the current dir, not have that dir located T2 or contrib code tree, 
and have it use code from
  T2 and contrib and a local dir we are developing in.

John Griessen
-- 
Ecosensory   Austin TX
tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1



More information about the Tinyos-help mailing list