Skip to content
Harald edited this page Mar 2, 2018 · 23 revisions

OSD-Contiki is an operating system for resource-constrained devices in the Internet of Things. OSD-Contiki contains an RFC-compliant, low-power IPv6 communication stack, enabling Internet connectivity. The system runs on a variety of platforms based on energy-efficient architectures such as the Atmel and ARM Cortex-M3/M4 and the Texas Instruments MSP430. The code footprint is on the order of a 100 kB, and the memory usage can be configured to be as low as 10 kB. The source code is available as open source with a 3-clause BSD license.The Parts of Arduino Implemetation are under the LGPL-License.

Documentation

Setting up OSD-Contiki

Getting Help

Website

Check the OSD-Contiki website

Stackoverflow

Please submit your questions with the Contiki tag on Stackoverflow

Bug reports:

Use the Issue Tracker provided by Github.

Mailing List

For Contiki development discussion you can use the mailing list

IRC

Join #contiki-os channel at irc.freenode.net for live community discussion: http://freenode.net/irc_servers.shtml

Code Contributions

Have code that you'd like to contribute to Contiki? Great! See Code Contributions for instructions how to get it included in the Contiki tree!

Platforms Guides

Set up an AVR Build Chain

If you have downloaded OSD-Contiki, you need to install an AVR toolchain if you haven't already done so.

On Linux: AVR-GCC Build Environment:

Install GCC for AVR for building and avrdude for programming, which are both available in the standard debian packages.

  apt-get install gcc-avr avr-libc avrdude

To verify your AVR build environnement installation, try to compile Contiki applications for AVR platforms:

  cd contiki/examples/hello-world
  make TARGET=osd-merkur

This generates hello-world.osd-merkur, an ELF-formatted version of the Contiki Hello World! application, built for the Merkurboard.

On Windows: AVR Studio Build Environment

Install both AVR Studio, an IDE for developing applications for AVR devices, and WinAVR which provides compiling and programming support.

Build Contiki's slip-radio application for the Merkurboard

  cd $CONTIKI_HOME/examples/ipv6/slip-radio
  make TARGET=osd-merkur

It should produce slip-radio.osd-merkur which is the ELF file that you will use to program the Merkurboard.

Program the Slip-Radio firmware on the Merkurboard

To load the program into the device, you have to plug a usb/serial adapter on the pin header located on the head of the module.

Program using AVR Dude

Run the following command:

  avrdude -pm128rfa1 -c arduino -P/dev/ttyUSB0 -b57600 -e -U flash:w:slip-radio.osd-merkur.hex:a -U eeprom:w:alip-radio.osd-merkur.eep:a

The command specifies that we use arduino bootloader. If you are not sure what to use here, you can find you programmer option by running the command:

  avrdude -c asdf

Program using AVR Studio

Open the programming panel

JTAG connection

Select your tool and select the atmega1281 device (the read button allow you to be sure that the communication between your tool and the atmel module works)

On the memories panel you can program the device.

Clone this wiki locally