Skip to main content
SLope.5
Associate
September 13, 2022
Question

why do I get the following message when debugging? Target unknown error 19 Error in initializing ST-LINK device.

  • September 13, 2022
  • 4 replies
  • 1640 views

i'm using stm32wb30, and when i try to debug a empty program with ST-LINK/V2 and i get the following message:

This topic has been closed for replies.

4 replies

KDJEM.1
ST Technical Moderator
September 14, 2022

Hello @SLope.5​  and welcome to the Community :),

Please refer to the article How to solve debugger connection issues (st.com) may help you to solve you problem.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
ST Technical Moderator
September 14, 2022

Hello @SLope.5​ and welcome to the Community :)

Maybe that issue is linked to the ST-Link firmware version.

So, try to upgrade the ST-Link firmware version, then disconnect and connect your board.

Make sure to use the latest release of STM32CubeProgrammer and STM32CubeIDE.

When your question is answered, please close this topic by choosing Select as Best.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
SLope.5
SLope.5Author
Associate
September 14, 2022

Hi, I have installed stm32 cube programmer and when i use ST-LINK/V2 (I have update the st link ) doesn't work but i tried to use NUCLEO-F091RC -> ST-LINK/V2-1 for debug the stm32 and works perfectly. I can also debbug a program in cubeide.

Could it be that this version of st-link is not compatible with this MCU? i may need the ST-LINK/V2-ISOL.

Thanks for your answers, Sergio.

Tesla DeLorean
Guru
September 15, 2022

What's the relationship between the NUCLEO and the ST-LINK/V2 here? You tried both separately.

The ST-LINK/V2 should be Ok, depends on the voltages, and that the VTarget needs to power the buffers within the ST-LINK/V2

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