From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8980 invoked by alias); 22 Jun 2009 09:57:36 -0000 Received: (qmail 8903 invoked by uid 22791); 22 Jun 2009 09:57:35 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_74,J_CHICKENPOX_81,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from anika.2020media.com (HELO smtp.2020smtp.net) (212.124.192.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 09:57:28 +0000 Received: from [212.124.199.38] (helo=[192.168.0.2]) by smtp.2020smtp.net with esmtp (Exim 4.63) (envelope-from ) id 1MIgH9-0000ls-OL; Mon, 22 Jun 2009 10:57:19 +0100 Message-ID: <4A3F557E.408@zynaptic.com> Date: Mon, 22 Jun 2009 09:57:00 -0000 From: Chris Holgate User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: GaurangT CC: ecos-devel@ecos.sourceware.org Subject: Re: Anyone know what is changing in usb2serial program for stm32 in ecos References: <24144157.post@talk.nabble.com> In-Reply-To: <24144157.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-06/txt/msg00036.txt.bz2 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.