deep

a Cross Development Platform for Java

User Tools

Site Tools


openocd:installation

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
Last revisionBoth sides next revision
openocd:installation [2020/09/05 09:59] – [Installation of the USB driver] ursgrafopenocd:installation [2020/12/09 21:46] – [Windows] ursgraf
Line 1: Line 1:
 ====== Installation of the OpenOCD toolchain ====== ====== Installation of the OpenOCD toolchain ======
-OpenOCD can be installed on Windows, Linux and OS-X. Here, the description is limited to Windows.+OpenOCD can be installed on Windows, Linux and OS-X.
  
-In order to use OpenOCD, the correct USB drivers must be installed. We suggest using [[http://visualgdb.com/UsbDriverTool/|USB driver tool]] for this purpose. This tool is available solely for Windows.+===== Linux =====
  
-===== Installation of the USB driver ===== +  * Install OpenOCD, it is probably available through your distribution's package manager. E.g. ''sudo apt install openocd'' 
-  - Download the [[http://visualgdb.com/UsbDriverTool/|USB driver tool]]extract and run it+  * Download {{ :openocd:ostboards.rar |}} and unpack it to suitable place, such as ''/opt/deep/openocd'' 
-  - Connect your FT2232 based programmer, e.g. the JTAG-HS3. If you use the Zybo board, connect the board directly as it has the programmer already packed on the board. +    * HintYou can use ''7z'' (package ''p7zip'') to extract ''.rar'' files on linux: ''7z e ostboards.rar -o/opt/deep/openocd/'' 
-  - Identify the USB serial converter, which connects to the JTAG bus. Depending on your actual board this will be +  * Run OpenOCD with the correct config file: 
-    Avnet MicroZed: Device name: USB Serial Converter A +    ''cd /opt/deep/openocd'' 
-    * Vendor ID: 0403 +    ''sudo openocd -f microzedboard.cfg'' or ''sudo openocd -f digilent_zyboboard.cfg''
-    * Device ID: 6010 +
-    * Interface: 00 \\ {{:openocd:installwinusbdriver.png|}} \\ //Picture 1USB Drive tool // +
-  - Right-click on the device and select the WinUSB driver to install the driver +
  
-  * If you want to install the default driver choose "//Restore default driver//" 
-  * Do not install a different driver for "//USB Serial Converter A//". It is probably the driver for the UART connection. 
  
-===== Installation of OpenOCD ===== 
-  - You can either compile OpenOCD from the [[http://sourceforge.net/p/openocd/code/ |source code ]] or [[http://www.freddiechopin.info/en/download/category/4-openocd?download=154%3Aopenocd-0.10.0 | download ]] the precompiled binaries for Windows, which is the preferred method 
-  -  Extract the archive to your computer 
-  - The executable binary is located under: ''openocd-0.10.0/bin-x64/'' 
-  - The user manual is located under: ''openocd-0.10.0/'' 
-  - Get {{ :openocd:ntbboards.rar |}} and unpack it into your ''openocd-0.10.0'' directory