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?
Help: usbFunctionWrite isn't called
Re: Help: usbFunctionWrite isn't called
I have the exact same problem. Do you remember what your problem in the host program was?
Re: Help: usbFunctionWrite isn't called
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.
-
- Posts: 1
- Joined: Wed Nov 04, 2009 11:56 am
Re: Help: usbFunctionWrite isn't called
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!
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!