Hi,
I'm relatively new to gcc and WinAVR. I'm still working out how everything works. I'm trying to get the HID USB Keyboard code to compile. However, whenever I try to make it, I get errors sying that there is no target defined. When I looked the makefile template that comes with WINAVR, it differs from the one that Christopher wrote for the USB. When I try to compile with an editted makefile template, I can compile, but I still get errors.
Can anyone explain how to get Chris's makefile working and how to get everything working in general?
Thank you!
HIDKeyboard USB Makefile error
Yes, the HIDKeys example.
Okay, I got it to recognize the make file. I saw the default target as all, so I'm nto really sure what went wrong. I restarted programmer's notepad and then it worked. It just gives the following error now.
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -x assembler-with-cpp -c usbdrv/usbdrvasm.S -o usbdrv/usbdrvasm.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c usbdrv/oddebug.c -o usbdrv/oddebug.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c main.c -o main.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -o main.bin usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
rm -f main.hex main.eep.hex
avr-objcopy -j .text -j .data -O ihex main.bin main.hex
./checksize main.bin
C:\Documents: C:\Documents: No such file or directory
make.exe: *** [main.hex] Error 127
Okay, I got it to recognize the make file. I saw the default target as all, so I'm nto really sure what went wrong. I restarted programmer's notepad and then it worked. It just gives the following error now.
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -x assembler-with-cpp -c usbdrv/usbdrvasm.S -o usbdrv/usbdrvasm.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c usbdrv/oddebug.c -o usbdrv/oddebug.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -c main.c -o main.o
avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega8 -o main.bin usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o
rm -f main.hex main.eep.hex
avr-objcopy -j .text -j .data -O ihex main.bin main.hex
./checksize main.bin
C:\Documents: C:\Documents: No such file or directory
make.exe: *** [main.hex] Error 127