Discussion:
Non-GUI Arduino IDE ?
(too old to reply)
Jason
2018-12-07 16:40:01 UTC
Permalink
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.

Thanks,
--
Jason
Joe
2018-12-07 16:50:01 UTC
Permalink
On Fri, 7 Dec 2018 10:28:48 -0600
Post by Jason
Does anyone know if there is a console based Arduino IDE available
for Debian? I am interested in making a portable programmer that
could be taken out on a job to edit and upload Arduino programs on
site, without messing with a mouse.
Or this?

https://github.com/sudar/Arduino-Makefile
--
Joe
Joe
2018-12-07 16:50:01 UTC
Permalink
On Fri, 7 Dec 2018 10:28:48 -0600
Post by Jason
Does anyone know if there is a console based Arduino IDE available
for Debian? I am interested in making a portable programmer that
could be taken out on a job to edit and upload Arduino programs on
site, without messing with a mouse.
Does this look useful?

https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc
--
Joe
Dan Purgert
2018-12-07 17:20:01 UTC
Permalink
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
--
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
deloptes
2018-12-07 18:20:01 UTC
Permalink
Post by Dan Purgert
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
I did not use it with Arduino, but with few different Atmel chips it worked
just fine from the command line.

regards
Jason
2018-12-07 23:00:01 UTC
Permalink
Post by Dan Purgert
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
And what could I use to create the compiled hex?

Thanks,
--
Jason
Linux-Fan
2018-12-08 00:10:01 UTC
Permalink
Post by Jason
Post by Dan Purgert
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
And what could I use to create the compiled hex?
Hello,

I was able to get to run a blinking program on an Arduino Nano v3 with the
following codes (two files, .hex and .o file are generated as part of the
process):

-- BEGIN Makefile --
# depends: avr-libc, avrdude, gcc-avr

build:
avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -o led.o led.c
avr-gcc -mmcu=atmega328p led.o -o led
avr-objcopy -O ihex -R .eeprom led led.hex

upload:
avrdude -F -V -c arduino -p ATMEGA328P -P /dev/ttyUSB0 \
-b 57600 -U flash:w:led.hex
-- END Makefile --

-- BEGIN led.c --
#include <avr/io.h>
#include <util/delay.h>

#define BLINK_DELAY_MS 2000

void main()
{
/* PB5(SCK) = 17 = D13 = LED3 */

/* set pin 5 of PORTB for output*/
DDRB |= _BV(DDB5);

while(1) {
/*
* _BV: Bit mask for port: /usr/lib/avr/include/avr/iom328p.h
* /usr/lib/avr/include/avr/sfr_defs.h
*/

/* set pin 5 high to turn led on */
PORTB |= _BV(PORTB5);
_delay_ms(BLINK_DELAY_MS);

/* set pin 5 low to turn led off */
PORTB &= ~_BV(PORTB5);
_delay_ms(BLINK_DELAY_MS);
}
}
-- END led.c --

It is invoked as follows

$ make build
$ make upload

and assumes that the Arduino is recognized under /dev/ttyUSB0.

HTH
Linux-Fan
Erik Christiansen
2018-12-08 02:40:01 UTC
Permalink
Post by Jason
Post by Dan Purgert
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
And what could I use to create the compiled hex?
The Arduino IDE uses the GNU toolchain behind the scenes. There are
people who use the toolchain on the commandline, eschewing the GUI.
Since the AVR crosscompiler and binutils will already be installed with
the IDE, it is just a matter of editing sourcefiles with your favourite
text editor, then running "make". If the IDE doesn't produce a makefile,
instead using something nonstandard, you could look at the upthread
link to Arduino-Makefile.

As I program AVRs directly (without bootloader), using avrdude, I had to
check the manpage to see if it is compatible with the Arduino
bootloader:

» The Arduino (which is very similar to the STK500 1.x) is supported via
its own programmer type specification ``arduino''.
«

That would presumably merely use a laptop USB port to interface to the
Arduino target board.

It looks pretty straightforward, but reading a few of the hits for a google
of "arduino gnu toolchain", it seems that after editing the source with
e.g. vim or emacs, the Arduino IDE itself can be commandline invoked
without any GUI:

» Alternatively, if any of the following command line options is given,
no graphical interface will be shown and instead a one-off verify
(compile) or upload will be done.
«

https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc

(I think that link has already been cited upthread.)

