* Anyone know what is changing in usb2serial program for stm32 in ecos
@ 2009-06-22 9:22 GaurangT
2009-06-22 9:57 ` Chris Holgate
0 siblings, 1 reply; 2+ messages in thread
From: GaurangT @ 2009-06-22 9:22 UTC (permalink / raw)
To: ecos-devel
Dear,
I am using usb stm32 drivers,When I am disable serial init
function,I got error like this,
Entering cyg_user_start() function
Usb2Ser: Thread starting
Error opening USB rx port
Ser2Usb: Thread starting
Error opening USB tx port
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.
Thanks,
--
View this message in context: http://www.nabble.com/Anyone-know-what-is-changing-in-usb2serial-program-for-stm32-in-ecos-tp24144157p24144157.html
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Anyone know what is changing in usb2serial program for stm32 in ecos
2009-06-22 9:22 Anyone know what is changing in usb2serial program for stm32 in ecos GaurangT
@ 2009-06-22 9:57 ` Chris Holgate
0 siblings, 0 replies; 2+ messages in thread
From: Chris Holgate @ 2009-06-22 9:57 UTC (permalink / raw)
To: GaurangT; +Cc: ecos-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-22 9:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 9:22 Anyone know what is changing in usb2serial program for stm32 in ecos GaurangT
2009-06-22 9:57 ` Chris Holgate
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).