comp.lang.ada
 help / color / mirror / Atom feed
* Arduino (AVR-Ada) plugin for GPS or Emacs?
@ 2012-07-04  9:18 Jacob Sparre Andersen
  2012-07-04 14:06 ` Rego, P.
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Sparre Andersen @ 2012-07-04  9:18 UTC (permalink / raw)


I spent a part of yesterday morning teaching the basics of Arduino
programming.

As a kind soul already had installed the Arduino IDE on the relevant
machines, I took the fast and lazy route, and just made sure the basic
concepts of programming for and installing software on microcontrollors
caught on.

In reality I would have liked to be able to download an Ada compiler and
an Ada-friendly IDE with mouse access to selecting board type and
programmer port for Arduinos, so I quickly could have given my students
access to a "proper" language for programming embedded devices.

Is there a plugin for GPS (or a mode for Emacs) which does this?

As lazy as I can be, I would like to be able to write "sudo apt-get
install arduino-ada" on a Debian system or click on a single download
link on those other operating systems.

Greetings,

Jacob (who is a "vi" guy himself)
-- 
Beware of people with Gnus, they may Hurd you.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Arduino (AVR-Ada) plugin for GPS or Emacs?
  2012-07-04  9:18 Arduino (AVR-Ada) plugin for GPS or Emacs? Jacob Sparre Andersen
@ 2012-07-04 14:06 ` Rego, P.
  2012-07-04 18:34   ` Jacob Sparre Andersen
  0 siblings, 1 reply; 4+ messages in thread
From: Rego, P. @ 2012-07-04 14:06 UTC (permalink / raw)


Jacob,

I use avr-elf-windows (http://libre.adacore.com/download/configurations#) for programming Arduinos (and other AVRs) using Ada. But it's available only for Windows. It's fully integrated to GPS, so you can build all the code from inside it, surf the variables as links, etc, all the GPS things. It generates an .elf, so you have to convert it to .hex using avr-objcopy from WinAVR (but I use a .xml plugin to convert and burn into the AVR).

The cross-compiler comes with ZFP, so you do not have tasks support nor exception handling, but with AVR-Ada the last time I checked you also could not do it. And you don't need to build the cross-compiler, just a click to install the avr-elf-windows :-)

Best regards.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Arduino (AVR-Ada) plugin for GPS or Emacs?
  2012-07-04 14:06 ` Rego, P.
@ 2012-07-04 18:34   ` Jacob Sparre Andersen
  2012-07-06 19:46     ` Rego, P.
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Sparre Andersen @ 2012-07-04 18:34 UTC (permalink / raw)


Rego wrote:

> I use avr-elf-windows
> (http://libre.adacore.com/download/configurations#) for programming
> Arduinos (and other AVRs) using Ada. But it's available only for
> Windows. It's fully integrated to GPS, so you can build all the code
> from inside it, surf the variables as links, etc, all the GPS
> things. It generates an .elf, so you have to convert it to .hex using
> avr-objcopy from WinAVR (but I use a .xml plugin to convert and burn
> into the AVR).

Good to know. - Even though it sounds like it still is missing the board
selection and programmer management in the GUI.

Greetings,

Jacob
-- 
Ada - the programming language still ahead of its time.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Arduino (AVR-Ada) plugin for GPS or Emacs?
  2012-07-04 18:34   ` Jacob Sparre Andersen
@ 2012-07-06 19:46     ` Rego, P.
  0 siblings, 0 replies; 4+ messages in thread
From: Rego, P. @ 2012-07-06 19:46 UTC (permalink / raw)


> Good to know. - Even though it sounds like it still is missing the board 
> selection and programmer management in the GUI. 

Yes, it lacks both. We have to map all the chip spec. Fortunately 8-bit AVRs are not much complicated. For the programmer management, I use avrdude from WinAVR directly on a .xml batch script plugin.

Regards



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-06 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-04  9:18 Arduino (AVR-Ada) plugin for GPS or Emacs? Jacob Sparre Andersen
2012-07-04 14:06 ` Rego, P.
2012-07-04 18:34   ` Jacob Sparre Andersen
2012-07-06 19:46     ` Rego, P.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox