cancel
Showing results for 
Search instead for 
Did you mean: 

VBUS Sensing STM32F107RCT6

Schenna10
Associate

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.

Immagine 2025-02-14 024647.png

0 REPLIES 0