Page 1 of 1

Beginner problems with VUSB, ATTIny2313 and HID-Data example

Posted: Sun Sep 22, 2013 11:39 am
by Elmi77
Hi,

I'm using a simple ATTiny2313 device as shown on http://dokuwiki.ehajo.de/_media/bausaetze:usba-isp.pdf and wanted to try the HID-Data example of VUSB package with it. Unfortunately I failed miserably, the device is not even recognised as USB afterwards (operating system simply recognises nothing on the USB port where I connect it). That's what I've done with VUSB-package (latest version from GIT):

- call "make" in root-directory of package
- go to examples/hid-data/firmware
- change the Makefile: define attiny2313 as controller and set clock of 12000000 Hz
- change usbconfig.h, set USB_CFG_DMINUS_BIT to 3 and USB_CFG_DPLUS_BIT to 2
- call "make" in firmware directory
- write everything to my device by calling "avrdude -b 1200 -c usbtiny -P usb -p attiny2313 -U flash:w:main.hex:i -i10 -U hfuse:w:0xdb:m -U lfuse:w:0xef:m"

Flashing works fine and ends with no errors.

Flashing some other firmware to this device results in a working USB-device so the hardware seems to be OK.

What could be missing? What may be wrong in my configuration of VUSB?

Thanks!