Doubt in error rectification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-20 3:19 AM
Open On-Chip Debugger 0.12.0-00024-gc3ff39f8b (2023-06-26-16:51) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : STLINK V2J45S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.141085
Error: init mode failed (unable to connect to the target)
I am getting these error messages while I upload my code to the board. How to solve it? can anyone explain?
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-20 5:48 AM
What board do you have and how is your programmer attached to the board? Show pictures.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-20 6:14 AM
What host and OS ?
If you use Linux, your user needs to be added to the appropriate groups to access USB devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-21 7:57 AM
I would suggest the following steps to help investigate and solve your issue:
- Please verify the connection using STM32CubeProgrammer to ensure there are no issues with the board.
- If you don't have STM32CubeProgrammer, you can check using the ST-Link GDB server in STM32CubeIDE to confirm whether the issue is related to OpenOCD.
- If STM32CubeProgrammer is ok, then for sure we have an issue with OpenOCD. To help us investigate your issue, could you please share with us the OpenOCD log with higher verbosity (use -d3)?
