Skip to main content
SGasp.1
Associate III
May 15, 2023
Question

ST-LINK/V2 not working with stm32cubeprogrammer but working with STM32cubeide

  • May 15, 2023
  • 7 replies
  • 3779 views

Hi community.

I have bought a new st link / v2 A 2022 08.

I am able to program my microcontroller with stm32cubeide as shown below

but when I try to program it which the same version of stm32cubeprogrammer I am not able to do it..

I click on connect but nothing happens..

Which are the differences with the previous st link h?


_legacyfs_online_stmicro_images_0693W00000bk5cUQAQ.png 


_legacyfs_online_stmicro_images_0693W00000bk5bvQAA.png

This topic has been closed for replies.

7 replies

Aziz BRIGUI
ST Technical Moderator
May 16, 2023

Hello @SGasp.1​,

Could you do the same test with the latest STM32CubeProgrammer release (v2.13)?

Thanks,

Aziz

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SGasp.1
SGasp.1Author
Associate III
May 16, 2023

Hi @Aziz BRIGUI​ .,. I will make an attempt.. Thanks

Here the result of the update

Any idea about the issue?


_legacyfs_online_stmicro_images_0693W00000bkBj2QAE.png 


_legacyfs_online_stmicro_images_0693W00000bkBmaQAE.pngI was able to read the flash by changing the shared option from disable to enabled (using 2.13 version)


_legacyfs_online_stmicro_images_0693W00000bkBvwQAE.png 

Now I want to try to download the fw but I have also an external loader too named QSPI_flashloader_CSP.stldr . I have added my custom bootloadr inside the externalloader folder under the 2.13 directory but i am not able to see it in the gui .

What could be wrong ?


_legacyfs_online_stmicro_images_0693W00000bkBvhQAE.png 

Peter BENSCH
ST Technical Moderator
May 16, 2023

It probably doesn't work with the newer version either, so you can assume that your ST-LINK/V2 is a fake from Asian production. You can already tell from the serial number, which only gives a letter (Y in this case) instead of a real serial number.

The problem with such fakes has already been discussed very often in the community, e.g. here. The only solution is to buy an original ST-LINK/V2 from an authorised dealer, but you won't find them on Alibaba, Ebay or other cheap sellers.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
SGasp.1
SGasp.1Author
Associate III
May 16, 2023

Hi @Peter BENSCH​  makes sense what you said... But why I can program and debug the board with the stm32cubeide ? And it is not working only with the stm32cubeprogrammer?

Thanks

Peter BENSCH
ST Technical Moderator
May 16, 2023

You mentioned neither the version number of the STM32CubeIDE nor that of the STM32CubeProgrammer, so nobody knows.

Of course, new software is also adapted to detect and drop support for fakes - STMicroelectronics cannot take responsibility for fakes/counterfeits.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.