Problem with using OpenOCD download and Run

Answered

I have a problem with OpenOCD for both ST-Link and JLink,
I always get following error and I do not know how to solve it

C:\devtools\openocd\OpenOCD-20191216-0.10.0\bin\openocd.exe -s -device STM32F103RB -endian little -speed 12000 -vd
Open On-Chip Debugger 0.10.0 (2019-12-16) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
C:\devtools\openocd\OpenOCD-20191216-0.10.0\bin\openocd.exe: unknown option -- e

GDB Server stopped, exit code 1
com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: localhost:3333: No connection could be made because the target machine actively refused it.

Process finished with exit code 0

0
1 comment

You are using openocd but trying command line for jlink gdb server. That is not going to work because those utilities are very different and have different cmd line format. First of all, you heed to understand, which kind of probe do you use and then go for the proper utility.

0

Please sign in to leave a comment.