Other Parts Discussed in Thread: OMAPL138
Tool/software: Code Composer Studio
I am using a TMS320C6748 as a USB2.0 device. Whenever I start a debugging session from CCS, the usb device appears in the Windows device manager. When I disconnect CCS from the target and then start a new debug session, the USB device is disconnected from the bus during the call to USBDBulkInit. More specifically, it is disconnected when setting the RESET bit in the CTRLR register. I understand that the USB device is disconnected from the bus when the USB hardware is reset, but what can I do to bring it back on the bus?
Some lines after the reset, the following code is executed
// Make sure we disconnect from the host for a while. This ensures // that the host will enumerate us even if we were previously // connected to the bus. // USBDevDisconnect(USB0_BASE); // // Wait about 100mS. // delay(100); // // Attach the device using the soft connect. // USBDevConnect(USB0_BASE);
It looks like this is meant for exactly my case, but it doesn't bring my USB device back on the bus