Hi All,

Finally some success.
So, if you want to compile the cricket software, then here are the pointers:

1. Get the tinyos1.x-1.1.15CVSDec2005 release from the CVS. I tried out a 
number of version of tinyos1.x and also the 1.1.6 version as mentioned in the 
cricket manual but none of them are stable except the 
tinyos1.x-1.1.15CVSDec2005 release.
2. After the OS is setup, get the latest cricket version 2.3.2 from the cricket 
site. But the mess over here is that one of the configuration files for the 
radio has been missed out. Hence get the file CC1000RadioC.nc from the previous 
build (2.3.0). 
3. Apart from these 2 major changes, there would be a few compilation errors. I 
had fixed them in the following way. You might have a better approach.

3.1. In file UltrasoundControlM.nc -> 

        /* Set the maximum count */
            //__outw(timeout, OCR1AL);
                outw(OCR1AL, timeout);

3.2. In file SerialM.nc ->

        //fdevopen(put, NULL, 0);
          fdevopen(NULL, 0);

3.3. In file avrhardware.h ->

//#define outw(port, value) ((*(volatile uint16_t *)&(port)) = (value))
#define outw(value, port) ((*(volatile uint16_t *)&(port)) = (value))

// check for version 3.3 of GNU gcc or later
/* #if ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))
#define __outw(val, port) outw(port, val);
#endif */

So, all the best to guys thinking of starting to use the cricket.

On Fri, 20 Feb 2009 08:16:42 +0530  wrote
>Hi,
>
>I was successful in removing one of the compilation errors but still I am not 
>able to figure out as to how to fix the second one.
>The error is:
>In component `UltrasoundControlM':
>/home/pkmisra/tinyos-1.x/tos/platform/cricket/UltrasoundControlM.nc: In 
>function `UltrasoundControl.StartDetector':
>/home/pkmisra/tinyos-1.x/tos/platform/cricket/UltrasoundControlM.nc:35: 
>implicit declaration of function `__outw'
>
>
>Can anybody help.
>
>On Fri, 20 Feb 2009 05:12:29 +0530  wrote
>>Hi ,
>>
>>I am trying to compile the cricket software but it gives me the following 
>>errors:
>>
>>In component `CricketM':
>>CricketM.nc: In function `Serial.Receive':
>>CricketM.nc:818: warning: decimal constant is so large that it is unsigned
>>CricketM.nc:819: warning: decimal constant is so large that it is unsigned
>>In file included from Cricket.nc:21:
>>In component `SerialM':
>>SerialM.nc: In function `Serial.SetStdoutSerial':
>>SerialM.nc:194: warning: passing argument 1 of `fdevopen' from incompatible 
>>pointer type
>>SerialM.nc:194: too many arguments to function `fdevopen'
>>In file included from Cricket.nc:22:
>>In component `UltrasoundControlM':
>>/home/pkmisra/tinyos-1.x/tos/platform/cricket/UltrasoundControlM.nc: In 
>>function `UltrasoundControl.StartDetector':
>>/home/pkmisra/tinyos-1.x/tos/platform/cricket/UltrasoundControlM.nc:32: 
>>implicit declaration of function `__outw'
>>make: *** [build/cricket/main.exe] Error 1
>>
>>
>>Did any body come across this situation before.
>>
>>Appreciate your help.
>>
>>Prasant Kumar Misra._______________________________________________
>>Tinyos-help mailing list
>>Tinyos-help@millennium.berkeley.edu
>>https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>Prasant Kumar Misra._______________________________________________
>Tinyos-help mailing list
>Tinyos-help@millennium.berkeley.edu
>https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Prasant Kumar Misra.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to