Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #203126 > unrolled thread
| Started by | Jason <electron@emypeople.net> |
|---|---|
| First post | 2018-12-07 17:40 +0100 |
| Last post | 2018-12-09 02:30 +0100 |
| Articles | 14 — 9 participants |
Back to article view | Back to linux.debian.user
Non-GUI Arduino IDE ? Jason <electron@emypeople.net> - 2018-12-07 17:40 +0100
Re: Non-GUI Arduino IDE ? Joe <joe@jretrading.com> - 2018-12-07 17:50 +0100
Re: Non-GUI Arduino IDE ? Joe <joe@jretrading.com> - 2018-12-07 17:50 +0100
Re: Non-GUI Arduino IDE ? Dan Purgert <dan@djph.net> - 2018-12-07 18:20 +0100
Re: Non-GUI Arduino IDE ? deloptes <deloptes@gmail.com> - 2018-12-07 19:20 +0100
Re: Non-GUI Arduino IDE ? Jason <electron@emypeople.net> - 2018-12-08 00:00 +0100
Re: Non-GUI Arduino IDE ? Linux-Fan <Ma_Sys.ma@web.de> - 2018-12-08 01:10 +0100
Re: Non-GUI Arduino IDE ? Erik Christiansen <dvalin@internode.on.net> - 2018-12-08 03:40 +0100
Re: Non-GUI Arduino IDE ? Jason <electron@emypeople.net> - 2018-12-08 18:00 +0100
Re: Non-GUI Arduino IDE ? Dan Purgert <dan@djph.net> - 2018-12-08 13:20 +0100
Re: Non-GUI Arduino IDE ? conover@rahul.net (John Conover) - 2018-12-07 18:20 +0100
Re: Non-GUI Arduino IDE ? Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-12-07 18:20 +0100
Re: Non-GUI Arduino IDE ? Jason <electron@emypeople.net> - 2018-12-08 00:00 +0100
Re: Non-GUI Arduino IDE ? Ryan Nowakowski <tubaman@fattuba.com> - 2018-12-09 02:30 +0100
| From | Jason <electron@emypeople.net> |
|---|---|
| Date | 2018-12-07 17:40 +0100 |
| Subject | Non-GUI Arduino IDE ? |
| Message-ID | <x2rkt-5Q9-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2018-12-07 17:50 +0100 |
| Message-ID | <x2ru9-5Tm-3@gated-at.bofh.it> |
| In reply to | #203126 |
On Fri, 7 Dec 2018 10:28:48 -0600 Jason <electron@emypeople.net> wrote: > 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
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2018-12-07 17:50 +0100 |
| Message-ID | <x2ru9-5Tm-7@gated-at.bofh.it> |
| In reply to | #203126 |
On Fri, 7 Dec 2018 10:28:48 -0600 Jason <electron@emypeople.net> wrote: > 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
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2018-12-07 18:20 +0100 |
| Message-ID | <x2rXb-6i4-1@gated-at.bofh.it> |
| In reply to | #203126 |
Jason wrote: > 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
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-12-07 19:20 +0100 |
| Message-ID | <x2sTf-6QL-1@gated-at.bofh.it> |
| In reply to | #203129 |
Dan Purgert wrote: > 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
[toc] | [prev] | [next] | [standalone]
| From | Jason <electron@emypeople.net> |
|---|---|
| Date | 2018-12-08 00:00 +0100 |
| Message-ID | <x2xgd-Wt-1@gated-at.bofh.it> |
| In reply to | #203129 |
On Fri, Dec 07, 2018 at 05:05:30PM -0000, Dan Purgert wrote: > Jason wrote: > > 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
[toc] | [prev] | [next] | [standalone]
| From | Linux-Fan <Ma_Sys.ma@web.de> |
|---|---|
| Date | 2018-12-08 01:10 +0100 |
| Message-ID | <x2ylX-1W6-1@gated-at.bofh.it> |
| In reply to | #203140 |
[Multipart message — attachments visible in raw view] — view raw
Jason writes:
> On Fri, Dec 07, 2018 at 05:05:30PM -0000, Dan Purgert wrote:
> > Jason wrote:
> > > 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
[toc] | [prev] | [next] | [standalone]
| From | Erik Christiansen <dvalin@internode.on.net> |
|---|---|
| Date | 2018-12-08 03:40 +0100 |
| Message-ID | <x2AH7-3bj-3@gated-at.bofh.it> |
| In reply to | #203140 |
On 07.12.18 16:42, Jason wrote: > On Fri, Dec 07, 2018 at 05:05:30PM -0000, Dan Purgert wrote: > > Jason wrote: > > > 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
[toc] | [prev] | [next] | [standalone]
| From | Jason <electron@emypeople.net> |
|---|---|
| Date | 2018-12-08 18:00 +0100 |
| Message-ID | <x2O7o-2Um-13@gated-at.bofh.it> |
| In reply to | #203150 |
On Sat, Dec 08, 2018 at 01:33:42PM +1100, Erik Christiansen wrote: > On 07.12.18 16:42, Jason wrote: > > On Fri, Dec 07, 2018 at 05:05:30PM -0000, Dan Purgert wrote: > > > Jason wrote: > > > > 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.) 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
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2018-12-08 13:20 +0100 |
| Message-ID | <x2JKp-qC-1@gated-at.bofh.it> |
| In reply to | #203140 |
Jason wrote: > On Fri, Dec 07, 2018 at 05:05:30PM -0000, Dan Purgert wrote: >> Jason wrote: >> > 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
[toc] | [prev] | [next] | [standalone]
| From | conover@rahul.net (John Conover) |
|---|---|
| Date | 2018-12-07 18:20 +0100 |
| Message-ID | <x2rXb-6i4-5@gated-at.bofh.it> |
| In reply to | #203126 |
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
Jason writes:
> 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, conover@rahul.net, http://www.johncon.com/
[toc] | [prev] | [next] | [standalone]
| From | Cindy-Sue Causey <butterflybytes@gmail.com> |
|---|---|
| Date | 2018-12-07 18:20 +0100 |
| Message-ID | <x2rXb-6i4-7@gated-at.bofh.it> |
| In reply to | #203126 |
On 12/7/18, Jason <electron@emypeople.net> wrote: > 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 *
[toc] | [prev] | [next] | [standalone]
| From | Jason <electron@emypeople.net> |
|---|---|
| Date | 2018-12-08 00:00 +0100 |
| Message-ID | <x2xgd-Wt-5@gated-at.bofh.it> |
| In reply to | #203131 |
On Fri, Dec 07, 2018 at 12:13:07PM -0500, Cindy-Sue Causey wrote: > On 12/7/18, Jason <electron@emypeople.net> wrote: > > 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 > Thanks, all, for your suggestions; arduino-mk sounds most like what I'm after if it does what it says it does. -- Jason
[toc] | [prev] | [next] | [standalone]
| From | Ryan Nowakowski <tubaman@fattuba.com> |
|---|---|
| Date | 2018-12-09 02:30 +0100 |
| Message-ID | <x2W4V-7QY-1@gated-at.bofh.it> |
| In reply to | #203126 |
[Multipart message — attachments visible in raw view] — view raw
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. On December 7, 2018 10:28:48 AM CST, Jason <electron@emypeople.net> wrote: >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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web