Trial and Error: Getting Contiki OS Up and Running

This is the diary of my exploration as I try to get Contiki OS running on a TI CC2650 Launchpad using an Ubuntu 16.04 virtual machine running on a MacBook Pro running High Sierra.

Let's begin.

sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc binutils-avr gcc-avr gdb-avr avr-libc avrdude binutils-arm-none-eabi gcc-arm-none-eabi gdb-arm-none-eabi openjdk-8-jdk openjdk-8-jre ant libncurses5-dev doxygen srecord git

RE: https://github.com/contiki-os/contiki/wiki/Setup-contiki-toolchain-in-ubuntu-13.04

"This will allow you to cross-compile for MSP430- and AVR-platforms."

git clone --recursive git://github.com/contiki-os/contiki.git contiki

This should get us the latest Contiki. (Don't forget the --recursive)

Change into the contiki directory

git submodule update --init --recursive
cd examples/hello-world
make TARGET=native hello-world
./hello-world.native

It looks good at this point.

Contiki-3.x-3341-g80dbe5c started with IPV6, RPL
Rime started with address 1.2.3.4.5.6.7.8
MAC nullmac RDC nullrdc NETWORK sicslowpan
Tentative link-local IPv6 address fe80:0000:0000:0000:0302:0304:0506:0708
Hello, world
cd ~/contiki/examples/cc26xx
make TARGET=srf06-cc26xx BOARD=launchpad/cc2650

Yay! It compiled without errors.

Leave a Reply

Your email address will not be published. Required fields are marked *