cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RBT6 USB communication problem

radekklepal99
Visitor

Hello,

I have a problem with the STM32F103RBT6 to setup USB communication.

I tried to setup it up according to this instruction: https://shawnhymel.com/1795/getting-started-with-stm32-nucleo-usb-virtual-com-port/

Then I found that my MCU has a special pin(PA9) for the initial that USB is connected to board.

The board is custom made. I am using an 12MHz external oscillator. I checked the wiring from USB(PC) to MCU (PA10 - USB_DM, PA11 - USB_DP), clock settings (48MHz).

prscr1.jpg

prscr2.jpg

Everything seems to be fine, but it still doesn't work and my device is not visible in device manager.

I don't know where the problem could be.

Could you please help me?

Thank you very much.

Radek

3 REPLIES 3
FBL
ST Employee

Hi @radekklepal99 

Did you add external pull up on DP? Note that STM32F1 and STM32F3x3 need an external pull up on DP for full speed operations. You are following STM32F0 tutorial. CubeMX clock tree seems like buggy? Could you attach IOC file to report?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


radekklepal99
Visitor

CubeMX clock seems correct to me.
IOC file is attached in the attachment.

I have now connected an external resistor. The computer already registers that the device is connected. However, this device has the error message "Device Failed Enueration: Unknown Device".

radekklepal99
Visitor

radekklepal99_0-1741605820289.png

Now I recognized the buggys in the picture of Clock Config. I restarted my IDE. Now it's fine, but the device has an error  "Device Failed Enueration: Unknown Device".