Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:openocd [2022/11/12 16:02] – [Install] darrontools:openocd [2024/08/24 11:16] (current) darron
Line 1: Line 1:
 ==== OpenOCD ==== ==== OpenOCD ====
 +<wrap right>
 +{{:tools:openocd.jpg?100|OpenOCD with a J-Link clone}}
 +\\ \\
 +{{:interfaces:usbocdh.jpg?100|Olimex USB OCD H for OpenOCD}}
 +</wrap>
  
 OpenOCD is used to program and debug various devices with GDB. OpenOCD is used to program and debug various devices with GDB.
 +
 +It supports many interfaces which including GPIOs, professional
 +interfaces and their clones.
  
 ===Install=== ===Install===
  
-Install pre-requisites.+==RPi==
  
-<code> +Install prerequisites.
-sudo apt install build-essential libhidapi-dev libcapstone-dev+
  
 +<code>
 +apt install build-essential git automake libtool libhidapi-dev libcapstone-dev libusb-1.0-0-dev libjaylink-dev pkg-config
 </code> </code>
  
Line 15: Line 24:
  
 <code> <code>
 +mkdir -p /opt/src
 +cd /opt/src
 git clone https://git.code.sf.net/p/openocd/code openocd git clone https://git.code.sf.net/p/openocd/code openocd
 cd openocd cd openocd
 ./bootstrap ./bootstrap
 ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio --enable-picoprobe --enable-jlink --enable-ft232r --enable-cmsis-dap --enable-cmsis-dap-v2 --with-capstone ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio --enable-picoprobe --enable-jlink --enable-ft232r --enable-cmsis-dap --enable-cmsis-dap-v2 --with-capstone
-make +make -j 4 
-sudo make install+make install
 </code> </code>
  
 +NB ST provide a modified version for their processors
 +
 +<code>
 +git clone https://github.com/STMicroelectronics/OpenOCD openocd.stm32
 +</code>
 +
 +==Windows==
 +
 +Release overview is [[https://github.com/openocd-org/openocd/releases|here]] or [[https://github.com/openocd-org/openocd/releases/download/v0.12.0-rc2/openocd-v0.12.0-rc2-i686-w64-mingw32.tar.gz|download]].
 +
 +
 +===Resources===
 +
 +[[https://openocd.org/doc/html/GDB-and-OpenOCD.html|Using GDB]]