Page 1 of 1

Atmega168 and HIDKeys

Posted: Thu Dec 11, 2008 11:26 pm
by Drools
I'm trying to make a simple Morse code Keyer. At the moment I have a game port keyer and I would really like a USB version. I bought a Atmega168 and a AVRISP to program it. Getting the 168 to respond to the keyer is the easy part now I need to get the data to the PC. I have tried to use AVR Studio 4 to compile the HIDKeys sample project however I'm not having any luck. I think I need to configure the usbconfig.h file but I'm not sure how to do that. I keep getting errors like this.
../main.c:234: undefined reference to `usbMsgPtr'

Could anyone tell me what I'm doing wrong?
Thanks all and Merry Christmas!

Posted: Fri Dec 12, 2008 4:02 am
by Drools
Thanks for everyone that read my message.
I did get the sample to compile properly using AVR Studio 4.

Re: Atmega328 and HIDMouse

Posted: Wed Aug 26, 2009 10:32 pm
by Fritzel
Just also started using V-USB on an Atmel 328P and getting the same error undefined reference to `usbMsgPtr` when trying to compile the mouse example. Coul you point out what your solution had been ?

Thanks
Fritzel