Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:openocd [2024/10/17 19:14] – [Install] darron | tools:openocd [2025/02/23 18:10] (current) – darron | ||
---|---|---|---|
Line 13: | Line 13: | ||
===Install=== | ===Install=== | ||
- | ==RPi== | + | Build from source enabling every supported interface type. |
+ | |||
+ | ==Dependencies== | ||
Install prerequisites. | Install prerequisites. | ||
< | < | ||
- | apt install build-essential git automake libtool libhidapi-dev libcapstone-dev libusb-1.0-0-dev libjaylink-dev libgpiod-dev pkg-config | + | apt install build-essential git automake libtool libhidapi-dev libcapstone-dev libusb-1.0-0-dev libjaylink-dev libgpiod-dev libftdi-dev pkg-config |
</ | </ | ||
+ | |||
+ | ==Dev== | ||
Install into /usr/local | Install into /usr/local | ||
Line 26: | Line 30: | ||
mkdir -p /opt/src | mkdir -p /opt/src | ||
cd /opt/src | cd /opt/src | ||
- | git clone https:// | + | git clone --recursive |
cd openocd | cd openocd | ||
./bootstrap | ./bootstrap | ||
- | ./configure --prefix=/ | + | ./configure --prefix=/ |
make -j 4 | make -j 4 | ||
make install | make install | ||
Line 35: | Line 39: | ||
STMicroelectronics and RPi provide modified versions of OpenOCD for their processors | STMicroelectronics and RPi provide modified versions of OpenOCD for their processors | ||
+ | |||
+ | ==STM== | ||
+ | |||
+ | Install into /opt | ||
< | < | ||
+ | mkdir -p /opt/src | ||
+ | cd /opt/src | ||
git clone https:// | git clone https:// | ||
- | ... | + | cd openocd.stm |
- | ./configure --prefix=/ | + | ./bootstrap |
+ | ./configure --prefix=/ | ||
+ | make -j 4 | ||
+ | make install | ||
</ | </ | ||
+ | |||
+ | ==RPi== | ||
+ | |||
+ | Install into /opt | ||
< | < | ||
+ | mkdir -p /opt/src | ||
+ | cd /opt/src | ||
git clone https:// | git clone https:// | ||
- | ... | + | cd openocd.rpi |
- | ./configure --prefix=/ | + | ./bootstrap |
+ | ./configure --prefix=/ | ||
+ | make -j 4 | ||
+ | make install | ||
</ | </ | ||
+ | |||
+ | ==Test== | ||
< | < | ||
Line 80: | Line 104: | ||
Info : starting gdb server for rp2350.dap.core0 on 3333 | Info : starting gdb server for rp2350.dap.core0 on 3333 | ||
Info : Listening on port 3333 for gdb connections | Info : Listening on port 3333 for gdb connections | ||
+ | </ | ||
+ | |||
+ | ==Update== | ||
+ | |||
+ | < | ||
+ | make distclean | ||
+ | git pull --recurse-submodules | ||
+ | ... | ||
</ | </ | ||