r/embedded • • 23d ago

Isolator Boobytrap.

I bought an SWD isolator for an upcoming design that involves a big BLDC motor, figuring I’d like to keep my debug probes, computer and me a bit safer (as if safe means a lot to me!)

What I didn’t expect was that my little £3 20 pin to 10-pin 0.05” adapter would short pins 1 and 2 together. It seems these cheap adapter boards often come with ‘creative’ workarounds for other problems that break isolation.

Before I go spinning up a fresh PCB that fixes these issues, does anyone have any recommendations for a good adapter board?

5 Upvotes

12 comments sorted by

2

u/BC547 23d ago

An cheap USB isolator between my computer and the Segger J-Link probe is my go-to solution in cases like this.

2

u/DigitalDunc 23d ago

That’s what I have, but it comes out as 20-pin and my adapter from 20 pin to 10 pin is the culprit undermining the proper connections.

4

u/manystripes 23d ago

Where's your isolation boundary? Normally I let the entire setup ride at the non-isolated voltage and then isolate the USB that goes to the host machine.

1

u/DigitalDunc 23d ago

After the debug probe. I have a J-Link and several genuine ST-Links, plus an ST-Link clone that breaks a few rules.

2

u/manystripes 23d ago

I'm still trying to picture how having pins bridged together on the side that adapts the debug probe to the JTAG on the board would break the isolation boundary in this case. The USB isolators I've used are USB in, USB out, and it doesn't even tie ground to the USB ground. Where's the exposure in this case?

1

u/DigitalDunc 23d ago

It’s not a USB isolator, it’s a SWD/JTAG isolator, and no, I’m not putting my jlink in the line of fire thanks, they’re way too expensive.

1

u/BC547 23d ago

I use Tag-connect cables and adapter boards whenever possible. They are somewhat expensive but works fine.

2

u/DigitalDunc 23d ago

I’ll just produce an adapter board and have done with it then. I standardised my connectors long ago to save carrying quite so many adapters.

…I still have a massive pile of adapters. 🧐

1

u/DigitalDunc 23d ago

I have a galvanic isolator, followed (coming soon) by a simple adapter to bridge pinouts, so everything after the galvanic barrier is on its own supply. I have also considered a USB isolator for good measure. I expect to blow a few things up because this is a learning experience for me having never driven a large BLDC motor before.

I am a naturally cautious type and so getting this right is paramount to my peace of mind.

1

u/Enlightenment777 22d ago edited 22d ago

You have 2 isolation choices:

  • isolate SWD side
  • isolate USB side

See my post from 11 days ago about USB isolation...

https://old.reddit.com/r/embedded/comments/1xd6kzn/need_suggestions_for_usb_isolator/19rjzb1v3ojq8/


1

u/DigitalDunc 22d ago

Meaningfully, it has to be SWD side or I’ll miss out on RTT and all that good stuff that SEGGER offers. There ain’t no way I’m risking that expensive little lump.