2017-02-24 08:51 AM
hey,
I tried to run usb hs + vcp with code created by CubeMX.
In generated code i have changed:
#define APP_RX_DATA_SIZE 64
#define APP_TX_DATA_SIZE 64and included in main.c:
#include 'usbd_cdc_if.h'
also changed:
Stack_Size EQU 0x00004000
Heap_Size EQU 0x00002000
and no luck at all. When pluging in usb cable i got message in linux:
usb 1-1: new full-speed USB device number 80 using xhci_hcd
usb 1-1: device descriptor read/64, error -71usb 1-1: device descriptor read/64, error -71usb 1-1: new full-speed USB device number 81 using xhci_hcdusb 1-1: device descriptor read/64, error -71usb 1-1: device descriptor read/64, error -71usb 1-1: new full-speed USB device number 82 using xhci_hcdusb 1-1: Device not responding to setup address.usb 1-1: Device not responding to setup address.usb 1-1: device not accepting address 82, error -71usb 1-1: new full-speed USB device number 83 using xhci_hcdusb 1-1: Device not responding to setup address.usb 1-1: Device not responding to setup address.usb 1-1: device not accepting address 83, error -71usb usb1-port1: unable to enumerate USB deviceUnder Windows it recognizes as wrong device (it's not related to driver)
any hints how to run usb hs with vcp?
thanks!
Solved! Go to Solution.
2017-02-27 02:48 AM
Check the Configuration tab, USB_OTG_FS Configuration, VBUS sensing - must be set do Disable. I don't really know why CubeMX sets it to Enable by default.
2017-02-24 11:01 AM
Maybe a hardware problem? Does another USB class work?
2017-02-25 08:57 AM
unfortunately no, tried three different boards on the different computers.
2017-02-27 02:48 AM
Check the Configuration tab, USB_OTG_FS Configuration, VBUS sensing - must be set do Disable. I don't really know why CubeMX sets it to Enable by default.