From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fcd0ac136c3a2795 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 24 Aug 2010 06:29:23 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: USB Boarduino on AVR-Ada Tutorial Date: Tue, 24 Aug 2010 12:37:04 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <4d1d662b-f476-41e4-938c-0564ad90d74e@d17g2000yqb.googlegroups.com> <208b422c-afc7-4404-8741-d4582ced47ce@f42g2000yqn.googlegroups.com> <6e8376p4ltcvberbt9a44ub44vc48vjr3m@4ax.com> <20100823122931.d7f4a22c.tero.koskinen@iki.fi> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-8xUJX/imWHRPoopTf6mIJbTDixLUGat8+PpOynZA7PXJjvbweLz4lMqS4XTU9PHXxQJcJRFZIjW+oPW!yqjioy6NFolr0RokhRQZJ2r2I0AGyWRgwypG9m0sJK7MiNKiPhxaL0OsPw2GDCPEWopkU7ZKoczE!kX6T X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news1.google.com comp.lang.ada:13694 Date: 2010-08-24T12:37:04+01:00 List-Id: On Mon, 23 Aug 2010 12:29:31 +0300, Tero Koskinen wrote: >> None of the obvious (to me) approaches to installing the tools have worked >> smoothly on my machine (running OpenSuse 11.3). >> >> The closest I've got is using the cross-avr-binutils (2.20) and cross-avr-gcc >> (4.5.0) packages from OpenSuse, available as binary and source rpms. > >I have AVR-GCC 4.5.0 with Ada support and AVR-Ada 1.1.0 RPM .spec files >for Fedora 13 available at http://iki.fi/tero.koskinen/avr-gnat/ > >They should probably work out of the box with Arduino (atmega328p), >but I think I disabled support for all other chipsets[1] because it was >easier (for me) that way. Thanks to you and David for further suggestions. Building the 4.3 toolset using GCC4.5 would be non-trivial, involving patching the sources (the previously mentioned failure in binutils2.19, tc-avr.c turns out to be a negative enum! GCC4.5 objects to this - the "solution" in 2.20 is to cast it to an int...) The atmega328p is not the only AVR I want to target, so I may have work to do if I use these. But it's good to know there's life in AVR-GCC 4.5 despite the number of online sources reporting you need 4.3.x. If my current build runs into difficulty I'll take a look at these rpms. I had to disable *some* devices to build avr-libc 1.70 with GCC4.5.0 (or 4.5.1), because the compiler didn't recognise them, and didn't report correctly http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45261 But not many. (why did the source rpm named 4.5.0 build a compiler identifying itself as 4.5.1, I wonder?) - Brian