Error in initializing ST-LINK device. Reason: (4) No device found on target.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-24 10:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-24 10:20 AM
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)".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-24 09:51 PM
What is your device id shown by st link and what datasheet say?
Is it genuine device?​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-28 02:43 AM
i am not sure but problem could be hardware side also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-28 04:19 AM
Or "fake" ​mcu with different ID :)
​
​
OpenOCD will flash it but GDB wont :)​