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
View more

 

What is the problem with STLINK-V3MINIE?

How to make it work?

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

 

31 REPLIES 31

I just connected a miniE to a H7 board, to show:

AScha3_0-1743496659365.png

connection at 24 Mb , cable to target about 12cm long.

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

Talking with the reset line asserted isn't going to work. Seems like the Minnie has a broken reset line or you had it on the wrong reset setting. Try other reset settings and see if the line behavior changes. If not looks like reset is shorted on the Minnie.

I'm not sure about origin of that device.

Is it possible to verify genuineness of that device?

I would expect different message in CubeProgrammer if it was counterfeit part.

 

I tried 2 different boards/targets.

1. genuine STM32L031F6P6, I was able to connect with V3MINIE

2. bluepill from aliexpress (with STM32F103). I do not know whether it has genuine or clone STM32. I was able to connect with V3MINIE

 


@Chupacabras wrote:

I'm not sure about origin of that device.

Is it possible to verify genuineness of that device?


You could try: https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-diags-v1.640.html 

via: https://community.st.com/t5/others-stm32-mcus-related/black-pill-debugging-stm32f103rct6-in-keil-fails-to-enter-main/td-p/789441

 


@Chupacabras wrote:

2. bluepill from aliexpress  


So vanishingly small chance of genuine STM32

In that case V3MINIE works with genuine and clone chips.

 

I have no idea why V3MINIE does not want to work with my board/project, but clone STLINK2 does work. I'l try to swap those chips.

Carl_G
Senior

Interesting. So now it looks like the MCU isn't genuine? Even so, why would the debugger refuse to talk to it? So the static GND value isn't really stuck at 1 value?


@Carl_G wrote:

So now it looks like the MCU isn't genuine? Even so, why would the debugger refuse to talk to it? 


  • ST might choose to have their software not connect to non-genuine parts.
  • The clone might be marginal - so it just manages to connect to one debug probe, but fails to connect to another.

 

That's the thing with fakes - you have no idea what you're getting!

Just try a simple check: 

- use CubeProgrammer , then :

- connect st-linkV2  , to a blue pill; see (or show) what its telling...chip type etc.

- same on your (unknown) black pill board ...

- then try same two test with the st-link miniE , and show, what its telling .

Then we know a little bit, where might be the problem.

 

example:

- here st-linkV2 (stick...) to an H743:

AScha3_0-1743701304373.png

- and here to an airF103 : 

AScha3_1-1743701584939.png

- this cortexM3 is made by AIR , not STM ! STM-IDE refuses to work with it, because other manufacturer.

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

I tried to swap those MCUs.

I soldered MCU from bluepill to my board, a MCU from my board to bluepill board.

Now V3MINIE was able to connect to my board, and not able to connect to bluepill.

So that ruled out problem in my board. And that point towards MCU itself. At this point it looks like this one is some sort of old low quality counterfeit.

So I used some STM32F103 from different source and it works.

 

STLINK-V2 + bluepill:

stlink-v2_bluepill.png

STLINK-V2 + problematic chip:

I see here Revision ID is empty

stlink-v2_problematic_target.png

STLINK-V2 + new STM32 from different source:

stlink-v2_my_new.png

STLINK-V3MINIE + bluepill:

stlink-v3minie_bluepill.png

STLINK-V3MINIE + new STM32 from different source:

stlink-v3minie_my_new.png

 

So we can conclude, obvious other manufacturer , but cortexM3 ("F103" name ).

(Or STM chip, but some first test series, that should not be come to the market...who knows.)

And your miniE is ok, also. Just you cannot debug in IDE with miniE, because there is a check for "genuine STM" cpu...

ok now ?

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