AnsweredAssumed Answered

USB composite device examples

Question asked by biafra on Aug 3, 2016
Latest reply on Aug 16, 2016 by Jorge Antonio Alcala Vazquez


Hi everyone,

 

Currently I'm working on TWR-K65F180M, KDS 3.2.0 and KSDK 2.0.

I'm testing the USB composite device examples (MSC + CDC and HID mouse + HID keyboard): they work fine if I use the USB0 controller (FS) (as they come in the package), by plugging the cable in the USB connector in the TWR-SER board (J14 connector).

 

But if I change the usb_device_config.h file to use the USB1 controller (HS)

 

USB_DEVICE_CONFIG_KHCI from 1 to 0

USB_DEVICE_CONFIG_EHCI from 0 to 1

 

and I plug the cable in the USB connector in the TWR-K65F180M board (J15 connector) the examples work only the first time I plug the cable: if I unplug the cable and then I plug it again, the device isn't discovered and it isn't discovered until I reset the device.

The device works (with both examples) only the first time it is connected.

 

Did anyone find the same behaviour?

 

Many thanks

Biafra

Outcomes