当前位置:网站首页>Openocd compilation and installation

Openocd compilation and installation

2022-06-25 20:49:00 CharX

Access to the source code :

#Feb 7,2022,OpenOCD v0.11.0
git clone git://git.code.sf.net/p/openocd/code openocd-code

Checking depends on :

  • libtool
  • libusb-1.0
  • hidapi (required for cmsis-dap)

Installation dependency :(Ubuntu/Debian)

sudo apt install libtool libusb-1.0.0 libhidapi-dev

Get into Git Catalog , perform :

./bootstrap

If it is completed normally, the feedback should look like this :

Bootstrap complete. Quick build instructions:

./configure ....

  If the following error occurs :

fatal: cannot access 'https://repo.or.cz/libjaylink.git/':server certificate verification failed. CAfile: none CRLfile: none fatal: Unable to clone 'https://repo.or.cz/libjaylink.git' Path to submodule '/home/char_x/arm/openocd-code/src/jtag/drivers/libjaylink' clone 'src/jtag/drivers/libjaylink' Failure . Retry as scheduled

  Then execute the following command :

export GIT_SSL_NO_VERIFY=1

bootstrap Run after execution configuue, The following message indicates that the configuration is complete and the compilation can begin

OpenOCD configuration summary
--------------------------------------------------
MPSSE mode of FTDI based devices        yes (auto)
ST-Link Programmer                      yes (auto)
TI ICDI JTAG Programmer                 yes (auto)
Keil ULINK JTAG Programmer              yes (auto)
Altera USB-Blaster II Compatible        yes (auto)
Bitbang mode of FT232R based devices    yes (auto)
Versaloon-Link JTAG Programmer          yes (auto)
TI XDS110 Debug Probe                   yes (auto)
CMSIS-DAP v2 Compliant Debugger         yes (auto)
OSBDM (JTAG only) Programmer            yes (auto)
eStick/opendous JTAG Programmer         yes (auto)
Olimex ARM-JTAG-EW Programmer           yes (auto)
Raisonance RLink JTAG Programmer        yes (auto)
USBProg JTAG Programmer                 yes (auto)
Andes JTAG Programmer                   yes (auto)
CMSIS-DAP Compliant Debugger            yes (auto)
Nu-Link Programmer                      yes (auto)
Cypress KitProg Programmer              yes (auto)
Altera USB-Blaster Compatible           no
ASIX Presto Adapter                     no
OpenJTAG Adapter                        no
Linux GPIO bitbang through libgpiod     no
SEGGER J-Link Programmer                yes (auto)
Bus Pirate                              yes (auto)
Use Capstone disassembly framework      no

Compilation and installation :

make
sudo make install

OpenOCD Use :

[email protected]:openocd -f interface/cmsis-dap -f target/stm32f1x.cfg

DAP Adapter before ,Target After , Need to be in root Run under

原网站

版权声明
本文为[CharX]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181338169753.html