Skip to main content
baranovay
Associate
Question

Multiple USB CDC (USB IAD). How?

Posted on June 10, 2010 at 07:46

Multiple USB CDC (USB IAD). How?

#iad #cdc #stm32f103 #dual-cdc-with-stm32l152 #usb-cdc-duart
This topic has been closed for replies.

24 replies

x8932
Associate II
Posted on October 04, 2012 at 15:50

Hi guys,

can you publish ready to use example for IAD ?

Thanks in advance

x8932
Associate II
Posted on January 26, 2013 at 03:11

I publish working example for dual CDC (as composite device).

http://akb77.com/g/stm32/stm32f103-cdc/

shengyiyangfeng
Visitor II
Posted on February 24, 2013 at 17:38

Hello.

As we know,the vcp demo(one cdc) needs three eps,but interrupt IN is declared in the descriptor but the related endpoint is not used. And up to 16 mono-directional or 8 bidirectional endpoints can be used.So if more CDC composite can be implemented,for example 5 cdc to use all uart?

Yangfeng

tsuneo
Associate II
Posted on February 26, 2013 at 07:10

> but interrupt IN is declared in the descriptor but the related endpoint is not used.

The interrupt IN EP should be enabled, even if the firmware doesn't handle it.

Windows CDC driver (usbser.sys) polls the interrupt IN EP repeatedly.

When the EP returns no response, usbser.sys stops to read out the bulk IN EP, after a couple of transfers on the bulk EP.

Tsuneo

shengyiyangfeng
Visitor II
Posted on February 26, 2013 at 16:40

to be migrated, sourceId: 28478:697285D7-A9CA-445D-B16C-F23BF0E3B1A3

ryankjohnson
Visitor II
Posted on December 22, 2013 at 19:04

I want to thank 

Tsuneo for his detailed walk-through on this. I found his notes very helpful in getting a MSC + CDC composite device created on the STM32F4 Discovery.

Cheers!

-- Ryan

deanos
Associate
Posted on February 10, 2014 at 04:35

Also thanks to Tsuneo and others for sharing valuable info here.

Ryan, any chance of sharing your MSC + CDC example? - I'm sure many in this community including me would greatly appreciate it.

Thanks.

highimpedance
Associate II
Posted on August 21, 2014 at 12:03

Hello,

I am trying your nice example to run on stm32L152 mcu? is it possible? Will Number of EPs (IN/OUT)  be problem for me? thx

sdim
Associate II
Posted on January 13, 2015 at 18:55

I have made a similar project based on STM32F4.

It works fine on windows XP, it even works with shared interrupt endpoint.

However, I cannot install it on Windows 8.1 x64.

Have you tried to install your device on Windows 8.1 x64?
peterdonchev
Senior
Posted on February 02, 2015 at 11:01

Hi, can you share how you use shared Interrupt end point? Is it possible to have two CDCs on STM32F105?