2018-01-10 05:31 PM
Hello.
NUCLEO F411RE, Workbench generated project, Ubuntu 64 16.04, STCUbeMX , I think is V1.18
I wired a USB cable to USB-DP (PA12) USB-DM (PA11) GND and 5V.
I have a usb initialised as simple as instructed.
void MX_USB_DEVICE_Init(void)
{ USBD_Init(&hUsbDeviceFS, &FS_Desc, DEVICE_FS); USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC);USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_Interface_fops_FS);
USBD_Start(&hUsbDeviceFS);}
When I plug in the USB I cannot see the device. I could not find a solution.
[ 1020.672169] usb 2-2: new full-speed USB device number 19 using xhci_hcd
[ 1020.784169] usb 2-2: device descriptor read/64, error -71[ 1021.000167] usb 2-2: device descriptor read/64, error -71[ 1021.216158] usb 2-2: new full-speed USB device number 20 using xhci_hcd[ 1021.216312] usb 2-2: Device not responding to setup address.[ 1021.420263] usb 2-2: Device not responding to setup address.[ 1021.624148] usb 2-2: device not accepting address 20, error -71[ 1021.736140] usb 2-2: new full-speed USB device number 21 using xhci_hcd[ 1021.736282] usb 2-2: Device not responding to setup address.[ 1021.940249] usb 2-2: Device not responding to setup address.[ 1022.144092] usb 2-2: device not accepting address 21, error -71[ 1022.144128] usb usb2-port2: unable to enumerate USB deviceSolved! Go to Solution.
2018-01-11 06:40 PM
Hi, Thank you. I figure it out meanwhile with help from a HW engineer.
The Nucleos F411re I have has the 8Mhz crystal on the Sllink side. On Nucleo side,sudo dmesg -c
[46594.984255] usb 2-2: new full-speed USB device number 20 using xhci_hcd[46595.114171] usb 2-2: New USB device found, idVendor=0483, idProduct=5740[46595.114175] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[46595.114176] usb 2-2: Product: STM32 Virtual ComPort[46595.114178] usb 2-2: Manufacturer: STMicroelectronics[46595.114179] usb 2-2: SerialNumber: 00000000001A[46595.114784] cdc_acm 2-2:1.0: ttyACM1: USB ACM devic2018-01-11 06:49 AM
Hello
marrius9876
,Check if your VCP driver is correctly installed on PC, and try to increase heap and stack sizes.
May be this is due to VBUS sensing it must be set do Disable.
Note: Please use the last version of STM32CubeMx (v4.23)
Kind Regards,
Imen
2018-01-11 06:40 PM
Hi, Thank you. I figure it out meanwhile with help from a HW engineer.
The Nucleos F411re I have has the 8Mhz crystal on the Sllink side. On Nucleo side,sudo dmesg -c
[46594.984255] usb 2-2: new full-speed USB device number 20 using xhci_hcd[46595.114171] usb 2-2: New USB device found, idVendor=0483, idProduct=5740[46595.114175] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[46595.114176] usb 2-2: Product: STM32 Virtual ComPort[46595.114178] usb 2-2: Manufacturer: STMicroelectronics[46595.114179] usb 2-2: SerialNumber: 00000000001A[46595.114784] cdc_acm 2-2:1.0: ttyACM1: USB ACM devic