I have begun a project that involves using data collected by Tmote Sky 
units (telosb platform, MSP430 + CC2420) but am having problems 
installing the TinyOS development environment/compiling the first 
application.

=====================

I have installed;

local/nesc 1.3.1-1
local/ncc 2.8-1
local/tinyos 2.1.1-3
local/tinyos-tools 1.4.0-2
local/binutils-msp430 2.20.1-3
local/gcc-msp430 4.4.4-3
local/msp430-libc 20100829-2
community/jdk 6u21-1 (Java 1.6)
community/jre 6u21-1


Platform is Archlinux x86_64;

Linux reddawn 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST 2010 
x86_64 Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz GenuineIntel GNU/Linux

=====================

Output of tos-check-env;

[...@reddawn ~]$ tos-check-env
Path:
     /bin
     /usr/bin
     /sbin
     /usr/sbin
     /opt/java/bin
     /opt/java/jre/bin
     /usr/lib/perl5/core_perl/bin

Classpath:

     /opt/tinyos-2.1.1/support/sdk/java/tinyos.jar

--> WARNING: CLASSPATH may not include '.' (that is,  the symbol for the 
current working directory). Please add '.' to your CLASSPATH or you may 
experience configuration problems.


rpms:


nesc:
     /usr/bin/nescc
     Version: nescc: 1.3.1


perl:
     /usr/bin/perl
     Version: v5.12.1) built for x86_64-linux-thread-multi

flex:
     /usr/bin/flex

bison:
     /usr/bin/bison

java:
     /opt/java/bin/java

--> WARNING: The JAVA version found first by tos-check-env may not be 
version 1.4 or version 1.5one of which is required by TOS. Please ensure 
that the located Java version is 1.4 or 1.5

graphviz:
     /usr/bin/dot
     dot - graphviz version 2.26.3 (20100126.1600)

--> WARNING: The graphviz (dot) version found by tos-check-env is not 
1.10. Please update your graphviz version if you'd like to use the 
nescdoc documentation generator.


tos-check-env completed with errors:

--> WARNING: CLASSPATH may not include '.' (that is,  the symbol for the 
current working directory). Please add '.' to your CLASSPATH or you may 
experience configuration problems.
--> WARNING: The JAVA version found first by tos-check-env may not be 
version 1.4 or version 1.5one of which is required by TOS. Please ensure 
that the located Java version is 1.4 or 1.5
--> WARNING: The graphviz (dot) version found by tos-check-env is not 
1.10. Please update your graphviz version if you'd like to use the 
nescdoc documentation generator.


=====================

When I try to compile the Blink application I am presented to the 
following errors;

[...@reddawn Blink]$ make telosb
mkdir -p build/telosb
     compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -fnesc-separator=__ 
-Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c 
-board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\" 
-DIDENT_USERNAME=\"cj\" -DIDENT_HOSTNAME=\"reddawn\" 
-DIDENT_USERHASH=0x44c45aa7L -DIDENT_TIMESTAMP=0x4ca60354L 
-DIDENT_UIDHASH=0x630b51c3L  BlinkAppC.nc -lm
In file included from 
/opt/tinyos-2.1.1/tos/platforms/telosb/PlatformLedsC.nc:12,
                  from /opt/tinyos-2.1.1/tos/system/LedsC.nc:38,
                  from BlinkAppC.nc:45:
In component `HplMsp430GeneralIOC':
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:227: 
syntax error before `;'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:321: 
cannot find `P30'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:322: 
cannot find `P31'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:323: 
cannot find `P31'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:324: 
cannot find `P32'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:325: 
cannot find `P33'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:326: 
cannot find `P33'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:327: 
cannot find `P34'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:328: 
cannot find `P35'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:330: 
cannot find `P50'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:331: 
cannot find `P51'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:332: 
cannot find `P52'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:333: 
cannot find `P53'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:334: 
cannot find `P36'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:335: 
cannot find `P37'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:337: 
cannot find `P60'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:338: 
cannot find `P61'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:339: 
cannot find `P62'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:340: 
cannot find `P63'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:341: 
cannot find `P64'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:342: 
cannot find `P65'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:343: 
cannot find `P66'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:344: 
cannot find `P67'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:346: 
cannot find `P66'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:347: 
cannot find `P67'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:349: 
cannot find `P67'
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:350: 
cannot find `P57'
In component `PlatformLedsC':
/opt/tinyos-2.1.1/tos/platforms/telosb/PlatformLedsC.nc:22: cannot find 
`Port54'
/opt/tinyos-2.1.1/tos/platforms/telosb/PlatformLedsC.nc:25: cannot find 
`Port55'
/opt/tinyos-2.1.1/tos/platforms/telosb/PlatformLedsC.nc:28: cannot find 
`Port56'
make: *** [exe0] Error 1


=====================

PlatformLedsC.nc as taken from one of the tutorials;

[...@reddawn Blink]$ cat 
/opt/tinyos-2.1.1/tos/platforms/telosb/PlatformLedsC.nc
#include "hardware.h"

  configuration PlatformLedsC {
    provides interface GeneralIO as Led0;
    provides interface GeneralIO as Led1;
    provides interface GeneralIO as Led2;
    uses interface Init;
  }

  implementation {
    components
        HplMsp430GeneralIOC as GeneralIOC
      , new Msp430GpioC() as Led0Impl
      , new Msp430GpioC() as Led1Impl
      , new Msp430GpioC() as Led2Impl
      ;
    components PlatformP;

    Init = PlatformP.LedsInit;

    Led0 = Led0Impl;
    Led0Impl -> GeneralIOC.Port54;

    Led1 = Led1Impl;
    Led1Impl -> GeneralIOC.Port55;

    Led2 = Led2Impl;
    Led2Impl -> GeneralIOC.Port56;

}


=====================

Regards,
CJ Davies
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to