Atmega168 and HIDKeys

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Drools
Posts: 15
Joined: Thu Dec 11, 2008 11:17 pm

Atmega168 and HIDKeys

Post by Drools » Thu Dec 11, 2008 11:26 pm

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!

Drools
Posts: 15
Joined: Thu Dec 11, 2008 11:17 pm

Post by Drools » Fri Dec 12, 2008 4:02 am

Thanks for everyone that read my message.
I did get the sample to compile properly using AVR Studio 4.

Fritzel

Re: Atmega328 and HIDMouse

Post by Fritzel » Wed Aug 26, 2009 10:32 pm

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

Post Reply