>From the error I see (make: *** [sim-exe] Error 1), it looks like you
are trying to run this application in TOSSIM.  I'm not sure how much
of the CC2420 stack is supported by TOSSIM, but if you look at the
.platform file for the micaz sim environment (the only one thats
supported for sim at this point), the cc2420 directories that include
the CC2420Packet interface and CC2420PacketC component are not listed.

i.e. compare the files
tos/platforms/micaz/.platform
tos/platforms/micaz/sim/.platform

Kevin


On Dec 1, 2007 10:52 PM, Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote:
> Hi,
> When I try to wire CC2420 Interface provided by CC2420PacketC.nC, I get
> following errors :
>
>
> In file included from RadioCountToLedsAppC.nc:47:
> In component `RadioCountToLedsC':
> RadioCountToLedsC.nc :62: interface CC2420Packet not found
> In component `RadioCountToLedsAppC':
> RadioCountToLedsAppC.nc:54: component CC2420PacketC not found
> RadioCountToLedsAppC.nc:66: no match
> make: *** [sim-exe] Error 1
>
> My source code looks like :
>
> configuration RadioCountToLedsAppC {}
> implementation {
>   components MainC, RadioCountToLedsC as App, LedsC;
>   components new AMSenderC(AM_RADIO_COUNT_MSG);
>   components new AMReceiverC(AM_RADIO_COUNT_MSG);
>   components ActiveMessageC;
>   components CC2420PacketC;
>
>   App.Boot -> MainC.Boot;
>   App.Receive -> AMReceiverC;
>   App.AMSend -> AMSenderC;
>   App.AMControl -> ActiveMessageC;
>   App.Leds -> LedsC;
>   App.Packet -> AMSenderC;
>   App.AMPacket ->  AMReceiverC;
>   App.CC2420Packet -> CC2420PacketC;
> }
>
>
> module RadioCountToLedsC {
>   uses {
>     interface Leds;
>     interface Boot;
>     interface Receive;
>     interface AMSend;
>     interface SplitControl as AMControl;
>     interface Packet;
>     interface AMPacket;
>     interface CC2420Packet;
>   }
> }
>
>
> {...continues..}
>
>
>
> Please let me know where am I going wrong. Any help is appreciated.
>
>
> Thanks,
> Vijayant Bhatnagar.
> Rutgers.
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to