comp.lang.ada
 help / color / mirror / Atom feed
* GNAT GPL Edition for 8Bit AVR microcontrollers
@ 2016-09-06 21:30 jordanleemauro
  2016-09-07 10:00 ` fabien.chouteau
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: jordanleemauro @ 2016-09-06 21:30 UTC (permalink / raw)


Hi All,

I am currently working on a Project that involves programming a device (using ATmega328P) using the Ada programming language as well as SPARK Tools or Ravenscar profiles if possible to verify and validate the software.

Here is my question:

What version of GNAT must be used for full compatibility of AVR, what other tools are required for a smooth Achievement?

Thanks


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

* Re: GNAT GPL Edition for 8Bit AVR microcontrollers
  2016-09-06 21:30 GNAT GPL Edition for 8Bit AVR microcontrollers jordanleemauro
@ 2016-09-07 10:00 ` fabien.chouteau
  2016-09-07 11:04   ` Simon Wright
  2016-09-07 10:28 ` rrr.eee.27
  2016-09-09 20:14 ` jordanleemauro
  2 siblings, 1 reply; 6+ messages in thread
From: fabien.chouteau @ 2016-09-07 10:00 UTC (permalink / raw)


Hi,
On Tuesday, September 6, 2016 at 11:30:50 PM UTC+2, jordanl...@gmail.com wrote:
> Hi All,
> 
> I am currently working on a Project that involves programming a device (using ATmega328P) using the Ada programming language as well as SPARK Tools or Ravenscar profiles if possible to verify and validate the software.
> 
> Here is my question:
> 
> What version of GNAT must be used for full compatibility of AVR, what other tools are required for a smooth Achievement?
> 

I don't think there is a binary release of GNAT for AVR. The only option I know is the community project AVR-Ada [1]. I've never tried it myself, but it's on my TODO list :)

[1] https://sourceforge.net/projects/avr-ada/

-- 
Fabien Chouteau

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

* Re: GNAT GPL Edition for 8Bit AVR microcontrollers
  2016-09-06 21:30 GNAT GPL Edition for 8Bit AVR microcontrollers jordanleemauro
  2016-09-07 10:00 ` fabien.chouteau
@ 2016-09-07 10:28 ` rrr.eee.27
  2016-09-07 16:51   ` Tero Koskinen
  2016-09-09 20:14 ` jordanleemauro
  2 siblings, 1 reply; 6+ messages in thread
From: rrr.eee.27 @ 2016-09-07 10:28 UTC (permalink / raw)


On Tuesday, September 6, 2016 at 11:30:50 PM UTC+2, jordanl...@gmail.com wrote:
> Hi All,
> 
> I am currently working on a Project that involves programming a device (using ATmega328P) using the Ada programming language as well as SPARK Tools or Ravenscar profiles if possible to verify and validate the software.
> 
> Here is my question:
> 
> What version of GNAT must be used for full compatibility of AVR, what other tools are required for a smooth Achievement?
> 
> Thanks

The last published version of AVR-Ada was for gcc-4.7. I updated the GIT repository for gcc-4.9 and I have a half baked version for gcc-5.3 on my computer. I am not sure if I find the energy to update AVR-Ada for gcc-6, there must be some demand and it could be yours.

Already gcc-4.7 had some Ada2012 feature. If you stick to Ada2005 that version is fully Ada compatibel and works reasonably well. The Atmega328 is used on the Arduinos, that means it is probably the most tested MCU among the AVR chips.

Please send me or (preferred) the avr-ada-devel mailing list direct messages if you need assistance in building the toolchain.

best regards
    RE

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

* Re: GNAT GPL Edition for 8Bit AVR microcontrollers
  2016-09-07 10:00 ` fabien.chouteau
