2016-05-21 01:39 PM
I'm having some difficulty getting the default HID or VCOM projects to run properly. I've set the HSI input and let the clock configuration do its thing. The projects compile fine, but when I try to run them on a Mac (OS X 10.10.5), they fail to enumerate -- here's the system log message :
------The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying. (Port 4 of Hub at 0xfa100000)
May 21 16:30:40 hickcox kernel[0]: USBF: 2008717.402 The IOUSBFamily gave up enumerating a USB device after 10 retries. (Port 4 of Hub at 0xfa100000)
------------With all this autogenerated code, it's hard to know where to start. I've had Chibio vcom projects on the F3 discovery board working just fine with my Mac. Prime suspects are : clock configuration : something more than the default project needed to run out of the box : USB firmware incompatible with OS XI'm leaning toward the first two, but open to suggestions.Geoffrey2016-05-23 06:41 AM
An slight update -- the HID project does seem to work. At least I can open the device with the the test program generated from hidapi. However, the vcom device is still causing the issues below.
2016-05-23 07:07 AM
More progress -- the default vcom project doesn't wait for connection -- you need to follow the approach described here:
http://stackoverflow.com/questions/33549084/stm32cubemx-usb-cdc-vcpin order to properly wait for connect.