cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect microcontroller via stlink

ShenChuanAn
Associate

Since configuring the STM32WB55CGU6 in STM32Programmer with the following settings, I am no longer able to connect to the chip using ST-Link. I cannot download programs in Keil, and the ST-Link in STM32Programmer cannot connect either. Changing the parameters also does not help with the connection. Furthermore, neither the USB nor UART connection methods are working. However, I can connect to STM32CubeMonitor-RF, but it doesn't seem to be useful. In STM32 ST-LINK Utility, ST-Link is detected, but I still cannot connect. I am also unable to erase the flash because I cannot connect to any software (except STM32CubeMonitor-RF). What should I do to connect to ST-Link?

6 REPLIES 6
Aziz BRIGUI
ST Employee

Hello @ShenChuanAn,

I see nothing wrong with the option bytes configuration you sent. Could you please specify the detailed steps you followed ?

Also if you could provide the full option bytes list that would be really helpful.

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.

Sorry, because I am unable to connect to the STM32 programmer, I cannot view the complete list of option bytes. Below is the error message from the STM32 programmer:
21:41:13 : Error: Unable to get core ID
21:41:13 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
I have changed various connection settings, such as Change the shared option to enabled、modify the reset mode, but none of them were successful in connecting.
Can erasing the chip solve the problem? However, I cannot connect via ST-Link. How should I erase the chip?

Hello @ShenChuanAn ,

Make sure that you are using the latest software version of STM32CubeProgrammer.

Ensure that the ST-LINK firmware is up to date.

Try selecting the "Connect under reset" mode in settings and holding the reset button while attempting a full chip erase on the Flash memory.

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

... and make sure the ST-LINK is not one of the fakes in colourful tin cans.

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.

I tried doing this, but it still didn't work. The error message was: Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication.

Additionally, all my software is up to date, and my ST-Link is genuine. Everything was working fine before. However, after I downloaded the BLE_TransparentMode program to the STM32WB55CGU6 and used it in STM32CubeMonitor-RF to test the BLE functionality, the microcontroller could no longer connect to the ST-Link.

ShenChuanAn
Associate

The current pin configuration of the STM32WB55CGU6 is as shown in the image. Could it be that Serial Wire is not enabled, which is causing the inability to connect to ST-Link? What should I do to successfully connect to ST-Link?