Skip to main content
MOhamed_Mehery
Associate III
May 3, 2023
Solved

STM32F103 USB problem with custom Hardware with cubeMX software (basic example), It doesn't work.

  • May 3, 2023
  • 2 replies
  • 1202 views

I'm using stm32f103 in my hardware, I didn't put pull-up resistor to USB _ D+ pin.

The device doesnot appear on PC.
_legacyfs_online_stmicro_images_0693W00000bjGtjQAE.pngIs there any way to make it work without Hardware changes?

This topic has been closed for replies.
Best answer by AScha.3

>Is there any way to make it work?

yes.

add 1k5 pull-up resistor to USB _ D+ pin. - without 1k5 , no enumeration.

you edit :

>Is there any way to make it work without Hardware changes?

no.

2 replies

AScha.3
AScha.3Best answer
Super User
May 3, 2023

>Is there any way to make it work?

yes.

add 1k5 pull-up resistor to USB _ D+ pin. - without 1k5 , no enumeration.

you edit :

>Is there any way to make it work without Hardware changes?

no.

"If you feel a post has answered your question, please click ""Accept as Solution""."
gbm
Principal
May 3, 2023

Also, generally, if you call Transmit from the main loop, the USB will sooner or later hang.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice