you are trying to compile 2.1.1 using a newer toolchain. you need to ...
a) upgrade to 2.1.2 the current release and b) upgrade to the 4.6.3 toolchain. Try looking at http://tinyprod.net/repos/debian/ And then install the msp430-46 toolchain On Tue, Dec 4, 2012 at 1:35 AM, Resul DOĞAN <[email protected]>wrote: > Can you help ! I get the error > > > > mkdir -p build/telosa > compiling rdxSenseAppC to a telosa binary > ncc -o build/telosa/main.exe -Os -O -mdisable-hwmul -fnesc-separator=__ > -Wall -Wshadow -Wnesc-all -target=telosa -fnesc-cfile=build/telosa/app.c > -board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"rdxSenseAppC\" > -DIDENT_USERNAME=\"rdx-tinyos\" -DIDENT_HOSTNAME=\"ubuntu\" > -DIDENT_USERHASH=0xcc509be2L -DIDENT_TIMESTAMP=0x50bdb9c0L > -DIDENT_UIDHASH=0x551f7cacL rdxSenseAppC.nc -lm > In file included from > /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:29, > from /opt/tinyos-2.1.1/tos/platforms/telosa/hardware.h:5! > , > from /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41: > /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/io.h:1:2: > warning: #warning <io.h> is deprecated, please include <msp430.h> > In file included from > /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:30, > from /opt/tinyos-2.1.1/tos/platforms/telosa/hardware.h:5, > from /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41: > /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/signal.h:43:2: > warning: #warning msp430-libc <signal.h> deprecated, using <legacymsp430.h> > In file included from rdxSenseAppC.nc:6: > In component `rdxSenseC': > rdxSenseC.nc: In function `Humidity.read! Done': > rdxSenseC.nc:51: warning: passing argument 2 of `Packet.getP ayload' makes > integer from pointer without a cast > In file included from > /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:38, > from /opt/tinyos-2.1.1/tos/system/LedsC.nc:38, > from rdxSenseAppC.nc:6: > In component `HplMsp430GeneralIOC': > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc: At top > level: > /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:296: cannot > find `P30' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:297: cannot > find `P31' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:298: cannot > find `P32' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:299: cannot > find `P33' > /opt/tiny! os-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:300: > cannot find `P34' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:301: cannot > find `P35' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:303: cannot > find `P50' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:304: cannot > find `P51' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:305: cannot > find `P52' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:306: cannot > find `P53' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:307: cannot > find `P36' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:308: cannot > find `P37' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:310: cannot > find `P60' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:311: cannot > find `P61' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:312: cannot > find `P62' > /opt/tinyos-2.1.1/! tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:313: > cannot find `P63' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:314: cannot > find `P64' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:315: cannot > find `P65' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:316: cannot > find `P66' > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:317: cannot > find `P67' > In component `PlatformLedsC': > /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:48: cannot find > `Port54' > /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:51: cannot find > `Port55' > /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:54: cannot find > `Port56' > In file included from > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430InterruptC.nc:53, > from > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:71, > &! nbsp; from > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HalSensirionSht11C.nc:51, > from > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/SensirionSht11C.nc:59, > from rdxSenseAppC.nc:7: > In component `HplMsp430InterruptP': > /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430InterruptP.nc:262: syntax > error before `}' > In component `HplSensirionSht11C': > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:56: > cannot find `Port15' > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:57: > cannot find `Port16' > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:58: > cannot find `Port17' > /opt/tinyos-2.1.1/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:73: > cannot find `Port15' > ! In component `rdxSenseAppC': > rdxSenseAppC.nc:21: `AM_rdxSenseCSG' u ndeclared here (not in a function) > rdxSenseAppC.nc:14: no match > rdxSenseAppC.nc:15: cannot find `SplitControl' > make: *** [exe0] Hata 1 > > > > > ..........................................................rdxSenseAppC.nc............................ > > generic configuration rdxSenseAppC() > { > > } > implementation { > components MainC, rdxSenseC, LedsC; > components new SensirionSht11C() as Sensor; > > MainC.Boot <- rdxSenseC; > rdxSenseC.Leds -> LedsC; > > rdxSenseC.Temperature -> Sensor.Temperature; > rdxSenseC.Humidity -> Sensor.Humidity; > rdxSenseC.HalSht11Advanced -> Sensor; > rdxSenseC.SensorControl -> Sensor.SplitControl; > > components new TimerMilliC() as Timer0; > rdxSenseC.Timer0 -> Timer0; > > components SerialActiveMessageC as AM; > rdxSenseC.AMSend -> AM.AMSend[AM_rdxSenseCSG]; > rdxSenseC.Packet -> AM;! > rdxSenseC.MsgControl -> AM; > } > > > .......................................rdxSenseC.nc-................................................ > > #include "TestSensor.h" > > module rdxSenseC > { > uses interface Boot; > > uses interface Timer<TMilli> as Timer0; > > uses interface Read<uint16_t> as Temperature; > uses interface Read<uint16_t> as Humidity; > uses interface HalSht11Advanced; > uses interface SplitControl as SensorControl; > uses interface SplitControl as MsgControl; > > uses interface Leds; > uses interface AMSend; > uses interface Packet; > } > > implementation > { > message_t packet; > > event void Boot.booted() { > call SensorControl.start(); > } > > event void SensorControl.startDone(error_t error) { > call MsgControl.start(); > }** > event void SensorControl.stopDone(error_t error) { } > > event void MsgControl.startDone(error_t error) { > call HalSht11Advanced.getVoltageStatus(); > call Timer0.startPeriodic( 100 ); > } > > event void MsgControl.stopDone(error_t error) { } > > event void Timer0.fired() { > call Temperature.read(); > call Humidity.read(); > } > > event void Temperature.readDone(error_t result, uint16_t val) { > call Leds.led0Toggle(); > } > > event void Humidity.readDone(error_t result, uint16_t val) { > TestSensorMsg *rcm = (TestSensorMsg *)call Packet.getPayload(&packet, > NULL); > call Leds.led1Toggle(); > if (call Packet.maxPayloadLength() < sizeof(TestSensorMsg)) { > return; > } > rcm->value = val; > > ca! ll AMSend.send(AM_BROADCAST_ADDR, &packet, sizeof(TestSensorMsg)); > } > > event void HalSht11Advanced.getVoltageStatusDone(error_t error, bool > isLow) {} > > event void HalSht11Advanced.setHeaterDone(error_t error) {} > > event void HalSht11Advanced.setResolutionDone(error_t error) {} > > event void AMSend.sendDone(message_t* bufPtr, error_t error) { > return; > } > > } > > > _______________________________________________________________________________________________ > > Resul DOĞAN > > EÜAŞ Atatürk HES İşletme Müdürlüğü > Bilgisayar Mühendisi > > 0414 721 20 21-(2369) > > ! > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
