chipKIT® Development Platform

Inspired by Arduino™

Support using command line

Created Fri, 24 Oct 2014 01:40:59 +0000 by atriaharsha


atriaharsha

Fri, 24 Oct 2014 01:40:59 +0000

Hello, I am very new to Arduino, In my project I am trying to connect and program my Arduino from Raspberry PI, Since my PI only has command prompt interface to access it, I would be requiring command line interface help to program my UNO32 Arduino.. Please guide me through the procedure how to compile and upload from basics.

Thanks


majenko

Fri, 24 Oct 2014 09:32:17 +0000

I would suggest writing the program on your PC in either MPIDE or UECIDE, then copying the .hex file over to the Pi for uploading. Compiling on the Pi itself can be painfully slow, and crafting makefiles would be the optimum way of doing the compilation (not a trivial task).

For uploading from the Pi you can either do it manually, and I have an application note to describe how: [url]http://doc.majenko.co.uk/an/AN1938.pdf[/url]

Alternatively you could set your Pi up in the same way I set it up for my "remote programming a chipkit pi" blog post - but replace a the ckPI with an Uno32, and tweak the configuration for UECIDE to identify an Uno32 not a ckPI - a little more involved to get going, but in the long run would save you time - especially if you're going to be uploading lots of times.


atriaharsha

Sun, 26 Oct 2014 12:18:50 +0000

Hello Thanks for the reply, Most important to consider in my case is, I don't have UI interface for programing and sending/uploading the firmware to UNO32 is not an issue, since the MPIDE has avrdude for raspberry pi, I wanna know how i can generate the hex files from the .ino format sketches in command line .. since i will be accessing the pi remotely and first of all my RPI is configured with small kernal with real time support, it doesnt have graphical libraries or UI rendering capabilities. So my only option is command line make file and compliation.. I read these guys topic on how to but i didnt understand, since i am very mew to audrino

  1. http://www.mjoldfield.com/atelier/2009/02/arduino-cli.html
  2. https://github.com/sudar/Arduino-Makefile/pull/98

atriaharsha

Mon, 27 Oct 2014 16:25:19 +0000

Hey So basically I followed the steps from Arduino-makefile project and created a make file, The process started to build actually but I ran into errors which i posted at the end in this page http://chipkit.net/forum/viewtopic.php?f=6&t=3000&p=12711#p12711

Then I guess the problem was more complicated than i thought after reading this http://chipkit.net/forum/viewtopic.php?f=6&t=3037

So they decided to make changes in Arduino-Makefile https://github.com/sudar/Arduino-Makefile/pull/256

I have downloaded the master version of Arduino-Makefile, I dont know if the change is reflected but its not compiling .. Same error please walk me through the process, There should be a simple guide for this process.. I guess So that it will be helpfull how to make compilation on command prompt