Author Topic: How to debug a USB 3 connection?  (Read 2779 times)

0 Members and 1 Guest are viewing this topic.

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 465
  • Country: gb
    • PCBA.UK
How to debug a USB 3 connection?
« on: December 01, 2018, 11:35:31 pm »
Hi all

I have a circuit board that I freelanced out the design of.
Had it made and got a pro to solder the USB type C plug and socket on for me (0.5mm pitch I wont touch xD)

The board extends the USB Type C socket about an inch from the plug.

I can get it to work in USB 2 mode but not USB 3.
Sometimes I can get the board I soldered to work in USB 3 but this is very rare.

What are my options here to debug this and find out what is going wrong?

Thank you
Jack

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #1 on: December 02, 2018, 12:10:04 am »
Seems you have signal integrity problems. If you can - show schematics (at least part in question) and photos of PCB, both sides. Provide links to info/docs of chip used. If you copied (part) of some existing board like devboard of USB chip - mention it as well.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #2 on: December 02, 2018, 12:28:37 am »
USB 3 will work even is there is a few cm of wiring on 2 layer board without any impedance matching. Although in such case it will become a radio transmitter killing bluetooth, wifi and wireless mouses nearby. So without giving specifics of that board, it's hard to say why it does not work.
 

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 465
  • Country: gb
    • PCBA.UK
Re: How to debug a USB 3 connection?
« Reply #3 on: December 02, 2018, 12:29:56 am »








USB Socket top of board Würth Elektronik 632723300021
USB Plug bottom of board Würth Elektronik 632712000021

Board is 4 layer, the middle 2 are ground only.


Also to note, if I flip the cable from the socket to my PC, nothing works at all. No USB 2.

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #4 on: December 02, 2018, 12:44:26 am »
There might be other errors but on first glance I found this. Those are simply not connected.

 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #5 on: December 02, 2018, 12:53:46 am »
Although it explains only why it does not work in one position at all. Not problem with USB 3.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #6 on: December 02, 2018, 12:56:54 am »
Here is pinout for reference.

 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #7 on: December 02, 2018, 01:06:54 am »
Also no GND connection here.

 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #8 on: December 02, 2018, 01:12:09 am »
Also strange that CCx and SBUx are length matched as well when it's not needed at all. The best would be to just route them as short as possible.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #9 on: December 02, 2018, 01:24:31 am »
These 2 holes should not be there because connector does not have such pins and they only interfere with differential pair routing. EDIT: different connector used on PCB

« Last Edit: December 02, 2018, 01:39:12 am by wraper »
 

Offline jismal

  • Contributor
  • Posts: 26
  • Country: in
Re: How to debug a USB 3 connection?
« Reply #10 on: December 02, 2018, 01:28:47 am »
Why different part name in schematic and BOM. Those two are different connectors
« Last Edit: December 02, 2018, 01:31:00 am by jismal »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #11 on: December 02, 2018, 01:28:53 am »
Hmm, probably connector is not properly soldered because I don't see 2 holes for plastic guides. EDIT: different connector used on PCB
« Last Edit: December 02, 2018, 01:39:20 am by wraper »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #12 on: December 02, 2018, 01:34:24 am »
Why different part name in schematic and BOM. Those two are different connectors
Now I see why there are no holes for plastic guides and 2 additional holes present. Connector is different. That was misleading.
 

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 465
  • Country: gb
    • PCBA.UK
Re: How to debug a USB 3 connection?
« Reply #13 on: December 02, 2018, 01:42:59 am »
I believe the schematic parts are just mislabelled.

Offline jismal

  • Contributor
  • Posts: 26
  • Country: in
Re: How to debug a USB 3 connection?
« Reply #14 on: December 02, 2018, 01:45:08 am »
Just posting though
Ti recommendation for SuperSpeed Differential Routing
Maximum single differential pair size 8 inches
Maximum mismatch within single pair 5 mils.
Group matching?
Impedance 90ohm +-15%

 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #15 on: December 02, 2018, 01:50:17 am »
How could I miss this  :palm:. H1-H4 pads of edge connector are not grounded. Not only it's mechanically weak (I would even avoid using thermal relief on those), basically cable shield is left not connected  :horse:. Now it's obvious why it fails to work as USB 3.

Yeah, 3 different errors on such simple board  :palm:.
« Last Edit: December 02, 2018, 01:54:56 am by wraper »
 

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 465
  • Country: gb
    • PCBA.UK
Re: How to debug a USB 3 connection?
« Reply #16 on: December 02, 2018, 01:58:05 am »
How could I miss this  :palm:. H1-H4 pads of edge connector are not grounded. Not only it's mechanically weak (I would even avoid using thermal relief on those), basically cable shield is left not connected  :horse:. Now it's obvious why it fails to work as USB 3.

Yeah, 3 different errors on such simple board  :palm:.

I forgot to mention that we noticed that and put a mod wire in to fix the prototype.

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #17 on: December 02, 2018, 02:37:32 am »
I guess this has something to do with not connecting diff pairs in certain cable orientation or running diff pairs in parallel. I won't dig into type-C spec now as it's late night here but cables most likely have only one set of differential pairs (3 diff pairs in total, not 6). So running 6 diff pairs like this might cause connection working on only certain matching orientation of cables (1/4 chance of success considering missing D lines on one side) or even cause diff pairs connected in parallel through the cable.
« Last Edit: December 02, 2018, 03:16:00 am by wraper »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #18 on: December 02, 2018, 11:46:17 am »
Full featured type C cable seem to have 5 diff pairs. Only one diff pair for USB 2.



So as I understand schematic should be like this:




« Last Edit: December 02, 2018, 11:57:14 am by wraper »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #19 on: December 02, 2018, 12:04:25 pm »
Oh, and Vbus trace is way too thin for supplying any serious current as it should according to USB spec. It should be much thicker and have separate traces running from all 4 pins joining into one thick trace. Not running through other 2 Vbus pins of female connector. Via stitching of GND is inferior for such high speed application as well.
« Last Edit: December 02, 2018, 12:07:29 pm by wraper »
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #20 on: December 02, 2018, 12:13:08 pm »
And it would be better to not have GND fills at all at outer layers rather than having them located inconsistently around diff pairs, thus inconsistently affecting impedance.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: How to debug a USB 3 connection?
« Reply #21 on: December 02, 2018, 01:20:39 pm »
That board does have a buried ground plane right? If not I think you have diff pairs crossing reference planes in a few places, never a good look at these speeds.

Regards, Dan.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: How to debug a USB 3 connection?
« Reply #22 on: December 02, 2018, 01:30:12 pm »
Quote
Board is 4 layer, the middle 2 are ground only.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: How to debug a USB 3 connection?
« Reply #23 on: December 02, 2018, 01:53:24 pm »
Board is 4 layer, the middle 2 are ground only.
Gaa, insufficient caffeine error!

Regards, Dan.
 

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 465
  • Country: gb
    • PCBA.UK
Re: How to debug a USB 3 connection?
« Reply #24 on: December 02, 2018, 02:58:18 pm »
Should I just hire someone from here to start from scratch instead of bothering with this freelancer?


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf