2025-02-20 03: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?
2025-02-20 05:48 AM
What board do you have and how is your programmer attached to the board? Show pictures.
2025-02-20 06:14 AM
What host and OS ?
If you use Linux, your user needs to be added to the appropriate groups to access USB devices.
2025-02-21 07:57 AM
I would suggest the following steps to help investigate and solve your issue: