On Thu, 17 Oct 2019 18:42:11 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
steph.pienaar-Re5J...@public.gmane.org wrote:
>Hi Brent,
>
You are responding to a nearly four year old post.
<SNIP>
>
>I managed to get other native Ada examples to work, but can't get any
>embedded target examples going (not even a cmd line "Hello World").
If your board is running Linux (one of the Beagleboard Debian releases
from
http://beagleboard.org/latest-images ) you could install GNAT (and
GNAT-GPS if running the LXQT desktop with a monitor attached). It may be
slow and resource starved but it will compile stuff.
debian@beaglebone:~$ cat hw.adb
with ada.text_io;
use ada.text_io;
procedure hw is
begin
put_line("Command Line creation of Ada Program on BBB");
end hw;
debian@beaglebone:~$ gnatmake hw
gcc-6 -c hw.adb
gnatbind-6 -x hw.ali
gnatlink-6 hw.ali
debian@beaglebone:~$ ./hw
Command Line creation of Ada Program on BBB
debian@beaglebone:~$
I do have to confess that I haven't managed to get GNAT GPS to cross
build Ada programs on Windows. Can't find the compiler. Must be some
missing prefix or something in the project settings since it seems to work
for C programs.
>I'm new to Ada development (and fairly new to embedded Linux dev), I
>appreciate any help, pointers and advice.
>
What is your definition of an "embedded target example"? If you mean
bare-board (no OS) you are going to have to provide an Ada Runtime System
and a lot of configuration stuff to even get it loaded.. (cf:
http://www.inspirel.com/articles/Ada_On_Cortex.html for the effort
involved)
The desire for GTK-based widgets, OTOH, implies running enough of an
operating system to support X-window applications. That either means you
have a display/keyboard/mouse connected to the BBB and the BBB is running
some X-server software (an LXQT desktop, perhaps) or you have a network
connection to a machine that runs an X-server and accepts client (your
application) connections from the BBB.
>Regards
>Steph
>
>On Tuesday, 5 April 2016 20:18:44 UTC+2,
brent...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>
>> I have been doing some Ada programming on the BeagleBone Black using gnat
>> and gnat-gps from the Debian repository. One of the things that I've been
>> doing is developing a library of routines to access various bits of the
>> board's I/O. The source is available at
>>
https://github.com/BrentSeidel/BBS-BBB-Ada.git and currently covers the
>> LEDs, GPIO, I2C, PWM, and Analog Inputs. I don't claim that this is
>> anywhere near production ready, but it might provide some useful examples
>> or information, even if you're not using Ada.
>>
>> Comments, questions, suggestions are welcome.
>>
>> Brent
>>
>>
--
Dennis L Bieber