Page 1 of 1

Help: usbFunctionWrite isn't called

Posted: Sat Jul 14, 2007 10:48 pm
by iphi
I have problems implementing usbFunctionWrite.

Here is what I did:

-implemented usbFunctionWrite in main.c
-in usbFunctionSetup: return 0xff
-in usbconfig.h: #define USB_CFG_IMPLEMENT_FN_WRITE 1

But nevertheless usbFunctionWrite is never reached regardless of the control messages I send.

Have I missed something?

Posted: Sun Jul 15, 2007 1:54 pm
by iphi
Problem solved! It was a problem on my host program!

Re: Help: usbFunctionWrite isn't called

Posted: Sat Oct 24, 2009 12:48 am
by ionte
I have the exact same problem. Do you remember what your problem in the host program was?

Re: Help: usbFunctionWrite isn't called

Posted: Sun Nov 01, 2009 11:01 am
by christian
Make sure that you do a "make clean" after changing USB_CFG_IMPLEMENT_FN_WRITE in usbconfig.h. The makefile does not contain dependencies on this file, as far as I remember. Or delete all object files manually to ensure that everything is re-compiled.

Re: Help: usbFunctionWrite isn't called

Posted: Wed Nov 04, 2009 12:14 pm
by johnnyblame
Hi
I am trying to use V-Usb to control a display To send text to the display I thought I would use control messages, using usbFunctionWrite() to get the string data.
I have got the communication up and running: there are valid calls to usbFunctionSetup(), but usbFunctionWrite() is never called. Thus I never get any data.
I need some help to decode that!