Page 1 of 1

HID-mouse by atmega16 winAVR

Posted: Fri Jun 03, 2011 2:00 pm
by Guest
Hello All,
I want use V-USB HID mouse example on ATMEGA16 and compile by winAVR.
I changed Makefile :
MCU = atmega16
F_CPU = 16000000
SRC = $(TARGET).c C:/Documents and Settings/.../Mouse HID/usbdrv/usbdrv.c

and when i press make all nothing happen.
please help

Re: HID-mouse by atmega16 winAVR

Posted: Fri Jun 03, 2011 7:01 pm
by ulao
This is not really enough info but I will make two observations. You never mention you moved up to a 16mhz, perhaps hat a mega 16 minimum ? Also I would change your path to something simpler. C:/Documents and Settings/... has a lot of spaces in it. Try c:\project\ or something,

Re: HID-mouse by atmega16 winAVR

Posted: Sat Jun 04, 2011 1:08 pm
by mn6500
o.k. i solved problem but now i have another problem :
"usbMsgPtr not declared" in usbdrv.c and when i changed it to comment and connect it to my pc this message come : "USB Device Not Recognized" !!!!!!
????????
any body have done HID mouse by ATMEGA16 ? please send to me (circuit and main.c , MAKEfile , usbconfig.c)
Thanks.

Re: HID-mouse by atmega16 winAVR

Posted: Tue Jun 07, 2011 10:53 am
by Daid
First, you should work on your English. Your posts hardly make any sense at all.

Commenting out code because it doesn't compile and then complain it doesn't work. And you are not surprised that it won't work?