2

I'm studying a task about STM32F103 interface USB in device mode. I see that the STM32F103 doesn't have the checkbox "Activate Vbus" in CubeMX but STM32f105 and STM32f107 have the checkbox. I know that Vbus is important to detect the USB Host.

Please tell me, why is that?

STM32F103 STM32F103 STM32F105 STM32F105

JRE
  • 67,678
  • 8
  • 104
  • 179
  • What's that square next to 'Activate_VBUS" if it's not a checkbox? – Bruce Abbott Jul 18 '20 at 07:59
  • Are you sure that you can connect a USB host to stm32f103 ? – Marko Buršič Jul 18 '20 at 11:19
  • @BruceAbbott Sorry ! I don't understand your question, could you explain your question in more detail !? – Phạm Tài Jul 18 '20 at 14:28
  • @MarkoBuršič Yes, i succeeded. I tried to connect Stm32f103 to PC and Android Phone with USB CDC mode and configured stm32f103 by CubeMX. But i don't understand why CubeMX configure USB connectivity stm32f103 without Vbus pin ! – Phạm Tài Jul 18 '20 at 14:52
  • @BruceAbbott the way the OP has formatted the text is confusing. The pic with 'Activate_VBUS' applies to the F105, not the F103. – brhans Jul 18 '20 at 15:39

1 Answers1

3

STM32F105/107 supports USB OTG.
STM32F103 does not. It's simple as that.

Chupacabras
  • 5,394
  • 2
  • 23
  • 50
  • I tried to tell the OP the same. USB_CDC or USB mass storage or USB HID example is not an USB OTG. – Marko Buršič Jul 18 '20 at 19:26
  • @MarkoBuršič But i studied that VBUS detection is necessary for self-powered devices (https://community.nxp.com/thread/417013 ) !? – Phạm Tài Jul 19 '20 at 14:52
  • @Chupacabras Stm32f103 still need Vbus to detect USB Host so why it doesn't have the checkbox "Activate Vbus" in CubeMX ? – Phạm Tài Jul 20 '20 at 00:32