Page 1 of 1

usbFunctionSetup not being called

Posted: Thu May 17, 2012 6:41 pm
by Novakov
I've got problem with V-USB on Atmega32a. On the host I'd like to use WinUSB (libusb is not working on my windows) and custom class device. I've created driver package for device and it is recognised correctly. However usbFunctionSetup is never invoked what is a bit strange. Has anyone any idea how to solve this issue?

Re: usbFunctionSetup not being called

Posted: Sun May 20, 2012 3:57 am
by xiangrui
The only thing I can think about is the problem at connection of USB D+ to INT0.

Re: usbFunctionSetup not being called

Posted: Sun May 20, 2012 4:08 pm
by Novakov
xiangrui wrote:The only thing I can think about is the problem at connection of USB D+ to INT0.


I've discovered another strange thing. If I use HID driver it works, but when I update driver to WinUSB (and do not change firmware) it stops working. I'm going to check if anything is received and I'll post results here.

Re: usbFunctionSetup not being called

Posted: Mon May 21, 2012 3:18 pm
by Novakov
Problem solved!

I didn't noticed that requestType has special meaning. After changing it, everything works!