Erik
Jason
2018-12-08 17:00:02 UTC
Permalink
Post by Erik Christiansen
Post by Jason
Post by Dan Purgert
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
And what could I use to create the compiled hex?
The Arduino IDE uses the GNU toolchain behind the scenes. There are
people who use the toolchain on the commandline, eschewing the GUI.
Since the AVR crosscompiler and binutils will already be installed with
the IDE, it is just a matter of editing sourcefiles with your favourite
text editor, then running "make". If the IDE doesn't produce a makefile,
instead using something nonstandard, you could look at the upthread
link to Arduino-Makefile.
As I program AVRs directly (without bootloader), using avrdude, I had to
check the manpage to see if it is compatible with the Arduino
» The Arduino (which is very similar to the STK500 1.x) is supported via
its own programmer type specification ``arduino''.
«
That would presumably merely use a laptop USB port to interface to the
Arduino target board.
It looks pretty straightforward, but reading a few of the hits for a google
of "arduino gnu toolchain", it seems that after editing the source with
e.g. vim or emacs, the Arduino IDE itself can be commandline invoked
» Alternatively, if any of the following command line options is given,
no graphical interface will be shown and instead a one-off verify
(compile) or upload will be done.
«
https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc
(I think that link has already been cited upthread.)
Indeed, it has been, and this looks to be the simplest option, using the
Arduino IDE with command line options.

Thank you Joe, John Conover, Dan Purgert, deloptes, Linux-Fan, Cindy-Sue
Causey, Erik Christiansen for your helpful ideas.
--
Jason
Dan Purgert
2018-12-08 12:20:01 UTC
Permalink
Post by Jason
Post by Dan Purgert
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Don't know of any IDEs for the commandline, but you can always use
avrdude straight from the commandline to handle writing the compiled hex
to the thing.
And what could I use to create the compiled hex?
Arduino IDE elsewhere -- I understood it as "I need to patch devices in
the field, after we made an enhancement in the office".
--
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
John Conover
2018-12-07 17:20:01 UTC
Permalink
Hi Jason.

Maybe, http://www.johncon.com/john/archive/sprawACM0.txt,
http://www.johncon.com/john/archive/sprawACM0.tar.gz, but I don't know
the "Upload", etc., commands to the Arduino. If you do, (or can find
out,) you can add them at the bottom of sprawACM0.c, second function
up, (where the "switch" statement is the command interpreter.)

Just an idea ...

John
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
--
John Conover, ***@rahul.net, http://www.johncon.com/
Cindy-Sue Causey
2018-12-07 17:20:01 UTC
Permalink
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
My apologies if this is just noise. This is out of my realm of
experience, BUT "apt-cache search" shared:

arduino-mk - Program your Arduino from the command line

Its description (from "apt-cache show"):

"Full-screen character mode text editor :: THE (The Hessling Editor)
is a text editor that uses both command line commands and key bindings
to operate. It is intended to be similar to the VM/CMS System Product
Editor, XEDIT and to KEDIT from Mansfield Software."

I reread your request then reran the search with "arduino ide". That
landed these:

arduino - AVR development board IDE and built-in libraries
junior-programming - Debian Jr. programming
flashrom - Identify, read, write, erase, and verify BIOS/ROM/flash chips
libmosquitto1 - MQTT version 3.1/3.1.1 client library
libmosquittopp1 - MQTT version 3.1/3.1.1 client C++ library
mosquitto - MQTT version 3.1/3.1.1 compatible message broker
mosquitto-clients - Mosquitto command line MQTT clients

DISCLAIMER: That doesn't mean those necessarily fit the "IDE" part of
your need, though. The way "apt-cache search" works, those could
possibly only include words that contain "ide" as part of their
spelling. It's a trade-off for having a feature that sure pulls up a
lot of handy information on occasion.

A slight variation using "arduino cli" received:

arduino-core - Code, examples, and libraries for the Arduino platform
arduino-mk - Program your Arduino from the command line
libmosquitto1 - MQTT version 3.1/3.1.1 client library
libmosquittopp1 - MQTT version 3.1/3.1.1 client C++ library
mosquitto-clients - Mosquitto command line MQTT clients

Hope that helps lead to something else if none of it is quite
appropriate. That arduino-mk description is creating a visual image of
elinks' format for me.

PS I'm going to take a peek at that junior-programming option. Its
description makes it sound like it just might communicate at about the
speed of my brain these days. Highlighting it in case someone might
want to test drive it with actual kids. :D

Cindy :)
--
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with birdseed *
Jason
2018-12-07 23:00:01 UTC
Permalink
Post by Cindy-Sue Causey
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
My apologies if this is just noise. This is out of my realm of
arduino-mk - Program your Arduino from the command line
Thanks, all, for your suggestions; arduino-mk sounds most like what I'm
after if it does what it says it does.

--
Jason
Ryan Nowakowski
2018-12-09 01:30:01 UTC
Permalink
I'm a big fan of platform IO
https://platformio.org/

It's not really an IDE, but instead a bunch of command line tools that replace the functions of the Arduino IDE.
Post by Jason
Does anyone know if there is a console based Arduino IDE available for
Debian? I am interested in making a portable programmer that could be
taken out on a job to edit and upload Arduino programs on site, without
messing with a mouse.
Thanks,
--
Jason
Loading...