AnsweredAssumed Answered

cubemx + usb vcp and stm32f4?

Question asked by John Doe on Feb 24, 2017
Latest reply on Feb 27, 2017 by gbm

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 64

and 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 -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new full-speed USB device number 81 using xhci_hcd
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new full-speed USB device number 82 using xhci_hcd
usb 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 -71
usb 1-1: new full-speed USB device number 83 using xhci_hcd
usb 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 -71
usb usb1-port1: unable to enumerate USB device

Under Windows it recognizes as wrong device (it's not related to driver)

any hints how to run usb hs with vcp?

thanks!

Outcomes