stacksmashing / tamarin-firmware

GNU General Public License v3.0
432 stars 51 forks source link

USB cable 5V red wire #13

Open danylokos opened 1 year ago

danylokos commented 1 year ago

According to the README if I want to use USB lines I need to wire them like this to a spare USB cable:

USB cable D+ (green) -> L0p (color depends on your cable) USB cable D- (white) -> L0n (color depends on your cable) USB cable GND (black) -> GND

I have the same lightning cable as in the Hooking it up section, same colors match the same lightning pins.

So in my case I need to connect the additional USB cable like this:

USB cable green <-> Lightning cable white USB cable white <-> Lightning cable green USB cable GND <-> spare GND pin on pico

Do I need to connect the red wire of the USB cable to the pico as well? Don't want to burn the phone or the laptop accidentally 😅

And does the length of the USB cable metters here. I know that the lenght of the lightning cable matters - shorted is better, is that the same case for the additional USB cable?

danylokos commented 1 year ago

My spare USB cable also has this additional thick black Drain & Shield wire, not sure if it matters.

Screenshot 2023-06-12 at 4 33 52 PM
VDavid003 commented 11 months ago

If you plan on using a seperate usb cable for usb data, I'd actually recommend wiring the lightning connectror's vbus to the seperate data usb's red +5v vbus line only instead of the rpi's vbus line. Checkm8 only works with this config for me. JTAG/DCSD will still work like this.

As for usb length, I think any usb cable that works as a regular usb cable just fine will work with it. I'm using a really short one but since it's just regular usb it should work with any standard usb cable's length I think.

danylokos commented 11 months ago

Huge thanks, worked like a charm! 😄👍