This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Anyone know what is changing in usb2serial program for stm32 in ecos
- From: Chris Holgate <chris at zynaptic dot com>
- To: GaurangT <gtamakuwala at intriguetechsolutions dot com>
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Mon, 22 Jun 2009 10:57:18 +0100
- Subject: Re: Anyone know what is changing in usb2serial program for stm32 in ecos
- References: <24144157.post@talk.nabble.com>
GaurangT wrote:
> I am using usb stm32 drivers,When I am disable serial init
> function,I got error like this,
Umm - I don't think you want to disable the entire function - there are
some semaphore initialisations in there.
> STM32 USB : Setting USB device address = 1
> STM32 USB : Setting USB configuration = 1
> ACM Class Handler
> Get Line Coding
> ACM Class Handler
> *** Unhandled ACM Request: 0x22 ***
> STM32 USB : Stall EP0 on UNKNOWN control message : 21 22 00 00 00 00 00 00
>
> What is change in usbs-serial and usb2serial code and cdl file.What
> is meaning of this error.
It looks like a class specific EP0 control message is not being handled
by the class driver. The handler function is attached using the
following code:
#ifdef CYGDAT_IO_USB_SLAVE_CLASS_TYPE_ACM
if (!usbs_serial_ep0->class_control_fn)
usbs_serial_ep0->class_control_fn = usbs_serial_acm_class_handler;
#endif
So CYGDAT_IO_USB_SLAVE_CLASS_TYPE_ACM needs to be set to attach the
handler correctly - is this the case for your build?
Chris.