I am creating a PCB where a ESP32-S3-WROOM-1 sits on, which shall be powered by an external power supply (and a NCP1117 3.3V LDO) and not by USB. However, I will use USB to flash the ESP32, so the PCB will have a USB socket which connects to the cip.
However, there is a risk that both USB and power adapter are plugged in and the same time. Also, as per specification, USB will not deliver more than 100mA if the device has not been registered at the host and I don't want to handle that, even if I know, that in real world almost every PC will deliver way more than 100 mA. Additionally, the inrush current for USB as per specification must be not more than 10µF which might be a problem if I want to use larger capacitors for power stabilization.
I therefore wonder if I can simply cut-off VCC of the USB. Can it then still transmit the data betwen D-/D+ and GND?