cmatthews
Posts: 88
Joined: Fri May 11, 2012 9:05 pm
Location: Wirral, UK

Programming the AVR from the Command Line with Ino

Sun Dec 08, 2013 10:11 pm

I recently got my hands on a Gertboard and have just followed Gordon's excellent instructions on working with the AVR chip. I pretty much exclusively SSH into the RPi from a laptop and so wanted a command line only way of writing, building and uploading Arduino sketches.

I found that it was straightforward to install and use Ino (http://www.inotool.org) to do the job, I just spent a few minutes figuring out how to choose the Gertboard as the target hardware, and to point the upload command to the correct serial port (it fails to autodetect).

I made a few notes (http://www.mydominion.co.uk/?page_id=287) which might save someone some time, but following Gordon's instructions (https://projects.drogon.net/raspberry-pi/gertboard/) and then the installation and quick start guide at ino.org (http://inotool.org/#installation) it is fairly easy to get up and running.
www.mydominion.co.uk

User avatar
[email protected]
Posts: 2020
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: Programming the AVR from the Command Line with Ino

Wed Dec 11, 2013 12:25 pm

cmatthews wrote:I recently got my hands on a Gertboard and have just followed Gordon's excellent instructions on working with the AVR chip. I pretty much exclusively SSH into the RPi from a laptop and so wanted a command line only way of writing, building and uploading Arduino sketches.

I found that it was straightforward to install and use Ino (http://www.inotool.org) to do the job, I just spent a few minutes figuring out how to choose the Gertboard as the target hardware, and to point the upload command to the correct serial port (it fails to autodetect).

I made a few notes (http://www.mydominion.co.uk/?page_id=287) which might save someone some time, but following Gordon's instructions (https://projects.drogon.net/raspberry-pi/gertboard/) and then the installation and quick start guide at ino.org (http://inotool.org/#installation) it is fairly easy to get up and running.
If you want to have a look at my Gertduino pages: https://projects.drogon.net/raspberry-p ... ega-setup/ there is a more up to date version of avrdude and a new avrsetup program. This works identical to the Gertboard stuff (and the config. files support both boards). The newer avrdude is much faster than the old one too.

And, although not relevant to the Gertboard, there is some code for the ATmega48p on the Gertduino - and if you're interested that can be used as a framework to compile your own code for the ATmega on the Gertboard (or any ATmega/Arduino) from the command-line using a Makefile and avr-gcc rather than the Arduino IDE.

-Gordon
--
Gordons projects: https://projects.drogon.net/

robbes
Posts: 144
Joined: Sun Jan 20, 2013 7:11 pm
Location: Canada - off the west coast

Re: Programming the AVR from the Command Line with Ino

Wed Dec 11, 2013 6:56 pm

cmatthews,
Your posted reference to http://www.ino.org should be to http://www.inotool.org
I don't know if it is possible for you to go back and edit the line.

User avatar
Gert van Loo
Posts: 2485
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Programming the AVR from the Command Line with Ino

Wed Dec 11, 2013 7:00 pm

robbes wrote:cmatthews,
Your posted reference to http://www.ino.org should be to http://www.inotool.org
I don't know if it is possible for you to go back and edit the line.
He can't, but I can: updated.

cmatthews
Posts: 88
Joined: Fri May 11, 2012 9:05 pm
Location: Wirral, UK

Re: Programming the AVR from the Command Line with Ino

Thu Dec 12, 2013 12:04 am

@ Gordon - thanks for the link. I will definitely try out the new avrdude.
@robbes and Gert - Well spotted, and thanks for fixing the link.
www.mydominion.co.uk

Return to “HATs and other add-ons”