cancel
Showing results for 
Search instead for 
Did you mean: 

Genuine STLINK-V3MINIE doesn't work, but clone STLINK-V2 works

Chupacabras
Associate III

I'm trying to make genuine STLINK-V3MINIE to work, but without success.

The target device is STM32F103C8T6.

VCC is connected to T_VCC (pin 3 of STDC14)

SWCLK is connected to T_SWCLK (pin 6 of STDC14)

SWDIO is connected to T_SWDIO (pin 4 of STDC14)

RESET is connected to T_NRST (pin 12 of STDC14)

GND is connected to GND and GNDDetect (pins 5, 7, 11 of STDC14)

STM32CubeProgrammer is properly detecting STLINK-V3MINIE, even shows voltage of the target.

But when I try to connect to target, it gives message:

Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication

 

This is text from console:

  12:56:46:283 : UR connection mode is defined with the HWrst reset mode
  12:56:46:837 : ST-LINK SN  : [redacted]
  12:56:46:838 : ST-LINK FW  : V3J16M7
  12:56:46:838 : Board       : STLINK-V3MINIE
  12:56:46:838 : Voltage     : 3.29V
  12:56:46:839 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
  12:56:46:876 : Disconnected

 

I tried another PC, but with the same result.

 

When I connect clone STLINK-V2 instead of genuine STLINK-V3MINIE, I'm able to connect to target MCU, and download program to target.

This is the output from console:

  13:00:39:502 : UR connection mode is defined with the HWrst reset mode
  13:00:39:667 : ST-LINK SN  : [redacted]
  13:00:39:667 : ST-LINK FW  : V2J45S7
  13:00:39:667 : Board       : --
  13:00:39:667 : Voltage     : 3.18V
  13:00:39:667 : SWD freq    : 4000 KHz
  13:00:39:667 : Connect mode: Normal
  13:00:39:667 : Reset mode  : Hardware reset
  13:00:39:668 : Device ID   : 0x410
  13:00:39:668 : Revision ID : --
  13:00:39:668 : flash loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/FlashLoader/0x410.stldr is loaded
  13:00:39:668 : Debug in Low Power mode is not supported for this device.
  13:00:39:668 : Reading data...
  13:00:39:668 : r ap 0 @0x1FFFF7E0 0x00000004 bytes Data 0x00140040
  13:00:39:957 : UPLOADING OPTION BYTES DATA ...
  13:00:39:957 :   Bank          : 0x00
  13:00:39:957 :   Address       : 0x4002201c
  13:00:39:957 :   Size          : 8 Bytes
  13:00:39:958 : Reading data...
  13:00:39:958 : r ap 0 @0x4002201C 0x00000008 bytes Data 0x03FFFFFC
  13:00:39:959 :   Bank          : 0x01
  13:00:39:959 :   Address       : 0x1ffff800
  13:00:39:959 :   Size          : 16 Bytes
  13:00:39:959 : Reading data...
  13:00:39:959 : r ap 0 @0x1FFFF800 0x00000010 bytes Data 0xFFFF5AA5
  13:00:39:960 : UPLOADING OPTION BYTES DATA ...
  13:00:39:960 :   Bank          : 0x00
  13:00:39:960 :   Address       : 0x4002201c
  13:00:39:960 :   Size          : 8 Bytes
  13:00:39:960 : Reading data...
  13:00:39:961 : r ap 0 @0x4002201C 0x00000008 bytes Data 0x03FFFFFC
  13:00:39:961 :   Bank          : 0x01
  13:00:39:961 :   Address       : 0x1ffff800
  13:00:39:961 :   Size          : 16 Bytes
  13:00:39:962 : Reading data...
  13:00:39:962 : r ap 0 @0x1FFFF800 0x00000010 bytes Data 0xFFFF5AA5
  13:00:39:962 : UPLOADING ...
  13:00:39:962 :   Size          : 1024 Bytes
  13:00:39:963 :   Address       : 0x8000000
  13:00:39:963 : Read progress:
  13:00:39:963 : Reading data...
  13:00:39:964 : r ap 0 @0x08000000 0x00000400 bytes Data 0x20005000
  13:00:39:964 : Data read successfully
  13:00:39:964 : Time elapsed during the read operation is: 00:00:00.007

 

What is the problem with STLINK-V3MINIE?

How to make it work?

It's pretty frustrating that clone works and genuine debugger not.

 

20 REPLIES 20
gbm
Principal

Check the setting of SWD clock frequency, set it to 1 MHz or less,

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

It was on default frequency, 8000 kHz.

I changed it to 1000 kHz, or 200 kHz.

Still the same problem.

AScha.3
Chief III

Try with setting: connect mode normal + software reset ; (nrst not needed)

if V3miniE not finding target, you puzzled the swd/swc lines, or no contact on a line to target.

Or (too) long wires to target - V3 is much more sensible for stray-in , no reliable connection then.

I tried all : the V2 ("clones" , with STM32 cpu, but even with GD32 or Geany cpu ), V3MiniE, V3mods , J-link.

All working fine.

Just dont forget: the V2-sticks give 3v3 power out, the original STM not : only 3v3 in , to check target supply.

If you feel a post has answered your question, please click "Accept as Solution".
Carl_G
Senior

Settings look good. Connections Look good. I'd try a different reset mode as suggested. I can't see your schematic so I don't know how this is connected to the MCU and what's on the reset line.

I tried "normal mode + software reset", no effect.

I have checked continuity directly from the pins of MCU to pins on STLINK-V3MINIE connector. All good.

Wires are 32cm long (~ 1 foot).

Board is powered by its power supply. I know STLINK-V3MINIE doesn't provide power.

I have added full schematic (PDF). I could upload even kicad project if necessary.

There's only a button on reset line.

Ok, so try : to your target no other connection to mains or mains ground ;

also supply for target from PC (USB) or if needs extra supply from mains: connect it to same outlet, as PC is connected. And cables close together, to avoid any magnetic loop.

If you feel a post has answered your question, please click "Accept as Solution".

Target is powered by AC/DC power supply (connected through isolation transformer). So no ground loop.

Carl_G
Senior

If the knock off works the genuine should definitely work in the same configuration. Unless there is something wrong with the connectivity between the STLINK and the MCU. Have you tested that V3MINNIE on any other boards?

On my board I put a 100n to GND on the reset line as well. ST does that on their demo boards too. But on my board without it, it works fine.

Check your actual board pinout. Make sure the pins are going where you think they should be on the MINNIE.