Page 1 of 1

[ATmega16 + AVRGCC] USB HID = Undefined procedure

Posted: Tue Nov 27, 2007 11:27 pm
by Guest
Hello,
i want to make HID device. I haven't got any problems with configuration that library, but when i want to compile i take ERROR from compiler like:

1. "../usbdrv/usbdrv.c:251: undefined reference to `usbFunctionWrite'"
2. "../usbdrv/usbdrv.c:240: undefined reference to `usbCrc16'"

I am searching that procedures, but I not have that to this day.

Where I can find that procedures?

Sorry for my language ;)

Posted: Sat Dec 01, 2007 1:47 pm
by christian
usbFunctionWrite() should be defined in your own code. It is called by the driver when control data is received. See the documentation in usbdrv.h for details.

usbCrc16() is defined in the assembler module. If the linker does not find it, you don't link usbdrvasm.S. Add this file to your project or makefile.