Arm Mbed OS support forum

STM32F103 (Bluepill) USBSerial is not Working after init CAN

https://os.mbed.com/users/hexxter/code/STM32F103C8T6_USBSerial/

Without line 9 (CAN can1(…)) it works and with CAN init.

this is the syslog on my linux PC after i connect it with CAN included:

new full-speed USB device number 114 using xhci_hcd
usb 3-1.3.2: device descriptor read/64, error -32
usb 3-1.3.2: device descriptor read/64, error -32
usb 3-1.3.2: new full-speed USB device number 115 using xhci_hcd
usb 3-1.3.2: device descriptor read/64, error -32
usb 3-1.3.2: device descriptor read/64, error -32
usb 3-1.3-port2: attempt power cycle
usb 3-1.3.2: new full-speed USB device number 116 using xhci_hcd
usb 3-1.3.2: Device not responding to setup address.
usb 3-1.3.2: Device not responding to setup address.
usb 3-1.3.2: device not accepting address 116, error -71
usb 3-1.3.2: new full-speed USB device number 117 using xhci_hcd
usb 3-1.3.2: Device not responding to setup address.
usb 3-1.3.2: Device not responding to setup address.
usb 3-1.3.2: device not accepting address 117, error -71
usb 3-1.3-port2: unable to enumerate USB device

Destroys CAN init the clock settings for the USB? I’m new with mbed and not sure whats going wrong.

Thx Alexander