I started everything from the beginning, using the makefile I get this:
Code: Select all
Loaded plugin STK500
Loaded plugin AVR GCC
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\
Error Code: -2147467259:
gcc plug-in: Error: Object file not found on expected location C:\MouseTest\MouseTest.elf
Make sure your makefile specifies the output .elf file as MouseTest.elf
Setting up the compiler for Atmega16, 12MHz, -0s:
Code: Select all
rm -rf MouseTest_main.o usbdrvasm.o usbdrv.o MouseTest.elf dep/* MouseTest.hex MouseTest.eep MouseTest.lss MouseTest.map
Build succeeded with 0 Warnings...
avr-gcc -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=12000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT MouseTest_main.o -MF dep/MouseTest_main.o.d -c ../MouseTest_main.c
../MouseTest_main.c: In function 'main':
../MouseTest_main.c:160: warning: implicit declaration of function 'usbInterruptIsReady'
../MouseTest_main.c:164: warning: implicit declaration of function 'usbSetInterrupt'
../MouseTest_main.c:167: warning: function declared 'noreturn' has a 'return' statement
avr-gcc -mmcu=atmega16 -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=12000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT usbdrvasm.o -MF dep/usbdrvasm.o.d -x assembler-with-cpp -Wa,-gdwarf2 -c ../usbdr
v/usbdrvasm.s
In file included from ../usbdrv/usbdrvasm.s:20:
../usbdrv/usbdrv.h:539:3: error: #error "You must define USB_CFG_IOPORTNAME in usbconfig.h, see usbconfig-prototype.h"
make: *** [usbdrvasm.o] Error 1
Build failed with 1 errors and 3 warnings...
I also tried defining it before the error message in usbdrv.h:
Code: Select all
#ifndef USB_CFG_IOPORTNAME
#define USB_CFG_IOPORTNAME D
#error "You must define USB_CFG_IOPORTNAME in usbconfig.h, see usbconfig-prototype.h"
#endif
Thank you for the prompt reply!
Also: copying or moving the #define to usbdrv.h, I get the same assembler error:
Code: Select all
../usbdrv/usbdrvasm12.inc: Assembler messages:
../usbdrv/usbdrvasm12.inc:57: Error: constant value required
...
../usbdrv/usbdrvasm12.inc:312: Error: constant value required
make: *** [usbdrvasm.o] Error 1
Build failed with 1 errors and 3 warnings...