Author Topic: "practically smallest" debug connector on tiny pcb  (Read 544 times)

0 Members and 1 Guest are viewing this topic.

Offline Wilson__Topic starter

  • Contributor
  • Posts: 38
  • Country: gb
"practically smallest" debug connector on tiny pcb
« on: April 24, 2024, 08:11:19 pm »
Appreciate advises on a 'practically smallest' connector on custom made PCB. For connection to ST-Link debugger 10 pins.  Seem FPC is nice (flex printed circuit board as in Raspberry Pi camera) with a flip tab so FPC cable can be inserted with zero force and last for tens of insert/uninsert cycles.  What are the going-to pitch that is easily available, 1mm or 0.5mm or others?  Many thanks
 

Offline jc101

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: gb
Re: "practically smallest" debug connector on tiny pcb
« Reply #1 on: April 24, 2024, 08:36:56 pm »
Presume all the https://www.tag-connect.com/products are too large?
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4446
  • Country: dk
Re: "practically smallest" debug connector on tiny pcb
« Reply #2 on: April 24, 2024, 08:48:35 pm »
Appreciate advises on a 'practically smallest' connector on custom made PCB. For connection to ST-Link debugger 10 pins.  Seem FPC is nice (flex printed circuit board as in Raspberry Pi camera) with a flip tab so FPC cable can be inserted with zero force and last for tens of insert/uninsert cycles.  What are the going-to pitch that is easily available, 1mm or 0.5mm or others?  Many thanks

why 10 pins?  SWD debug only really need two pins plus gnd
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11277
  • Country: us
    • Personal site
Re: "practically smallest" debug connector on tiny pcb
« Reply #3 on: April 24, 2024, 09:01:01 pm »
First of all, reduce the number of pins. In addition to the SWD+GND you may need VCC for powering the debugger buffers, and may be reset. So, at most you need 5 pins.

And then the smallest connector is just 0.05" though hole header. It can be populated with an actual connector or wires soldered to a more useful connector. It can also be used as test points for mass production.

For the same small number of contacts, FPC connectors end up being bigger, since they need mechanical pads as well.
« Last Edit: April 24, 2024, 09:05:03 pm by ataradov »
Alex
 
The following users thanked this post: thm_w

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1561
  • Country: au
Re: "practically smallest" debug connector on tiny pcb
« Reply #4 on: April 24, 2024, 09:13:45 pm »
Appreciate advises on a 'practically smallest' connector on custom made PCB. For connection to ST-Link debugger 10 pins.  Seem FPC is nice (flex printed circuit board as in Raspberry Pi camera) with a flip tab so FPC cable can be inserted with zero force and last for tens of insert/uninsert cycles.  What are the going-to pitch that is easily available, 1mm or 0.5mm or others?  Many thanks

One approach I've seen for tight boards, is to extend the debug / program header off-board into a break-off tongue, that is used for development and program, but that is broken off when the board goes into the final case.
Pogo pin pads can be provided, if you need subsequent physical contact firmware updates.
 

Offline Wilson__Topic starter

  • Contributor
  • Posts: 38
  • Country: gb
Re: "practically smallest" debug connector on tiny pcb
« Reply #5 on: April 24, 2024, 10:10:11 pm »
yes, many thanks.  0.05 inch through hole look good.  if one row, it can contact plate through hole with some bend force. swdio, swclk, gnd, vcc, nrst is 5 pins.  the new swo not tried before, is one more pin. Document says spy on the mcu but need graphic programming on the debug pc to extract useful data.  may not be too useful as now.  for luxery, uart tx, rx will be 8.
 

Offline Wilson__Topic starter

  • Contributor
  • Posts: 38
  • Country: gb
Re: "practically smallest" debug connector on tiny pcb
« Reply #6 on: April 24, 2024, 10:12:16 pm »
many thanks.  very good thinking.  snap off to 0.1 inch connector and on board hole or poco pin pads at 0.05 inch
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11277
  • Country: us
    • Personal site
Re: "practically smallest" debug connector on tiny pcb
« Reply #7 on: April 24, 2024, 10:20:35 pm »
You don't need SWO for programming. It may be useful for debugging, but in most cases it is not worth it, especially if you already have debug UART.
Alex
 
The following users thanked this post: Wilson__

Offline Wilson__Topic starter

  • Contributor
  • Posts: 38
  • Country: gb
Re: "practically smallest" debug connector on tiny pcb
« Reply #8 on: April 24, 2024, 10:46:18 pm »
Many thanks.  Very clever way to do it.  Castellated board edge takes little space on pcb
 

Offline Kasper

  • Frequent Contributor
  • **
  • Posts: 750
  • Country: ca
Re: "practically smallest" debug connector on tiny pcb
« Reply #9 on: April 27, 2024, 03:54:10 am »
If you include an extra pin, you can use it as a key, to reduce the chance of someone plugging the programmer in backwards.
 
The following users thanked this post: Wilson__


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf