Giter Club home page Giter Club logo

stlink-v3mini-cable-adapter-board's Introduction

STLINK-V3MINI-Cable-Adapter-Board

PCB files for an STLINK-V3MINI Adapter / breakout board that provides 0.100" (2.54mm) connections from the STMicrolectronics defined "STDC14" (7x2 0.050") connector cable. The adapter has been designed to support 1x12 headers to allow it to be plugged into a solderless breadboard or connected to the target using separate leads.

This adapter / breakout board was created to make it easier use the STDC14 cable that is provided with the MINI with boards that have 0.100" pin connections. It supports the following STLINK-V3MINI features:

  • Device FLASH programming
  • Serial Wire Debugging (SWD)
  • A Virtual Comm Port (VCP) over USB
  • Serial Wire Viewer (SWV)

board image

Two 1x12 single row header positions are provided for connecting to the target board. The signals on both are identical. One or both may be populated as desired. For example, one header connector may be soldered on the top of the board to enable connecting to the target board with patch wires while another header connector may be simultaneously soldered on the bottom to facilitate plugging the adapter into a solderless breadboard. Dual-row headers or sockets may also be used, or cable wires directly soldered to the board, and so on... Your choice.

Background

The STLINK-V3MINI is a very small and low cost FLASH programmer and in-circuit debug board for STM8 and STM32 microcontrollers that includes Serial Wire Viewer (SWV) and Virtual Comm Port (VCP) support, among other additional features. However, the STLINK-V3MINI STDC14 connector is an unusual size. The 0.050 (1.27mm) pitch STDC14 connector is not easily used with STM32 "maker" boards such as the Blue Pill, Black Pill, Maple Mini, and other boards that typically use 0.100" pin headers. It also doesn't match match the 10-pin cable standard defined for ARM JTAG. You can buy the STLINK-V3MINI with an adapter board and additional cables from WaveShare, at an increased overall cost for those extras. I had already purchased the stock STLINK-V3MINI, which only comes with a ribbon cable, and only needed an adapter. An internet search did not come up with any off-the-shelf STDC14 adapters so I decided to make my own that would be usable with my Black Pill and Blue Pill boards and that I could also plug into a solderless breadboard for prototyping.

What's good about the STLINK-V3MINI ๐Ÿ‘

The board provides a number of features that put it a level up from the STLINK-V2.1 and two steps above the cheap STLINK-V2 clones.

STLINK-V3MINI:

board image

  • Low Cost compared to official STMicroelectronics STLINK-V2 and STLINK-V3SET products
  • Very small (maybe too small?) Just 15mm x 30mm
  • Delivered with 1.27 mm pitch STDC14 to STDC14 flat cable
  • LEDs for communication and power
  • Includes STDC14 signals protection
  • Self-powered through Micro-B USB connector (Note: does not provide power supply to the target application)
  • USB 2.0 high-speed compatible interface
  • Can be upgraded or reprogrammed through Direct firmware update (DFU) (Potentially opening up the board to custom uses).
  • JTAG / serial wire debugging (SWD) specific features:
    • 3 V to 3.6 V application voltage support and 5 V tolerant inputs
    • SWD and serial wire viewer (SWV) communication support
  • Virtual COM port (VCP) specific features:
    • 3 V to 3.6 V application voltage support on the UART interface and 5 V tolerant inputs
    • VCP frequency up to 15 MHz
  • Provides interesting options for "bridging" I2C, GPIO, USART, SPI, and CAN between host USB and the board under test
    • Note: those additional features and connections are not provided on the adapter board. You'd need to connect directly to the castellated pads on the module

What's not so good about the STLINK-V3MINI ๐Ÿ‘Ž

The board appears to have been designed first as a module (The STLINK-V3MODS) with castellated 0.050" pitch holes that was intended to be soldered onto the target or some other intermediate board taking the least amount of space possible while providing access to all of the MINI's features. The STDC14 connector that makes the board into an STLINK-V3MINI instead of an STLINK-V3MODS fits into the overall design almost as an afterthought. The module itself is solidly built and does not need to be handled very delicately. The mechanical weak points are first in the STDC14 connector and secondly in the ribbon cable used to connect to the target board.

  • The Size
    • The STDC14 connector allows the STLINK-V3MINI to be used as a separate test board for its most used features, but a separate debug board having the smallest size is not a benefit compared to ease of connectivity.
  • No USB 5V passthrough
    • The STDC14 connector allows VCC to be provided as an INPUT to the board, but most use with small STM32 boards would be for it to be able to pass USB 5V TO the target board. Consequently, the target board needs to be powered through a separate connection.
  • The Proprietary STDC14 Connector Design
    • While the STDC14 pins include the 10-pin ARM JTAG signals as a subset, unfortunately you cannot directly plug a 0.050" (1.27mm) 10-pin IDC ribbon cable directly into the MINI because of mechanical interference. (The design intent was better than the implementation).
  • Connector and Cable Availability
    • The 2x7 0.50" sockets and headers are much harder for hobbyists to find in small quantities online than the 2x5 versions. If you're designing a new board it may be best to avoid directly supporting STM's STDC14 connector and stick with more standard and commonly available connectors.
    • The components for making the IDC ribbon cables are also harder to find, along with the ribbon cable material itself. Be gentle with the cable because if you bust it, getting a replacement may cost more than buying another board.
  • No mounting holes
    • Impedes using it from being installed on the target as a mezzanine card using the STDC14 connector, except temporarily (in which case you might as well use it with the ribbon cable).
    • Harder to use in a case. The lack of mounting holes along with the fact that the USB connector doesn't
    • The lack of mounting holes is less of an issue if the STLINK-V3MINI is hanging off the end of a USB cable and using the 14-conductor flat ribbon cable. A bit risky if it's directly attached to a board via the STDC14 connector since bumping the module or pulling the USB cable would put all the force onto the STDC14 connector.

Making Your Own Copy of the Adapter Board

The .ZIP file contains all the Gerber and Drill files needed to upload the design to a PCB fabrication service, such as JLCPCB. You should only need download the file from here and upload it to the service. It's a simple TWO LAYER board and should not require any special specifications or changes from the service's default configurations for two layer board manufacturing other than verifying that the DIMENSIONS ARE IN MM and selecting other options you may wish, such as board color or whether lead or lead-free solder tinning finish is used.

0.100" (2.54mm) pin headers are easy to find from many online sources. Finding the 2x7 0.050" (1.27mm) connector is more difficult. I wound up ordering my 1.27mm Pitch 2x7 Pin 14 Pin Straight Male Shrouded through-hole connectors from eBay. When ordering, check to make sure that there is a centered key slot. Alternatively, you can use generic 1.27mm pin header strips but since there is no shroud or key slot you need to be careful to avoid plugging in the cable the wrong way.

stlink-v3mini-cable-adapter-board's People

Contributors

tmsl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.