[Tinyos-help] Unable to specify device ID

Magnus Morton magnusmorton at gmail.com
Sun Nov 14 14:44:07 PST 2010


As requested:

mkdir -p build/telosb
    compiling CobwebNodeAppC 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 -I/opt/tinyos-2.1.1/tos/lib/net
-I/opt/tinyos-2.1.1/tos/lib/net/le -I/opt/tinyos-2.1.1/tos/lib/net/ctp
-DIDENT_APPNAME=\"CobwebNodeAppC\" -DIDENT_USERNAME=\"magnus\"
-DIDENT_HOSTNAME=\"waterhouse\" -DIDENT_USERHASH=0x8acaece5L
-DIDENT_TIMESTAMP=0x4ce0652aL -DIDENT_UIDHASH=0x66a2ae57L  CobwebNodeAppC.nc
/opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
/opt/tinyos-2.1.1/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: warning:
#warning Accessing TimerA for ADC12
    compiled CobwebNodeAppC to build/telosb/main.exe
           29174 bytes in ROM
            1872 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
    writing TOS image
cp build/telosb/main.ihex build/telosb/main.ihex.out
    found mote on /dev/ttyUSB0 (using bsl,auto)
    installing telosb binary using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-telos-8
Mass Erase...
Transmit default password ...
Invoking BSL...
Transmit default password ...
Current bootstrap loader version: 1.61 (Device ID: f16c)
Changing baudrate to 38400 ...
Program ...
29206 bytes programmed.
Reset device ...
rm -f build/telosb/main.exe.out build/telosb/main.ihex.out

I am using TMote Sky motes.

Many thanks,


On 6 November 2010 06:50, Urs Hunkeler <urs.hunkeler at epfl.ch> wrote:

> Hi Magnus,
> Internally, the program is always compiled first with nodeID set to 1. In a
> second step the compiled ELF binary is analyzed, the position of the
> variable definition is extracted and the binary is then modified. After that
> the binary is converted to the Intel HEX format, which is then used to
> program the mote. It looks like the modification of the binary does not work
> (maybe a tool is missing?). Could you install the program on a mote and send
> us the exact output of the command (so we can see warning or error
> messages)? Also what type of motes do you use?
> Cheers,
> Urs
> On 11/6/10 12:02 AM, Magnus Morton wrote:
>> Hi,
>> I've been having problems when using my notebook linux machine, in that
>> I'm not able to specify the device ID when installing a program: the
>> device ID always defaults to 1. This used to work fine, and still works
>> on my desktop PC. I have tried reinstalling tinyos and have checked my
>> environment, but I cannot see anything wrong. Does anyone have any ideas
>> what might be wrong?
>> Best regards,
>> Magnus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101114/e121dce6/attachment.htm 

More information about the Tinyos-help mailing list