usbFunctionSetup not being called

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Novakov
Posts: 3
Joined: Thu May 17, 2012 6:38 pm

usbFunctionSetup not being called

Post by Novakov » Thu May 17, 2012 6:41 pm

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?

xiangrui
Rank 1
Rank 1
Posts: 30
Joined: Sun Jan 01, 2012 5:19 am

Re: usbFunctionSetup not being called

Post by xiangrui » Sun May 20, 2012 3:57 am

The only thing I can think about is the problem at connection of USB D+ to INT0.

Novakov
Posts: 3
Joined: Thu May 17, 2012 6:38 pm

Re: usbFunctionSetup not being called

Post by Novakov » Sun May 20, 2012 4:08 pm

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.

Novakov
Posts: 3
Joined: Thu May 17, 2012 6:38 pm

Re: usbFunctionSetup not being called

Post by Novakov » Mon May 21, 2012 3:18 pm

Problem solved!

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

Post Reply