Installing Blink on the Imote2

From Cyber-Physical Systems Laboratory
Revision as of 02:05, 25 August 2009 by Liangfok (talk | contribs) (New page: This page displays the output of a successful compilation and installation of Blink, an application that periodically blinks the red LED. It is here to serve as a reference for what correc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page displays the output of a successful compilation and installation of Blink, an application that periodically blinks the red LED. It is here to serve as a reference for what correct output should look like. There are actually two commands. The first compiles Blink for the Imote2 platform. The second command uses USBLoaderHost.exe to program the binary image onto the mote.

Liang Fok@liang-mbp /opt/tinyos-1.x/apps/Blink
$ make imote2
mkdir -p build/imote2
xscale-elf-as -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-1.x/to
s/platform/pxa27x/../imote2/flash.s /opt/tinyos-1.x/tos/platform/pxa27x/../imote
2/binarymover.s /opt/tinyos-1.x/tos/platform/pxa27x/barecrt.s /opt/tinyos-1.x/to
s/platform/pxa27x/mmu_table.s /opt/tinyos-1.x/tos/platform/pxa27x/util.s  -o bui
ld/imote2/asms.o
cd /opt/tinyos-1.x/tos/platform/pxa27x/lib; make; cd /opt/tinyos-1.x/tos/platfor
m/imote2/devices/USB/lib; make;
make[1]: Entering directory `/opt/tinyos-1.x/beta/platform/pxa27x/lib'
make[1]: `libimote2.a' is up to date.
make[1]: Leaving directory `/opt/tinyos-1.x/beta/platform/pxa27x/lib'
make[1]: Entering directory `/opt/tinyos-1.x/beta/platform/imote2/devices/USB/li
b'
make[1]: `libusb.a' is up to date.
make[1]: Leaving directory `/opt/tinyos-1.x/beta/platform/imote2/devices/USB/lib
'
    compiling Blink to a imote2 binary
ncc -o build/imote2/main.exe -O1 -g -I/opt/tinyos-1.x/tos/lib/CC2420Radio -I/opt
/tinyos-1.x/tos/lib/Flash -I/opt/tinyos-1.x/tos/platform/imote2/devices/USB/ -I/
opt/tinyos-1.x/tos/platform/imote2/devices/USB/lib  -DAUTO_BATTERY_MONITORING=1
-Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=imote2 -fnesc-cfile=bu
ild/imote2/app.c -board= -DBOOTLOADER -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USE
R_ID=\"LiangFok\" -DIDENT_HOSTNAME=\"liang-mbp\" -DIDENT_USER_HASH=0x2e273585L -
DIDENT_UNIX_TIME=0x4a934635L -DIDENT_UID_HASH=0xf4073381L Blink.nc -lm  build/im
ote2/asms.o /opt/tinyos-1.x/tos/platform/pxa27x/lib/libimote2.a /opt/tinyos-1.x/
tos/platform/pxa27x/../imote2/devices/USB/lib/libusb.a
    compiled Blink to build/imote2/main.exe
          135604 bytes in ROM
           11940 bytes in RAM
            9216 bytes in STACK
          240988 bytes available in HEAP
xscale-elf-objcopy --output-target=binary build/imote2/main.exe build/imote2/mai
n.bin.out
dwarf2bd -nc build/imote2/main.exe
make: dwarf2bd: Command not found
make: *** [bin] Error 127