2025-02-13 05:50 PM - edited 2025-02-13 05:53 PM
Good morning,
I am implementing a USB connection between my PC and the STM32F107 MCU in Device Only mode on a custom PCB. Since the PCB is powered through the USB connector (VBUS), I do not want to use the VBUS sensing pin (PA9) to activate USB communication. I have disabled it in the STM32CubeIDE settings, but the communication still does not start when I connect the cable.
The only way I found to initiate USB communication between the PC and the MCU is by setting PA9 as a GPIO OUTPUT Pull-Up. Is there a way to disable VBUS detection?
For reference, I am using the Middleware USB library with the Virtual COM Port (VCP) class. In the past, I used an STM32F411CEU6, and I did not encounter this issue—USB communication started immediately upon connecting the cable, even without VBUS being connected.