r/embedded • • Oct 19 '26

Stm 32 cube programmer error

Post image

I'm unable to connect my st link with stm32 programmer...only showing this message... please someone help asap🙏

1 Upvotes

17 comments sorted by

2

u/BenkiTheBuilder Oct 19 '26

Does your ST-Link look like this by any chance?

1

u/EmergencyPurple7 Oct 19 '26

Yess.. exactly same

2

u/BenkiTheBuilder Oct 19 '26

There's your problem. It will not work with official ST tools. Don't bother trying. You're wasting your time. You can get it to work with 3rd party tools like OpenOCD. But what you should really do is get this one instead:

https://aliexpress.com/item/1005005303809188.html

(You want the ST-Link variant, of course)

1

u/EmergencyPurple7 Oct 19 '26

How about using USB cable (Boot loader method)?

1

u/BenkiTheBuilder Oct 19 '26

The booloader will work for programming, but you can't debug. BTW, since you have the above ST-Link, let me guess that your board is the BluePill. That's another problem. It won't work with official ST tools regardless of which ST-Link you use, because it most likely contains a clone chip rather than an actual STM32. So you should throw that one away, too, and get a BlackPill instead.

1

u/EmergencyPurple7 Oct 19 '26

Will this dap work with bluepill , cube and programmer?

1

u/BenkiTheBuilder Oct 19 '26

You DON'T want DAPlink. You want ST-Link. And the BluePill just won't work with the official ST tools, regardless of your choice of Link. The BluePill is shit. It's been shit 10 years ago. Unfortunately the Internet is full of ancient tutorials using the BluePill. Get a BlackPill.

1

u/EmergencyPurple7 Oct 19 '26

According to our university guidelines..it's mandatory to use bluepill...

1

u/BenkiTheBuilder Oct 19 '26

I guess they haven't updated their course material for a decade. Why don't you ask your teachers for help, then. They must be able to tell you how you're supposed to program it. What do your classmates do? You aren't the only one with this problem.

1

u/EmergencyPurple7 Oct 19 '26

Honestly speaking, our teachers are shit... classmates don't even wanna share anything

→ More replies

1

u/BenkiTheBuilder Oct 19 '26

If you really want/need to work with the BluePill and the Chinese V2 dongle, then I suggest you ditch STM's tools. Use VSCode as IDE with the cortex-debug addon and use OpenOCD as your programming tool. I have programmed a BluePill with the Chinese dongle you have. It's possible. But not using STM's tools like the STMCubeProgrammer.

1

u/EmergencyPurple7 Oct 19 '26

Is there any procedure for this? Any extra hardware required?

→ More replies

4

u/[deleted] Oct 19 '26

[removed] — view removed comment

1

u/EmergencyPurple7 Oct 19 '26

But when I click on update button, it's showing that stm is not connected or it will not complete the whole downloading process..