cancel
Showing results for 
Search instead for 
Did you mean: 

Dual CDC on STM32

Posted on October 18, 2016 at 14:54

Hello there,

I am working with HAL library. I have used CubeMx to generate a startup code for USB id device mode with CDC driver. I was wondering either it is possible to easily modify the library in order to have 2 CDC ports visible on 1 USB interface? I couldn't find any example for this kind of implementation. I would appreciate all help.
5 REPLIES 5
Posted on October 19, 2016 at 07:21

Hello,

This is a real urgent case for me. I would really appreciate any hints.
slimen
Senior
Posted on October 19, 2016 at 10:30

Hello Bremen,

You will find in the forum several threads on the topic that helps you.

You can refer to this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Multiple%20USB%20CDC%20%28USB%20IAD%29.%20How&currentviews=9776]thread  with working

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

for dual CDC.

Regards

Posted on October 19, 2016 at 10:37

Hi, Thank you for answer.

I have also just found this topic couple minites a go. It seems from it that I cannot implement dual CDC on a F105 device, thats to bad...
YILDIRIM.Alper
Associate
Posted on January 08, 2017 at 11:36

I am also working on this for the past week. Found a good site, check this: 

http://www.cnblogs.com/shangdawei/archive/2012/10/24/2737053.html

 
TaipeiViking
Associate II
Posted on April 07, 2018 at 10:57

You can find a full example how to do it here, and its tested and working on STM32F072CBT6.

You should be able to easily port it to STM32F1x

https://github.com/taipeiviking/USBdualCDCuartsSTM32F072CBT6