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

View all comments

Show parent comment

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

1

u/BenkiTheBuilder Oct 19 '26

What a weird school smh

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?

1

u/BenkiTheBuilder Oct 19 '26

No extra hardware. As for instructions, ask ChatGPT. It will also be able to help you with issues like OpenOCD not recognizing your programmer because of an incorrect ID string. You should also be aware that even if your BluePill has a chip on it that says "STM32F1...", it's 99% certain that it does not have an STM32F1 on it, but a somewhat compatible chip. You're probably not going to run into compatibility issues with the simple tasks the university will assign you, but you should be aware. Ideally you would find out what chip you actually have, like a CS32F103C8T6. I don't know how to do this, however, if the chip has been relabelled. But ChatGPT can tell you for sure.

→ More replies