bschwind / key-ripper

Apache License 2.0
235 stars 14 forks source link

Make the SWD debug port self-powered #40

Closed bschwind closed 1 year ago

bschwind commented 1 year ago

Currently the RP2040 is only powered if it has USB power. If you connect a debug probe, you can only inspect it when the peripheral USB cord is already plugged in. This makes debugging harder because every time USB disconnects, you lose your debug session. Considering most of my debugging revolves around USB startup, the debug probe should provide power so the session is uninterrupted.

This will need diodes on the two power sources so voltage doesn't feed back.

bschwind commented 1 year ago

https://www.reddit.com/r/ErgoMechKeyboards/comments/rt083u/as_a_reminder_while_the_usb_is_plugged_do_not/hqpqktp/

It seems providing power over TRRS is a pretty bad idea, so I'm going to scrap that. Instead, I'll just provide a diode-protected 5V pad that I can optionally solder a wire to if I need to supply power outside of the USB connector.

bschwind commented 1 year ago

Implemented by b123fd12b0c08b5491edbafc2eb685afea95f521