My Operating system: ubuntu 12.04 TLS and install Arduino IDE,ttylog
Steps :-
1. Download the contiki-os version from https://github.com/contiki/contiki-arduino/archive/master.zip
2. To compile hello world program navigate to examples/hello-world
# To compile the code
make TARGET=arduino ARDUINO_MODEL=Uno
make TARGET=arduino ARDUINO_MODEL=Uno
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.
Hello,
ReplyDeleteDo you know how to load a kind of program on Contiki that get datas from a sensor connected to the Uno board ?
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 :)
ReplyDeletecontiki-arduino was deleted, do you have an alternative solution
ReplyDelete