comp.lang.ada
 help / color / mirror / Atom feed
From: Rolf <rolf.ebert_nospam_@gmx.net>
Subject: Re: Building gnat-gpl-2011-avr-windows from scratch in GPS
Date: Sun, 15 Apr 2012 09:02:31 -0700 (PDT)
Date: 2012-04-15T09:02:31-07:00	[thread overview]
Message-ID: <20a04e0a-04b9-4bc9-bb94-04ba35e451d0@f27g2000yqc.googlegroups.com> (raw)
In-Reply-To: 11114179.137.1334181998473.JavaMail.geo-discussion-forums@ynej18

> > Is there a worked example with the toolchain?
>
> No. I could not find any example that I could run yet.

AdaCore's AVR compiler comes with a sample application somewhere (I
don't remember where).

When using gcc for AVR you have to specify the target MCU at the
compile and link steps with the option -mmcu=<name of mcu>. In your
example you missed that option in the compile step.


> But googling today I found this tutorial by Maciej Kucia:http://student.agh.edu.pl/~mkucia/wiki/doku.php?id=avrada
>
> which looks to be very interesting. The tutorial requires GNAT AVR + GPS +
> WinAVR GNU gcc tools and libraries for AVR + Atmel AVR Studio 5. I use all of them frequently, so that's no problem, but I'd expect that I could use just GNAT AVR + GPS to build the .hex. However sure it can be a very good starting point. I will try it.

AVR-Ada /= AdaCore's AVR compiler.

AVR-Ada V1.1 still uses gcc-4.3.x, AdaCore's AVR compiler is based on
gcc-4.5. That version has a serious problem if you use locally renamed
variables of the MCU's registers.  Either use AVR-Ada V1.1 or wait a
few days/weeks for AVR-Ada V1.2 which will use gcc-4.7

HTH
    Rolf





  reply	other threads:[~2012-04-15 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09  3:18 Building gnat-gpl-2011-avr-windows from scratch in GPS Rego, P.
2012-04-09  7:23 ` Simon Wright
2012-04-11 22:06   ` Rego, P.
2012-04-15 16:02     ` Rolf [this message]
2012-04-17  1:01       ` Rego, P.
2012-04-17 15:37         ` Simon Wright
2012-04-17 16:58       ` Brian Drummond
2012-04-17 19:29         ` Simon Wright
2012-04-17 21:19           ` Brian Drummond
replies disabled

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