cancel
Showing results for 
Search instead for 
Did you mean: 

usb CDC control interface (can this be removed)

russdx
Associate II
Posted on September 30, 2012 at 20:37

I have the CDC example running great :)

It pops up as 2 separate usb interfaces on my pc (0 and 1)

I have noticed to send and receive data over the usb i only need the second interface. the first *control* interface seams to be unused (i can uninstall it from my device manager and i can still send and receive data fine)

my question is can i remove this control/command interface 0  from the stm code so when i plug my board into my pc only the second interface 1 pops up. as this is the only one i need.

Im very new to the usb protocol so be kind if i have missed some thing obvious :)
22 REPLIES 22
russdx
Associate II
Posted on October 16, 2012 at 11:15

russdx
Associate II
Posted on October 16, 2012 at 11:17

yup every time i run my test usb program ''

if
( usb_set_configuration( device, MY_CONFIG ) < 0 ){
'' gets called :)

hmm

MY_CONFIG

is set to 1 this does not have to changed to 0 does it?

I think its time to put uart1 to good use and start adding some trace to the stm usb code and see exactly where its killing these end points :)
tsuneo
Senior
Posted on October 16, 2012 at 17:23

Ah, sorry.

There were Set_Configuration (SELECT_CONFIGURATION) on both of sniffer traces. I was looking in wrong column of the traces.

Then, the traces don't tell about any more clue than the bulk endpoint is disabled.

> I think its time to put uart1 to good use and start adding some trace to the stm usb code and see exactly where its killing these end points :)

Put a break point in usbd_cdc_Init(). It is the first place where the bulk/interrupt endpoints are enabled.

Tsuneo