[Tinyos-help] nesc-semantics.c error
Jordi Casals
jordi.casals at gmail.com
Mon Feb 26 14:35:19 PST 2007
ok, thank you very much!!! That was the problem!! It's solved!
2007/2/26, Razvan Musaloiu-E. <razvanm at cs.jhu.edu>:
>
> Hi!
>
> Are you using nesc 1.2.8a? If the answer is affirmative then double-check
> if the name of the source files match with the names from inside. A
> mismatch can cause the above error. Here is the email were I reported the
> problem:
>
> http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/2007-February/001604.html
>
> Have a nice day!
> Razvan ME
>
> On Mon, 26 Feb 2007, Jordi Casals wrote:
>
> > Hi everybody,
> >
> > I'm trying to use a GPIO port of my micaz to a device, and when I try to
> > compile this message is shown:
> >
> > nesc1: nesc-semantics.c:145: language_name: Assertion `0' failed.
> > nesC: Internal error. Please send a bug report to the nesC bug mailing
> list
> > at nescc-bugs at lists.sourceforge.net
> > make: *** [exe0] Error 1
> >
> >
> >
> > My code is:
> >
> > _______________________________________________________________
> > #include "RandomToOut.h"
> >
> > module RandomToOutC{
> > uses{
> > interface Boot;
> > interface Leds;
> > interface GeneralIO;
> > interface Timer<TMilli> as Timer;
> > }
> > }
> >
> > implementation{
> > event void Boot.booted(){
> > call GeneralIO.makeOutput();
> > call Leds.led0Off();
> > call Timer.startPeriodic(TIMER_PERIOD);
> > }
> > event void Timer.fired(){
> > call GeneralIO.toggle();
> > call Leds.led0Toggle();
> > }
> > }
> > ______________________________________________________
> >
> > and:
> >
> > ______________________________________________________
> > #include "RandomToOut.h"
> >
> > configuration RandomToOutputAppC{
> > }
> >
> > implementation{
> > components MainC, RandomToOutC as AppC;
> > components LedsC;
> > components HplAtm128GeneralIOC as GeneralIOC;
> > components new TimerMilliC() as TimerC;
> > AppC.Boot -> MainC.Boot;
> > AppC.Leds -> LedsC.Leds;
> > AppC.Timer -> TimerC.Timer;
> > AppC.GeneralIO -> GeneralIOC.PortC3;
> > }
> > _______________________________________________________
> >
> > It is a very simple test, but it doesn't work. Could somebody help me?
> I'm
> > using micaz and T2.
> > I have seen there are some threads talking about it, but there is not
> > solution.
> >
> > Thanks!
> >
> > --
> > Jordi Casals
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
--
Jordi Casals
E-mail: jordi.casals at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070226/3cfdc846/attachment.htm
More information about the Tinyos-help
mailing list