This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C42A3E.CA4DECE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > > as: unrecognized option `-cu=atmega128' > > I think that the "as:" part is the assembler - check the following line in > the makefile, especially the -mmcu part to make sure you didn't > accidentally change it to -cu. > > ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) > > As far as the warnings go, please paste the first 5 or ten lines > of test.c into your next message, it appears your missing some > function prototypes and it would be easier to > see what is actually there. I'm actually now trying with the exact example that comes with the package (after syntax corrections): #include #include int main (void) { unsigned char counter; //set PORTB for output DDRB =0xFF; while (1) { //set PORTB.2 high PORTB |=1<<2; //wait (10 *120000)cycles =wait 1200000 cycles counter =0; while (counter !=5) { //wait (30000 x 4)cycles =wait 120000 cycles _delay_loop_2(30000); counter++; } //set PORTB.2 low PORTB &=~(1<<2); //wait (10 *120000)cycles =wait 1200000 cycles counter =0; while (counter !=5) { //wait (30000 x 4)cycles =wait 120000 cycles _delay_loop_2(30000); counter++; } } return 1; } And the result of 'make all': Compiling: test1.c avr-gcc -c -mmcu=atmega8535 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=test1.lst -Ic:\winavr\avr\include -std=gnu99 -Wp,-M,-MP,-MT,test1.o,-MF,.dep/test1.o.d test1.c -o test1.o as: unrecognized option `-cu=atmega8535' make.exe: *** [test1.o] Error 1 FWIW I've tried different processors all with similar errors (i.e. if I sub atmega16 the error becomes -cu=atmega16) I have checked that line in the makefile: ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) I've attached the complete makefile to this message (it's very small). > I'm disappointed that you're having so many problems. I'm working > on a project for the circuit cellar contest and was going to > mention how easily and quickly I was able to get winavr up and > running (actually had zero problems - I know, just what you wanted to > hear!). > > Ken Well I have no problem debugging problems that are mine. Debugging problems that aren't mine generally aren't something I will do unless absolutely necessary, and trying to debug defective software is about the lowest on my scale. If it weren't for the circuit cellar contest I wouldn't have bothered to try for this long. Thanks for your help. TTYL ---------------------------------- Herbert's PIC Stuff: http://repatch.dyndns.org:8383/pic_stuff/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body ------=_NextPart_000_0020_01C42A3E.CA4DECE0 Content-Type: application/x-zip-compressed; name="Makefile.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Makefile.zip" UEsDBBQAAAAIAKibmDAWN5YP2A4AAMAmAAAIAAAATWFrZWZpbGWtWmlz28gR/WxV6T/M2nJFdAhI trOJTa82pihS5oZXCMpeZ72lGgJDEhYOBodk5ofnc17PDIABJKqcVOhDxBzdPd1vel4P9Ix98qPu xzlzeLgNBAv5jVj5+HKX+FkmIrbcsX7iu+zcZp+E5/nROoujNvvl38mafcqj1N20mcgYD+zDg2ds LgLBU+GxLGbZRrBZvgww+SIOuR/RgJnsZ4ngnhxA+lieigTfopwHP2AQjetCVebHEQ/QkYnEx5dV nGCOnxpG8pSl+TIkUz2Y2qGpbOGH7IOI/DWXKtlMQAAbBCJPdrJhLvwILTOexWEoAtnm8MijtjhW z4NE4Nm/YfM4h825bBzz5CZP2WzFVytt6DRiLqRgNgsgtaOb5bp4ELAzTMLXNF5ldzwRttnvQnCE ET35M84ztsz9IGPbJP4q3IzRGtP6jHi1oglxdCuSjPVHA/I0xa83HQzYMbkI3mR3fraRzU6We37M XtvfGLo+jkfd81ZNoviW7Rfa/wYIeHDto9Kla+qfP9mnfyGFawQazq+rxPLWCQ+h8iK+i4JYQ2Ej vskVF9jxxK3vijY0AnSM3yZe7gmbaQg9oNTNUwTU/5eQ0/UEloosg4CULUUQ30FDkmY/mOaQzoiH wk5h0S+QQQHdkiFlj8v8SFvF01SEywBQcWNIj6Ngp4UtYsCaAuiVAfRi9rSK9FMSEOkWYOOp8gr9 ecbGvStGug4P6NsZ41ko1vzNj69/VP3TPNsCIAgB9o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