avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Building ASF with GCC?


From: Pierce Nichols
Subject: Re: [avr-chat] Building ASF with GCC?
Date: Tue, 9 Apr 2013 11:59:32 -0700

Rick,

I share your general frustration with this.

In your particular error, the problem is that you are not defining the
mcu type in the makefile. avr/io.h relies on this definition in order
to select the particular version of io.h required. You need to add
-mmcu=<mcu type> to your CFLAGS.

-p

On Sun, Apr 7, 2013 at 4:47 PM, Rick Mann <address@hidden> wrote:
> I'm trying to build one of the ASF examples (the A3BU XPLAINED demo 
> application). But I can't find instructions on using GCC. I checked the AVR 
> Freaks forum, but search is failing me miserably (basic search turns up 
> crappy results, advanced search, server keeps resetting the connection), and 
> what few results I did find show another person with a similar question, and 
> an unhelpful "check the forums" answer.
>
> I try CDing to the gcc directory and typing make, but that fails miserably. 
> Clearly the makefile is not properly set up:
>
> /usr/local/CrossPack-AVR-20120217/lib/gcc/avr/4.5.1/../../../../avr/include/avr/io.h:428:6:
>  warning: #warning "device type not defined"
>
> I looked quickly through the ASF docs, but it just says it supports GCC, 
> doesn't say how to actually build with GCC.
>
> <rant>FUCK. Every time I go to use some embedded development stuff like this, 
> it's the same story. No comprehensive, straightforward, introductory recipe 
> for how to get started. You have to comb through reams of docs, search and 
> search against shitty search engines (google included), and post to forums 
> and mailing lists and wait hours or days for a response. It took me forever 
> to get up and running with the BlueGiga BLE112 modules.
>
> I must be incredibly inept at this, but these things never come easily to me. 
> I've been developing for decades, at all levels of architecture, and 
> embedded-related seems to be the worst. I'm very glad for resources like 
> avr-chat and AVR Freaks, but Atmel should get their shit together better. A 
> single paragraph could fill the gap.</rant>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> AVR-chat mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-chat



-- 
Pierce Nichols
Principal Engineer
Logos Electromechanical, LLC



reply via email to

[Prev in Thread] Current Thread [Next in Thread]