> I don't know if this is your problem, but you may want to > check the makefile. If you edited it incorrectly (check > the docs for differences between spaces and tabs especially), > it could be messed up. Also, there should be a section > in there that looks as follows: > > # Define directories, if needed. > DIRAVR = c:/winavr > DIRAVRBIN = $(DIRAVR)/bin > DIRAVRUTILS = $(DIRAVR)/utils/bin > DIRINC = . > DIRLIB = $(DIRAVR)/avr/lib > > When I run the makefile (from within the programmers > notepad), I get the following command line: > > avr-gcc -c -mmcu=atmega16 -I. -g -Os -funsigned-char > -funsigned-bitfields -fpack-struct -fshort-enums -Wall > -Wstrict-prototypes -Wa,-adhlns=command_parser.lst > -std=gnu99 command_parser.c -o command_parser.o > > I just tried a make from a dos prompt and the make fails > when attempting to do a link. You may want to try it all > from within pn. I followed the document > http://winavr.sourceforge.net/download/install_config_winavr.pdf > and everything setup fine. I have been referencing that document. The only way to get it to get close to working is to add the c:\winavr\avr\include path to the "Extralib" part of the makefile. I still end up with the error below. > Hope this may give you some clues as to where to look. Thanks for the help. I hacked my way through the includes, and now I'm getting this: Compiling: test.c avr-gcc -c -mmcu=atmega128 -I. -g -Os -funsigned-char -funsig ototypes -Wa,-adhlns=test.lst -std=gnu99 -Wp,-M,-MP,-MT,test test.c:2: warning: function declaration isn't a prototype test.c:2: warning: return type of `main' is not `int' test.c: In function `main': test.c:3: warning: implicit declaration of function `printf' as: unrecognized option `-cu=atmega128' make: *** [test.o] Error 1 What the hell is that all about? I must say that so far switching to the ATMEL processor has been the MOST FRUSTRATING THING I've probably ever done microcontroller wise. Nothing is working right on the software front. Even AVR Studio didn't install properly, it took a few hacks to get it working. Now the gcc-avr thing is driving me nuts (aside from the fact that if you install it to a path with a space in it it completely bungs everything up, which of course is mentioned nowhere). On top of that I never received my ATMEL samples, and the samples I did receive through the Circuit Cellar contest were the wrong ones... I'm pretty much at the point of just giving up, getting my PIC flow working was NEVER this hard, and that's including third party tools. I guess ATMEL still has alot to learn about making the learning curve easy. Shame really. ---------------------------------- 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