Friday, May 11, 2012

TinyOS Errors and Solutions

Hi All,

I am posting here some of the errors which I get and spend so much of time in solving it as some solutions are not available on web. Again, this is my own opinion, it has no relation with anybody. I will update the post the way I get errors while using it.This way, even I can track the changes I did in my code and people can get the answers.

1. If you try to install apps using telosb on tinyos and if you use tinyos version 2.1.1 or previous, you might get error over msp430. The simple workout solution to the problem is to use version 2.1.2. you can get this version at http://tinyos-main.googlecode.com/svn/tags/release-2.1.2-rc1/
2. Please find this link for problem with sender address in Motelab. 

4 comments:

Unknown said...

I only had to replace that file "HplMsp430GeneralIOC.nc", and it worked perfectly after that, thanks again.

Unknown said...

I followed your guide to install on Ubuntu 12.04 but I get the following error while trying make Blink program.


saeid@saeid-Satellite-C660:/opt/tinyos-2.1.1/apps/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=\"saeid\" -DIDENT_HOSTNAME=\"saeid-Satellite\" -DIDENT_USERHASH=0xc492bc3fL -DIDENT_TIMESTAMP=0x5049e375L -DIDENT_UIDHASH=0xfe37ca11L BlinkAppC.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/telosb/hardware.h:4,
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 is deprecated, please include
In file included from /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:30,
from /opt/tinyos-2.1.1/tos/platforms/telosb/hardware.h:4,
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 deprecated, using
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 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:

Unknown said...

Omar's solution worked for me as well! Just replace that file from 2.1.2 package into your already installed 2.1.1

Unknown said...

I am back again! I replaced all files/folders from 2.1.2 to my existing 2.1.1 and finally I could make and test Blink and Sense apps on telosb. But I can not do the same for Oscilloscope app as I get the following errors:

saeid@saeid-Satellite-C660:/opt/tinyos-2.1.1/apps/Oscilloscope$ make telosb
mkdir -p build/telosb
compiling OscilloscopeAppC to a telosb binary

WARNING: Minimum recommended msp430-gcc version for this TinyOS release is 4.6.3!!!

ncc -o build/telosb/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"OscilloscopeApp\" -DIDENT_USERNAME=\"saeid\" -DIDENT_HOSTNAME=\"saeid-Satellite\" -DIDENT_USERHASH=0xc492bc3fL -DIDENT_TIMESTAMP=0x5050a0a4L -DIDENT_UIDHASH=0xa5bc5385L OscilloscopeAppC.nc -lm
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/cc2420/HplCC2420InterruptsC.nc:57,
from /opt/tinyos-2.1.1/tos/chips/cc2420/control/CC2420ControlC.nc:70,
from /opt/tinyos-2.1.1/tos/chips/cc2420/csma/CC2420CsmaC.nc:58,
from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:63,
from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:75,
from /opt/tinyos-2.1.1/tos/platforms/telosa/ActiveMessageC.nc:76,
from OscilloscopeAppC.nc:22:
In component `HplMsp430InterruptP':
/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430InterruptP.nc:262: syntax error before `}'
In component `HplCC2420InterruptsC':
/opt/tinyos-2.1.1/tos/platforms/telosa/chips/cc2420/HplCC2420InterruptsC.nc:60: cannot find `Port14'
/opt/tinyos-2.1.1/tos/platforms/telosa/chips/cc2420/HplCC2420InterruptsC.nc:61: cannot find `Port10'
In file included from /opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkC.nc:85,
from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:66,
from /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420ActiveMessageC.nc:75,
from /opt/tinyos-2.1.1/tos/platforms/telosa/ActiveMessageC.nc:76,
from OscilloscopeAppC.nc:22:
In component `CC2420TinyosNetworkP':
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc: In function `BareSend.send':
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc:96: `AM_OVERHEAD' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc:96: (Each undeclared identifier is reported only once
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc:96: for each function it appears in.)
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc: In function `BareSend.maxPayloadLength':
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc:104: `AM_OVERHEAD' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc: In function `SubReceive.receive':
/opt/tinyos-2.1.1/tos/chips/cc2420/lowpan/CC2420TinyosNetworkP.nc:137: `AM_OVERHEAD' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
In component `CC2420RadioC':
/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc: At top level:
/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420RadioC.nc:91: cannot find `BarePacket'
/opt/tinyos-2.1.1/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: warning: #warning Accessing TimerA for ADC12
make: *** [exe0] Error 1