HID-mouse by atmega16 winAVR

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

HID-mouse by atmega16 winAVR

Post by Guest » Fri Jun 03, 2011 2:00 pm

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

ulao
Rank 4
Rank 4
Posts: 480
Joined: Mon Aug 25, 2008 8:45 pm

Re: HID-mouse by atmega16 winAVR

Post by ulao » Fri Jun 03, 2011 7:01 pm

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,

mn6500
Posts: 2
Joined: Fri Jun 03, 2011 1:47 pm

Re: HID-mouse by atmega16 winAVR

Post by mn6500 » Sat Jun 04, 2011 1:08 pm

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.

Daid
Rank 2
Rank 2
Posts: 55
Joined: Mon Apr 18, 2011 12:19 pm

Re: HID-mouse by atmega16 winAVR

Post by Daid » Tue Jun 07, 2011 10:53 am

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?

Post Reply