Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:openocd [2022/11/12 16:02] – [Install] darron | tools:openocd [2024/08/24 11:16] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== OpenOCD ==== | ==== OpenOCD ==== | ||
+ | <wrap right> | ||
+ | {{: | ||
+ | \\ \\ | ||
+ | {{: | ||
+ | </ | ||
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== |
- | < | + | Install prerequisites. |
- | sudo apt install build-essential libhidapi-dev libcapstone-dev | + | |
+ | < | ||
+ | apt install build-essential git automake libtool libhidapi-dev libcapstone-dev libusb-1.0-0-dev libjaylink-dev pkg-config | ||
</ | </ | ||
Line 15: | Line 24: | ||
< | < | ||
+ | mkdir -p /opt/src | ||
+ | cd /opt/src | ||
git clone https:// | git clone https:// | ||
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 |
</ | </ | ||
+ | NB ST provide a modified version for their processors | ||
+ | |||
+ | < | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ==Windows== | ||
+ | |||
+ | Release overview is [[https:// | ||
+ | |||
+ | |||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// |