Programming Due with ino-tool

Hi!

Does anyone have a clue on how to program the Due using ino-tool.

$ ino list-models
Supported Arduino board models are:
         uno: [DEFAULT] Arduino Uno
   atmega328: Arduino Duemilanove w/ ATmega328
   diecimila: Arduino Diecimila or Duemilanove w/ ATmega168
     nano328: Arduino Nano w/ ATmega328
        nano: Arduino Nano w/ ATmega168
    mega2560: Arduino Mega 2560 or Mega ADK
        mega: Arduino Mega (ATmega1280)
    leonardo: Arduino Leonardo
     esplora: Arduino Esplora
       micro: Arduino Micro
     mini328: Arduino Mini w/ ATmega328
        mini: Arduino Mini w/ ATmega168
    ethernet: Arduino Ethernet
         fio: Arduino Fio
       bt328: Arduino BT w/ ATmega328
          bt: Arduino BT w/ ATmega168
  LilyPadUSB: LilyPad Arduino USB
  lilypad328: LilyPad Arduino w/ ATmega328
     lilypad: LilyPad Arduino w/ ATmega168
    pro5v328: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328
       pro5v: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168
      pro328: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
         pro: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168
   atmega168: Arduino NG or older w/ ATmega168
     atmega8: Arduino NG or older w/ ATmega8
robotControl: Arduino Robot Control
  robotMotor: Arduino Robot Motor
arduino_due_x is not a valid board model

i have tried installing newer versions of arduino ide. also using ino list-models -d and the path to the 1.6.4 installation. No changes and no luck.

Is there any additional package that needs to be installed for SAM/cortex support?

I got it to work.

Instead got this error:

avr-gcc: error: unrecognized argument in option '-mmcu=cortex-m3'

Does the ino-tool support the Due?

arduino_due_x is not a valid board model

Yes. Thats what i got working.

Now when i do list-models i get:

larsemil@thauriel ~/Arduino/Anna $ ino list-models
      flora8: Adafruit Flora
       gemma: Adafruit Gemma 8MHz
    trinket3: Adafruit Trinket 8MHz
    trinket5: Adafruit Trinket 16MHz
 protrinket5: Pro Trinket 5V/16MHz (USB)
 protrinket3: Pro Trinket 3V/12MHz (USB)
protrinket5ftdi: Pro Trinket 5V/16MHz (FTDI)
protrinket3ftdi: Pro Trinket 3V/12MHz (FTDI)
         yun: Arduino Yún
         uno: [DEFAULT] Arduino Uno
   diecimila: Arduino Duemilanove or Diecimila
        nano: Arduino Nano
        mega: Arduino Mega or Mega 2560
     megaADK: Arduino Mega ADK
    leonardo: Arduino Leonardo
       micro: Arduino Micro
     esplora: Arduino Esplora
        mini: Arduino Mini
    ethernet: Arduino Ethernet
         fio: Arduino Fio
          bt: Arduino BT
  LilyPadUSB: LilyPad Arduino USB
     lilypad: LilyPad Arduino
         pro: Arduino Pro or Pro Mini
    atmegang: Arduino NG or older
robotControl: Arduino Robot Control
  robotMotor: Arduino Robot Motor
arduino_due_x_dbg: Arduino Due (Programming Port)
arduino_due_x: Arduino Due (Native USB Port)

so now there is support.

Allthough i get the same error as reported here:

The Due is ARM. Not AVR.

avr-gcc: error:

There is no need in ino tool anymore.
The current Arduino framework can be run from the command line.

If you downloaded the framework into the directory arduino inside of your home directory: /home/user/arduino ; run the framework for the first time and select the settings for Due and the directory for projects "Sketchbook location", for example, /home/user/Sketchbook.

Then you can create new projects like this:

  • create a directory in /home/user/Sketchbook, for example, vs: /home/user/Sketchbook/vs
  • create the subdirectory build: /home/user/Sketchbook/vs/build
  • create the file for the project vs.ini: /home/user/Sketchbook/vs/vs.ino
  • create the build and upload scripts:

build.sh

#!/bin/bash

~/arduino/arduino --pref build.path="/home/user/Sketchbook/vs/build" --verify ~/Sketchbook/vs/vs.ino

upload.sh

#!/bin/bash

~/arduino/arduino --pref build.path="/home/user/Sketchbook/vs/build" --upload ~/Sketchbook/vs/vs.ino