I am working on a custom board similar to the EVMSK; one difference, though, is that USB1 is intended to be its primary USB interface. After a hardware problem was found with the original interface, one board was modified to use USB0, I adapted code from the TI-RTOS 1.21.0.9 USBCDCD example, and it worked well. Now, that the USB1 hardware problem has been resolved, I am having trouble modifying the software to use USB1.
When I compile to use USB0, the software always reaches a breakpoint in function USB0DeviceIntHandler. With USB1, the software never reaches a breakpoint in function USB1DeviceIntHandler.
Here is a list of the changes I have made trying to get USB1 working:
-
In function USBCDCD_hwiHandler, replace call to USB0DeviceIntHandler with call to USB1DeviceIntHandler.
-
In function USBCDCD_init, in the call to Hwi_create, changed first parameter (INT_USB0) to INT_USB1.
-
In function USBCDCD_init, in the call to USBDCDCInit, replace first parameter with 1.
-
In file usbdenum.c, function USBDeviceEnumHandler, changed a call to USBDReadAndDispatchRequest to use parameter ulIndex rather than a hard-coded 0.
Note that in the example I followed, function USBCDCD_init has a call to USBStackModeSet. This function seems not to be found in my version of the USB library. It compiled and worked fine with this call commented out. I have stepped through initialization to verify that the driver does have USB1 in device mode.
I am using Code Composer Studio version 5.4.0.00091, BIOS version 6.35.1.29.
Could anyone suggest any other software changes to try?