cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX generated code doesn't work?

Stefan Mavrodiev
Associate
Posted on November 03, 2017 at 22:21

Hello.

I want to implement USB-CDC device on STM32F070P6. I've generated the needed code using STM32CubeMX but it doesn't seems to work.

I can't see USBD_CDC_Init to be called, thus when the device is flashed I get this error:

[15798.097292] usb 2-7: device descriptor read/64, error -71

[15798.325291] usb 2-7: device descriptor read/64, error -71

[15798.553272] usb 2-7: new full-speed USB device number 96 using xhci_hcd

[15798.673212] usb 2-7: device descriptor read/64, error -71

[15798.901228] usb 2-7: device descriptor read/64, error -71

[15799.129268] usb 2-7: new full-speed USB device number 97 using xhci_hcd

[15799.129474] usb 2-7: Device not responding to setup address.

[15799.337467] usb 2-7: Device not responding to setup address.

[15799.545254] usb 2-7: device not accepting address 97, error -71

[15799.665263] usb 2-7: new full-speed USB device number 98 using xhci_hcd

[15799.665470] usb 2-7: Device not responding to setup address.

[15799.873426] usb 2-7: Device not responding to setup address.

[15800.085156] usb 2-7: device not accepting address 98, error -71

[15800.085195] usb usb2-port7: unable to enumerate USB device

Am I missing something?

#stm32f070 #usb-cdc
0 REPLIES 0