[Tinyos-help] nesc-semantics.c error

Jordi Casals jordi.casals at gmail.com
Mon Feb 26 08:47:21 PST 2007


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



More information about the Tinyos-help mailing list