Y
Y
Yu Yu2017-01-02 22:57:28
linux
Yu Yu, 2017-01-02 22:57:28

Is OpenOCD needed for stm32 debugging and flashing?

I did not understand the essence of using OpenOCD.
Initially thought that it replaces the st-link v2 driver on Linux. But, as it turns out, this is not so.
As I understand it, OCD also requires a driver to access the programmer. For Linux, this is texane . Through which the GDB debugger works. Can you please explain what is the difference between OpenOCD and texane stlink project at the bottom level? OpenOCD does not contain drivers for st-link?
was here . I don't have JTAG, only SWD.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2017-01-02
@15432

ST-Link v2 is a device for connecting to STM32 via JTAG (in your case, SWD)
texane Stlink Tools and OpenOCD - programs that communicate via JTAG with the device and allow you to debug it (read memory, set breakpoints). Both have a GDB server.
OpenOCD supports many architectures and JTAG adapters, Stlink Tools is for STM32.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question