My setup: I have an ESP32 IC (and some circuitry around it) which is powered by USB-C or external power. These two power inputs are "mixed" together using 2 Schottky diodes. (GitHUB repo for context, but not important).
The problem: This setup works really great, until I try to power it externally and have the USB-C cable connected also. Remember, due to the power rail mixing, this should be fine, but the computer does not want to recognise the device now.
Solution? I found out that just by connecting a 10 kΩ pull-down resistor to the USB-C line solved the issue and I was able to power it externally and program it via USB-C.
Question: So does the USB-C controller inside my MacBook M1 require some power draw from the device in order to recognise it? I never heard of this issue before and I'm kind of confused.
Edit: Posted schematics here: The pull-down resistor in the "power merging" window is just my hot fix.