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
Next revisionBoth sides next revision
openocd:installation [2020/09/10 17:51] – [Installation of OpenOCD] ursgrafopenocd:installation [2020/09/21 14:39] mlammerich
Line 1: Line 1:
 ====== Installation of the OpenOCD toolchain ====== ====== Installation of the OpenOCD toolchain ======
-OpenOCD can be installed on Windows, Linux and OS-X. Herethe description is limited to Windows.+OpenOCD can be installed on Windows, Linux and OS-X. 
 + 
 +===== Linux ===== 
 + 
 +  * Install OpenOCDit is probably available through your distribution's package manager. E.g. ''sudo apt install openocd'' 
 +  * Download {{ :openocd:ostboards.rar |}} and unpack it to suitable place, such as ''/opt/deep/openocd'' 
 +    * Hint: You can use ''7z'' (package ''p7zip'') to extract ''.rar'' files on linux: ''7z e ostboards.rar -o/opt/deep/openocd/'' 
 +  * Run OpenOCD with the correct config file: 
 +    - ''cd /opt/deep/openocd'' 
 +    - ''sudo openocd -f microzedboard.cfg'' or ''sudo openocd -f digilent_zyboboard.cfg'' 
 + 
 + 
 +===== Windows =====
  
 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. 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.
  
-===== Installation of the USB driver =====+==== Installation of the USB driver ====
   - Download the [[http://visualgdb.com/UsbDriverTool/|USB driver tool]], extract and run it.   - Download the [[http://visualgdb.com/UsbDriverTool/|USB driver tool]], extract and run it.
   - 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.   - 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.
Line 12: Line 24:
   - Right-click on the device and select the WinUSB driver to install the driver    - Right-click on the device and select the WinUSB driver to install the driver 
   - If you want to reinstall the default driver choose "//Restore default driver//"   - If you want to reinstall the default driver choose "//Restore default driver//"
-===== Installation of OpenOCD =====+==== 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   - 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   -  Extract the archive to your computer
Line 19: Line 31:
   - Get {{ :openocd:ostboards.rar |}} and unpack it into your ''openocd-0.10.0'' directory   - Get {{ :openocd:ostboards.rar |}} and unpack it into your ''openocd-0.10.0'' directory
  
-===== Installation of OpenOCD-Interface ===== +Alternatively, you can download the precompiled binaries for Windows together with the necessary files for the MicroZed and the Zybo boards {{ :openocd:openocd-0.10.0.rar |here}} 
-The deep plugin of eclipse needs the [[http://sourceforge.net/p/openocd/code/ |source code ]] plugin to access the. + 
-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 +==== Installation of OpenOCD-Interface Plugin ==== 
-  -  Extract the archive to your computer+The deep plugin of eclipse needs the [[https://github.com/deepjava/openOCDinterface|openOCD]] plugin to access the hardwareInstall it from our [[http://update.deepjava.org/eclipse Update Site]]
 +  - Start the Eclipse IDE (eclipse.exe) 
 +  - Open the plugin installation dialog: Help → Install New Software… 
 +  - Add a new plugin source: Add… → Name: NTB Plugins, Location: http://update.deepjava.org/eclipse/ → OK 
 +  - Add the plugin by checking ''openOCD Plugin for Eclipse'' from category „NTB“