public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Chris Holgate <chris@zynaptic.com>
To: GaurangT <gtamakuwala@intriguetechsolutions.com>
Cc: ecos-devel@ecos.sourceware.org
Subject: Re: Anyone know what is changing in usb2serial program for stm32  in  ecos
Date: Mon, 22 Jun 2009 09:57:00 -0000	[thread overview]
Message-ID: <4A3F557E.408@zynaptic.com> (raw)
In-Reply-To: <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.

      reply	other threads:[~2009-06-22  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22  9:22 GaurangT
2009-06-22  9:57 ` Chris Holgate [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A3F557E.408@zynaptic.com \
    --to=chris@zynaptic.com \
    --cc=ecos-devel@ecos.sourceware.org \
    --cc=gtamakuwala@intriguetechsolutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).