Arduino Due support?

Hello,

I have just joined this list and as it usually is in search for help.

I work on fresh clone from repo. I succesfully went through "The quickest start" on "native" machine. However, I couldn't figure out how to compile even the simplest example for Arduino Due:

(107) shikotsu arduino_hello-world: make all BOARD=arduino-due There are unsatisfied feature requirements: arduino

EXPECT ERRORS!

Building application "arduino_hello-world" for "arduino-due" with MCU "sam3".

In file included from /tmp/RIOT/examples/arduino_hello-world/_sketches.cpp:1:0: /tmp/RIOT/sys/arduino/include/arduino.hpp:26:27: fatal error: arduino_board.h: No such file or directory   #include "arduino_board.h"                             ^ compilation terminated. /tmp/RIOT/Makefile.base:66: recipe for target '/tmp/RIOT/examples/arduino_hello-world/bin/arduino-due/arduino_hello-world/_sketches.o' failed make[1]: *** [/tmp/RIOT/examples/arduino_hello-world/bin/arduino-due/arduino_hello-world/_sketches.o] Error 1 /tmp/RIOT/examples/arduino_hello-world/../../Makefile.include:215: recipe for target 'all' failed make: *** [all] Error 2

I know that probably there is an error between keyboard and chair but any technical solution is appreciated :slight_smile:

Kind regards, Lukasz Makowski

Hello Łukasz,

`arduino_hello-world` is an example application that showcases the Ardunino API support within RIOT. Currently, the Arduino API is only supported for the stm32f4discovery.

To use RIOT without the Ardunio API, you can simply build the normal `hello_world` or `default` example for your board.

You do not need the Arduino API to compile for your arduino-due board (:

Best, Cenk

Hi Łukasz can you confirm hello_world (basic version, not arduino_hello-world) works? Best, Emmanuel

W dniu 15.01.2016 o 11:07, Emmanuel Baccelli pisze:

Hi Łukasz can you confirm hello_world (basic version, not arduino_hello-world) works?

Hi Emmanuel,

on "native"? Sure it does.

(21) shikotsu examples: cd hello-world/ (22) shikotsu hello-world: make Building application "hello-world" for "native" with MCU "native".

"make" -C /home/user/Projekty/RIOT/boards/native "make" -C /home/user/Projekty/RIOT/boards/native/drivers "make" -C /home/user/Projekty/RIOT/core "make" -C /home/user/Projekty/RIOT/cpu/native "make" -C /home/user/Projekty/RIOT/cpu/native/periph "make" -C /home/user/Projekty/RIOT/drivers "make" -C /home/user/Projekty/RIOT/sys "make" -C /home/user/Projekty/RIOT/sys/auto_init     text data bss dec hex filename    23978 400 47812 72190 119fe /home/user/Projekty/RIOT/examples/hello-world/bin/native/hello-world.elf (23) shikotsu hello-world: file /home/user/Projekty/RIOT/examples/hello-world/bin/native/hello-world.elf /home/user/Projekty/RIOT/examples/hello-world/bin/native/hello-world.elf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d46e5c58d9a3c7bc345b40692f8055a1351d7f5b, not stripped (24) shikotsu hello-world: /home/user/Projekty/RIOT/examples/hello-world/bin/native/hello-world.elf RIOT native interrupts/signals initialized. LED_GREEN_OFF LED_RED_ON RIOT native board initialized. RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2016.03-devel-153-gc644f8-shikotsu) Hello World! You are running RIOT on a(n) native board. This board features a(n) native MCU.

Regards, Lukasz

OK, but how about hello-world example on your Arduino Due I’m talking about this example https://github.com/RIOT-OS/RIOT/tree/master/examples/hello-world

Hello Łukasz,

You can also compile the same example application (`hello_world`) for your arduino-due board instead of native with`BOARD=arduino-due make clean all`

Best, Cenk