|
From: | Adisak Anusornsrirung |
Subject: | Re: [avr-gcc-list] avrxmega7 device-not-found |
Date: | Fri, 20 Nov 2015 12:25:22 +0700 |
Can you show your makefile?
From: Ajay Garg
Sent: Friday, November 20, 2015 12:05 PM
Cc: Shawn Rich ; address@hidden
Subject: Re: [avr-gcc-list] avrxmega7
device-not-found "avrxmega6" does not work either
:(
############################################################ address@hidden:~$ avr-gcc -mmcu=avrxmega6 ledblink.c -o ledblink.o In file included from ledblink.c:2:0: /usr/lib/avr/include/avr/io.h:428:6: warning: #warning "device type not defined" [-Wcpp] # warning "device type not defined" ^ In file included from ledblink.c:3:0: /usr/lib/avr/include/util/delay.h:90:3: warning: #warning "F_CPU not defined for <util/delay.h>" [-Wcpp] # warning "F_CPU not defined for <util/delay.h>" ^ /usr/lib/avr/include/util/delay.h:95:3: warning: #warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" [-Wcpp] # warning "Compiler optimizations disabled; functions from <util/delay.h> won't work as designed" ^ ledblink.c: In function ‘main’: ledblink.c:16:9: error: ‘DDRC’ undeclared (first use in this function) DDRC |=1<<PC2; /* PC2 will now be the output pin */ ^ ledblink.c:16:9: note: each undeclared identifier is reported only once for each function it appears in ledblink.c:16:19: error: ‘PC2’ undeclared (first use in this function) DDRC |=1<<PC2; /* PC2 will now be the output pin */ ^ ledblink.c:19:17: error: ‘PORTC’ undeclared (first use in this function) PORTC &= ~(1<<PC2);/* PC2 LOW */ ############################################################ On Fri, Nov 20, 2015 at 8:23 AM, Adisak Anusornsrirung
<address@hidden> wrote:
-- Regards, Ajay |
[Prev in Thread] | Current Thread | [Next in Thread] |