I'm currently designing a self-powered PCB with a STM32L432KCU6 and USB. After having done some research, it seems that it is necessary to connect the VBUS pin for detection purposes. However, is it also needed if I want not to use the detection feature? I would prefer establishing the USB connection by clicking on a button instead of automatically establishing it when VBUS is sensed.
I'm sorry if this is a trivial question, but I don't have much experience with USB so far.
simulate this circuit – Schematic created using CircuitLab