[ATmega16 + AVRGCC] USB HID = Undefined procedure

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply

[ATmega16 + AVRGCC] USB HID = Undefined procedure

Post by Guest » Tue Nov 27, 2007 11:27 pm

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 ;)

Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Dec 01, 2007 1:47 pm

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.

Post Reply