avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] Re: (unknown)


From: Gene Smith
Subject: [avr-gcc-list] Re: (unknown)
Date: Fri, 06 Mar 2009 18:59:24 -0500
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

李奇越 wrote:
> hi all:
>       I'm a beginner of winavr,and not familar with makefile.When I
> try to build a new project and using avr-gcc to compiler the program,
> the error messages are as follows:
> /usr/local/avr/include/avr/io.h:225:6:warning:#warning "device type not 
> defined"
> /usr/local/avr/include/avr/interrupt.h:112:3:#error "No valid external 
> interrupt
> control register defined"

I'm new too but I think you need -mmcu=atmega128 on the gcc command line

> 
> Do I need to include some header files in my program?
> And can somebody mail me a sample project?
> Thanks

I used this makefile to get started and adapted a project to it:
http://www.mikrocontroller.net/attachment/29840/makefile





reply via email to

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