Wednesday, 28 August 2013

Install contiki-os with Arduino Uno

My Operating system: ubuntu 12.04 TLS and install Arduino IDE,ttylog

Steps :-
1. Download the contiki-os version from
2. To compile hello world program navigate to examples/hello-world
# To compile the code

You might see some compile time error and resolve one by one...
3. To generate a hex file
avr-objcopy hello-world.arduino -j .text -j .data -O ihex hello-world.hex

4. Connect the board with laptop and copy hex file to board. 
avrdude -D -p atmega328p -c arduino -P /dev/ttyACM0 -b 115200  -U flash:w:hello-world.hex:i -v -C /usr/share/arduino/hardware/tools/avrdude.conf

/dev/ttyACM0 --> Serial port detected by your laptop
/usr/share/arduino/hardware/tools/avrdude.conf --> conf file for avrdude. This file is created by Arduino IDE.

5. In console run the below command and reset your Arduino board
          ttylog -V -d /dev/ttyACM0 -b 9600
You will able see the "Hello world" serial port.


  1. Hello,

    Do you know how to load a kind of program on Contiki that get datas from a sensor connected to the Uno board ?

  2. hey mate.. the arduino conf file goes to the share folder when you install the arduino core.. sudo apt-get install arduino-core ... thought you shoud know this helped a lot.. thanks :)

  3. contiki-arduino was deleted, do you have an alternative solution