I'm developing a MIDI controller around a RPi Pico type board (docs here), which doesn't support simultaneous powering through USB and a separate supply. VBUS and VSYS are outputs if powered by USB and inputs if powered by a separate power supply.
Normally the board would not be connected using USB, so an internal supply would deliver 5V to it, but on occasion, both USB and the internal supply would be connected (such as when re-programming the board).
I'm working on a carrier board for this (which would add some MIDI interfacing as well) and I'm trying to make it safe, so I was thinking about adding a 5V Zener diode (cathode to internal power supply, anode to VBUS) so that when powered through USB no current would flow from the internal supply. Something like this:
Would this work as I imagine? Would it break if connecting USB after internal power supply is ON?