[Tinyos-help] Can't program Telos board from Linux

Cory Sharp cory.sharp at gmail.com
Sat Mar 19 13:10:18 PST 2005


Mark,

1) Rev A and Rev B use different methods to invoke the programmable
mode (boot strap loader, BSL) on the mote.  The Windows installer you
used probably set TELOS_REV=B for you.  So, instead of

    make telos install.0 bsl,/dev/ttyUSB0

try

    make telosb install.0 bsl,/dev/ttyUSB0

Alternatively, if you do this

    export TELOS_REV=B

then the plain "make telos" will work correctly.

2) It specifies TOS_LOCAL_ADDRESS for program you are uploading to the node.

3) Don't know.  Does motelist-linux or motelist-linux2 work for you
(in tinyos-1.x/tools/src/motelist)?

Cory


On Sat, 19 Mar 2005 11:31:27 -0900, Mark Lisee <fsmwl2 at uaf.edu> wrote:
>         I'm just starting to use TinyOS on a Moteiv Telos board (Rev B).  I've
> been able to use Windows based tools to program the board, but I would
> like to use it with Linux.  Under Linux, the compile succeeds, but the
> write to the Telos board fails.  I expect that the problem is something
> basic, but I can't figure out why it's failing.  I've followed all the
> recommendation listed in the telos-linux.pdf from Rice University.
> Everything looks like it should work.  (The output from the
> build/install and several system management commands is included below.)
>         My questions are:
>         - Why can't it download?  (Or, at least any ideas of what to look
> into.)
>         - What's the meaning of the ".0" in the make command?  Changing it
> didn't make any difference.
>         - What's the meaning of the bus and device numbers that lsusb
> displays?  I've found that the make has to use ttyUSB0, regardless of
> which USB port the board is plugged into.
> 
> Thanks,
> Mark
> 
> localhost 276> make telos install.0 bsl,/dev/ttyUSB0
> mkdir -p build/telos
>      compiling Blink to a telos binary
> ncc -o build/telos/main.exe -Os -mdisable-hwmul
> -I/opt/tinyos-1.x/tos/lib/CC2420Radio -I/opt/tinyos-1.x/tos/lib/Flash
> -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telos
> -fnesc-cfile=build/telos/app.c -board= -DIDENT_PROGRAM_NAME="Blink"
> -DIDENT_PROGRAM_NAME_BYTES="66,108,105,110,107,0"
> -DIDENT_USER_ID="mlisee"
> -DIDENT_USER_ID_BYTES="109,108,105,115,101,101,0"
> -DIDENT_HOSTNAME="localhost.locald"
> -
> DIDENT_HOSTNAME_BYTES="108,111,99,97,108,104,111,115,116,46,108,111,99,9
> 7,108,100,0" -DIDENT_USER_HASH=0x3cf98ddaL
> -DIDENT_UNIX_TIME=0x423c871cL Blink.nc -lm
> /opt/tinyos-1.x/tos/platform/msp430/MSP430Timer.nc: In function
> `MSP430ClockM$busyCalibrateDCO':
> /opt/tinyos-1.x/tos/platform/msp430/MSP430ClockM.nc:149: warning:
> `dco_curr' might be used uninitialized in this function
>      compiled Blink to build/telos/main.exe
>              2692 bytes in ROM
>                38 bytes in RAM
> msp430-objcopy --output-target=ihex build/telos/main.exe
> build/telos/main.ihex
>      writing TOS image
> /opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy
> --objdump msp430-objdump --target ihex build/telos/main.ihex
> build/telos/main.ihex.out-0 0
> Could not find symbol TOS_LOCAL_ADDRESS in build/telos/main.exe,
> ignoring symbol.
>      installing telos binary using bsl
> msp430-bsl --telos -c /dev/ttyUSB0 -r -e -I -p
> build/telos/main.ihex.out-0
> MSP430 Bootstrap Loader Version: 1.39-telos-7
> Mass Erase...
> 
> An error occoured:
> Timeout
> make: *** [program] Error 1
> localhost 277> /sbin/lsmod | grep -i "ftdi\|usb"
> ftdi_sio               18456   0
> usbserial              22268   0 [ftdi_sio]
> usb-uhci               27532   0 (unused)
> usbcore                83168   1 [ftdi_sio usbserial hid ehci-hcd
> usb-uhci]
> localhost 278> cat /proc/bus/usb/devices | grep -i telos
> S:  Product=Telos (Rev B 2004-09-27)
> localhost 279> /sbin/lsusb
> Bus 004 Device 001: ID 0000:0000
> Bus 003 Device 001: ID 0000:0000
> Bus 002 Device 001: ID 0000:0000
> Bus 001 Device 001: ID 0000:0000
> Bus 001 Device 002: ID 0403:6001 Future Technology Devices
> International, Ltd 8-bit FIFO
> localhost 280> /sbin/usbmodules --dev /proc/bus/usb/001/002
> ftdi_sio
> localhost 281>
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-help
> 
>


More information about the Tinyos-help mailing list