cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32programmer is not connecting with Blue Pill device

DevLoper
Visitor

STLink: STLINK-V3MINIE

Card: STM32f103C8T6

 

I couldn't establish the connection at all. I can connect without any problems with the ST-LinkV2 clone, but I couldn't connect with the V3. I'm trying different tim variations, but it's not working.

The frequencies have been changed.
The modes have been changed.
The reset modes have been changed.

 

1.jpeg2.jpeg3.jpeg4.jpeg5.jpeg6.png7.png

9 REPLIES 9
TDK
Super User

Looks hooked up correctly to me, except SWDIO/SWCLK may be swapped since they have the same color.

Consider getting a genuine board like NUCLEO-F103RB.

NUCLEO-F103RB | Product - STMicroelectronics

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

I've tried swapping them around maybe 10 times. Don't think of it as a card; I'll remove this MCU from this card and mount it on my own card, and I'll do the debugging and compilation work there, but I haven't gotten past the connection stage yet :) :).


@DevLoper wrote:

but I haven't gotten past the connection stage yet :) :).


All the more reason to start with a known-good board like a Nucleo!

Then you would have the ST-Link all fully wired and ready to go.

And this would give you a known-good reference for when you move on to your own board.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Alright, I'll do as you say. I'll get the NUCLEO-F103RB board, but why is the STLINK-V3MINIE being sold? Isn't it for programming this processor? :) Well, why isn't it programming? There's no issue, no details, nothing at all. This situation is a bit frustrating. By the way, I think the MCU is original. What really bothers me is that the clones work perfectly fine for me, but the original product can't do anything :)

 

jjImeMUuD0.png


@DevLoper wrote:

 Isn't it for programming this processor?


It, and the STM32Cube tools, are for programming STM32 processors.

What you have there is most likely not a genuine STM32 processor.

 


@DevLoper wrote:

 I think the MCU is original. 


What makes you think that? On a "Blue Pill" board like you have, it's unlikely,

This might identify what you have:

https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-diagnostics-v1.6.html#diags-1-6

 


@DevLoper wrote:

What really bothers me is that the clones work perfectly fine for me, but the original product can't do anything :)


Because the clone ST-Links don't care if you have a clone STM32

 

PS:

See also: https://hackaday.com/2021/06/23/test-your-blue-pill-board-for-a-genuine-stm32f103c8-mcu/

And: https://hackaday.com/2020/10/22/stm32-clones-the-good-the-bad-and-the-ugly/ 

And: https://github.com/keirf/Greaseweazle/wiki/STM32-Fakes#rogues-gallery

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I see, thank you. So you're saying you can't do this because your STM32 processor isn't original, and it will be very difficult to find the original one in my country :D I'll ask one last question if I may :) Can I program STM32 processors, whether original or clone, using a product like the NUCLEO-F103RB, or will it also require an original processor?

image.PF259875.en.feature-description-include-personalized-no-cpn-mediumas you see board have two parts. Upper after cut act as STLink... For your question 3MINIE use new speeds and interface, then is sensitive for right setup more as older V2. But in normal work both, but MCU too require right state. For example MCU in STOP mode never connect etc.

Nobody can guarantee that their software and tools will work with other software and tools that they don't control. If you stay with genuine hardware, it will work. If not, then there is no guarantee.

There is little incentive for ST to support knock off processors. Rather, there is incentive for them not to do so.

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

@DevLoper wrote:

So you're saying you can't do this because your STM32 processor isn't original


ST-Link and STM32Cube tools are made specifically by ST for use with their own STM32 chips - they are not supported for any other chips.

They are, effectively, subsidised from the ST marketing budget - so you can understand why ST don't want them used on non-ST parts.

You might get lucky; you will probably cause yourself a lot of grief and frustration - nothing is guaranteed.

 

There are 3rd-party programming/debug probes available.

These don't have any special affiliation with ST, so don't care what chip you use.

 


@DevLoper wrote:

Can I program STM32 processors, whether original or clone, using a product like the NUCLEO-F103RB, ?


You can certainly use the ST-Link part of a Nucleo board to program genuine STM32 parts - that is well-documented in the product manual.

But the same thing applies to using it with non-ST parts.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.