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.