cancel
Showing results for 
Search instead for 
Did you mean: 

CubeProgrammer does not acknowledge ST-Link v hardware [Black Pill]

XKSteve
Associate II

Title edited to flag that this relates to a Black Pill


 

After much too much time searching and following advice from for the most part, outdated forum posts I have been unable to resolve my issue with win 11.

I have a windows 11 machine (Microsoft Surface) up to date as of 28th January 26.

ST Link Utility installed and woking

StCubeProgrammer 2.21.0 and working (apart from not seeing the STLink v2.0 hardware).

Both installed as Administrator.

Cube Programmer however refuses to acknowledge the STLink v2 when connected even though the driver reports it is working and indeed it shows up in Device Manager. I did try reinstalling and the other common resolve I see is to switch to Shared Enabled in the right hand panel.

The odd bit is it just works on my Mac M2 Tahoma without any issues and displays the correct serial number

I would like to get it working on my Surface laptop as well as all my programming is normally done on that machine (XGecu T48).

Here are some screen shots.

Any suggestions as to what to do to get CubeProgrmmer to see the ST-Link v2.0 hardware on Windows 11.

15 REPLIES 15

Wow , big funny story. (maybe not so funny for you...)

btw

Dont give up on some "...this dont work on first try " !

So i use CubeProgrammer V 2.19.0  ; try download this (as i know, it works.).

For Win choose ...32 or 64 bit version, as your system is.  (I am on Linux....but at work on Win11 .)

Then try your "fake" links...try also upgrade firmware, maybe need unplug/plug the st-link on USB.

And try different cables...if "no link detected" , some USB cables dont work.

It HAS to work....even with "fakes" .

Tell...

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

Thank you so much. I will give your suggestions ago.

Getting a Linux laptop next week (inheriting from a friends deceased brother and am going to stick Mint or Ubuntu on it)  and have to confess despite having had MSE MCP MCSE qualifications from the naughties I am not a fan of Windows and just have a laptop due to some of my dev software (like my XGECU T48) that only works on Windows. Only downside is I am not going to have time for ages now to put linux on this new machine and sort out its charging issues (power socket is trashed)

Not going to give up and trust me I am not on my first attempt but it is getting rather tiresome with all this fake stuff around and Vincent (the OD) was quite adamant it needed to be a STM32F411 chip and not a fake. Thankfully the hardware I have now is from the same source and manufacture as his, that work. 

 

 

Just an update... 

Uninstalled 2.21.0 and cleared registry (manually) and downloaded 2.19.0 once STM let me download it (another gripe) 

Installed... No change 

And what's that about - set to SW reset but log says HW reset 2.21 was at least obeying the menu settings. but 2.19 does not lock up on this behaviour.

 

See, this is connection to H743 with a "clone" , st-link V2 stick :

AScha3_0-1770404593202.png

HW-reset telling ...nonsense, its on software reset. working. As the sticks have no working hard reset...

but i work with them since years; just now more with the new st-link V3 , mods or miniE , but the old V2 sticks also working.

And your black pill F411 ...i have also , almost sure, they are no fake. You just did something wrong.

But still you didnt try "upgrade ..." st-link ? Try. If old firmware on them , you never get success.

 

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

This is what happens on MacOS with the same hardware. Firmware is apparently the latest although not the same as yours. Just programmed the factory code back to my blank F401 no issue on the Mac but Windows is having none of it. :) By hardware I mean ST-LINK and Black Pill No computer .

Screenshot 2026-02-06 at 19.16.37.png

re firmware - I am returning these ST-Links but if the seller does not want them back I'll try a upgrade if I can find the files (cube Programmer says firmware "unknown" when I click "Firmware Upgrade". even though they both said they had already upgraded them before shipping. Defo will check with the known genuine from Mouser though (if it too has issues)

 

So its working on Mac now. 

But still problem on Win11 - right ?

+

Upgrade - nothing to "find" . Its doing it ...if you set upgrade , then it will do it (or not).

Maybe do the upgrade on the Mac, as here the st-link is correct enumerated.

Try. And maybe need unplug/plug usb , to get it to upgrade mode.

+

this is connect V2 stick to F401 black pill:

AScha3_0-1770409325279.png

So you see - it can work. It should...on your systems also.

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