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 [EMAIL PROTECTED]
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
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

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

Reply via email to