@ 2016-09-07 11:04   ` Simon Wright
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Wright @ 2016-09-07 11:04 UTC (permalink / raw)


fabien.chouteau@gmail.com writes:

> Hi,
> On Tuesday, September 6, 2016 at 11:30:50 PM UTC+2, jordanl...@gmail.com wrote:
>> Hi All,
>> 
>> I am currently working on a Project that involves programming a
>> device (using ATmega328P) using the Ada programming language as well
>> as SPARK Tools or Ravenscar profiles if possible to verify and
>> validate the software.

Provided you can get a compiler (as Fabien suggested, or, if you're able
to run on Windows, try GNAT GPL 2012 from libre.adacore.com) you will be able
to use the SPARK tools; see [1], especially chapter 19. The natural way
of handling SPARK uses aspects, and you'd need a recent compiler to
support that (FSF GCC 6, GNAT GPL 2016).

FSF GCC 6 appears to have AVR support, so you could build your own
cross-compiler.

But the ATmega328P has 32kB flash, 2kB sram, so your chances of getting
Ravenscar to fit are, practically, zero.

[1] http://www.inspirel.com/articles/Ada_On_Cortex.html

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

* Re: GNAT GPL Edition for 8Bit AVR microcontrollers
  2016-09-07 10:28 ` rrr.eee.27
@ 2016-09-07 16:51   ` Tero Koskinen
  0 siblings, 0 replies; 6+ messages in thread
From: Tero Koskinen @ 2016-09-07 16:51 UTC (permalink / raw)


7.9.2016, 13.28, rrr.eee.27@gmail.com wrote:
> On Tuesday, September 6, 2016 at 11:30:50 PM UTC+2,
> jordanl...@gmail.com wrote:
>> Hi All,
>>
>> I am currently working on a Project that involves programming a
>> device (using ATmega328P) using the Ada programming language as
>> well as SPARK Tools or Ravenscar profiles if possible to verify
>> and validate the software.
>>
>> Here is my question:
>>
>> What version of GNAT must be used for full compatibility of AVR,
>> what other tools are required for a smooth Achievement?
>>
>> Thanks
>
> The last published version of AVR-Ada was for gcc-4.7. I updated the
> GIT repository for gcc-4.9 and I have a half baked version for
> gcc-5.3 on my computer. I am not sure if I find the energy to update
> AVR-Ada for gcc-6, there must be some demand and it could be yours.
...
> best regards RE

Getting back to AVR-Ada development has been my plan also. I have just
been on a sidetrack and played with Arduino Zero (it has ARM-based MCU,
Atmel SAMD21) and C code [1,2].

Meanwhile, you can find some AVR-Ada tips from my Arduino blog at
http://arduino.ada-language.com/

Yours,
  Tero

[1] https://bitbucket.org/tkoskine/samd2x-peripheral-library/
[2] https://bitbucket.org/tkoskine/samd-ada/


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

* Re: GNAT GPL Edition for 8Bit AVR microcontrollers
  2016-09-06 21:30 GNAT GPL Edition for 8Bit AVR microcontrollers jordanleemauro
  2016-09-07 10:00 ` fabien.chouteau
  2016-09-07 10:28 ` rrr.eee.27
@ 2016-09-09 20:14 ` jordanleemauro
  2 siblings, 0 replies; 6+ messages in thread
From: jordanleemauro @ 2016-09-09 20:14 UTC (permalink / raw)


On Tuesday, September 6, 2016 at 11:30:50 PM UTC+2, jordanl...@gmail.com wrote:
> Hi All,
> 
> I am currently working on a Project that involves programming a device (using ATmega328P) using the Ada programming language as well as SPARK Tools or Ravenscar profiles if possible to verify and validate the software.
> 
> Here is my question:
> 
> What version of GNAT must be used for full compatibility of AVR, what other tools are required for a smooth Achievement?
> 
> Thanks

Hi guys, 

Thank you for all your tips, support and interest.

I am still very lost on how to build the tool chain. It is very challenging, does any one have any idea on how to build the tool chain as well as, what to watch out for when building this tool chain(what not to do)...

I am not new with Ada, but i am new with linux. I currently have gnat 4.9 installed, is this version of GNAT a problem for the support of avr-ada? 

Ps. not using an arduino, but a simple ATmega328p on a breadboard.


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

end of thread, other threads:[~2016-09-09 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 21:30 GNAT GPL Edition for 8Bit AVR microcontrollers jordanleemauro
2016-09-07 10:00 ` fabien.chouteau
2016-09-07 11:04   ` Simon Wright
2016-09-07 10:28 ` rrr.eee.27
2016-09-07 16:51   ` Tero Koskinen
2016-09-09 20:14 ` jordanleemauro

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