cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK clone connects using ST-LINK utility, but not STM32CubeProgrammer

FPayn.1
Associate III

I have a windows 11 laptop with both ST-LINK Utility and STM32CubeProgrammer installed.  I can connect to my STM32-based motherboard using a ST-LINK clone and ST-LINK but not with STM32CubeProgrammer.  Anyone know what I'm doing wrong?

7 REPLIES 7
Imen.D
ST Employee

Hello @FPayn.1 ,

Which device used?

Which STM32CubeProgrammer version used ?

Please make sure to use the latest version of CubeProgrammer.

Try then connecting in "Connect Under Reset" mode.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

>>Anyone know what I'm doing wrong?

Using counterfeit gear for one, ST's just not cool with that. I think they've made the decision to make them not work properly. And you keep going in circles with the same problem.

Cheapest solution would probably be a NUCLEO with a snap-off ST-LINK, or an ST-LINK/V3

Copying firmware out of one unit, into another, might also be a flawed approach.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III

@FPayn.1 wrote:

I can connect ... using a ST-LINK clone and ST-LINK 


So you've tried both a clone and a genuine ST-Link?
What firmware versions in each?

 


@FPayn.1 wrote:

 but not with STM32CubeProgrammer


So what, exactly, happens with CubeProgrammer?

What version of CubeProgrammer?

Show logs; screenshot error messages.

Is that also with the genuine ST-Link?

https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/ta-p/49693

 


@FPayn.1 wrote:

 my STM32-based motherboard ?


Give details - schematics, etc:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

Does this board also have clone/fake STM32?

 


@FPayn.1 wrote:

 Anyone know what I'm doing wrong?


far too little detail to tell, but using fake/clone kit just complicates everything!

eg, see:

https://community.st.com/t5/stm32-mcus-products/configuring-uart-on-stm32f103c8t6-bluepill-kills-connection-to/m-p/668641/highlight/true#M242690

Thanks for all the replies.  The board is from a FlashForge Creator Pro 2 3D printer, and it is indeed a genuine STM32 product.

Regarding 'clone' vs 'genuine' ST-LINK/V2 adaptor, I could see how that might be a problem with BOTH ST-LINK and STM32CubeProgrammer, but not with just one; please correct me if I am wrong.

Background, Photos and schematics can all be seen on my engineering/3D printing blog here.

 

TIA,

Frank


@FPayn.1 wrote:

Regarding 'clone' vs 'genuine' ST-LINK/V2 adaptor, I could see how that might be a problem with BOTH ST-LINK and STM32CubeProgrammer, but not with just one; please correct me if I am wrong.


Pardon?

I was asking if you have tried this with a genuine ST-Link, and whether you get  the same issues when using that genuine ST-Link.

https://community.st.com/t5/stm32-mcus/how-to-recognize-a-genuine-st-link-v2-versus-a-cloned-one/ta-p/49471

 

PS:

Oh - when you say "ST-LINK", you seem to be meaning the "ST-Link Utility" software.

I'm asking if you actually have a genuine ST-Link/V2 hardware device:

AndrewNeil_1-1730385598807.png

and whether that device exhibits the same problem(s).

 


@FPayn.1 wrote:

Background, Photos and schematics can all be seen on my engineering/3D printing blog here.

 


You CubeProgrammer screenshot there only shows the last 5 messages:

AndrewNeil_0-1730385271270.png

Please click in that log window, Ctrl+A (select all), copy, and then paste here - using the 'Preformatted' style - see:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/725146/highlight/true#M54

 

The ST-LINK Utilities have been deprecated for several years, firmware on the ST-LINK and the stance to counterfeit gear has changed.

STM32 Cube Programmer is the currently active development path and tool, so will reflect the current position more aggresively. A lot more boot-leg programmers in the channel now, and a lot of STM32 proxy devices, ie with similar form-fit-and-function.

 

It's not hard to tie code to a particular board or MCU, especially with encryption or keys tied to UNIQUE ID or OTP settings. For commercial boards, those vendors might not want to ceed business to pirates or nefarious third-parties.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..