2012-09-30 11:37 AM
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 :)2012-10-16 02:15 AM
2012-10-16 02:17 AM
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 :)2012-10-16 08:23 AM
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