cancel
Showing results for 
Search instead for 
Did you mean: 

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

OAngu10
Associate
 
4 REPLIES 4
OAngu10
Associate

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
Senior

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

Is it genuine device?​

dbgarasiya
Senior II

i am not sure but problem could be hardware side also

oeliks
Senior

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 :)​