Skip to main content
OAngu10
Associate
December 24, 2019
Question

Error in initializing ST-LINK device. Reason: (4) No device found on target.

  • December 24, 2019
  • 4 replies
  • 1384 views

..

This topic has been closed for replies.

4 replies

OAngu10
OAngu10Author
Associate
December 24, 2019

I tried different things even uninstall and reinstall STM32CubeIDE but nothing works.

What finally works for me was select "ST-LINK (OpenOCD)" instead of "ST-LINK (ST-LINK GDB Server)" in Debug Probe in "Ält/Run/Debug configuration/Debugger".

Besides, after that I was able to go back to "ST-LINK (ST-LINK GDB Server)".

oeliks
Associate III
December 25, 2019

What is your device id shown by st link and what datasheet say?

Is it genuine device?​

dbgarasiya
Senior
December 28, 2019

i am not sure but problem could be hardware side also

oeliks
Associate III
December 28, 2019

Or "fake" ​mcu with different ID :)

https://www.google.com/amp/s/embeddedtronicsblog.wordpress.com/2018/12/29/fake-stm32-blue-pill-boards/amp/

OpenOCD will flash it but GDB wont :)​