en:uhsdr_dev:toolchain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:uhsdr_dev:toolchain [06.02.2018 15:22] df9ts_useren:uhsdr_dev:toolchain [06.02.2018 23:03] (current) df9ts_user
Line 1: Line 1:
-{{tag>english}}{{tag>private}}+{{tag>english}}{{tag>review}}
 <bootnote> Attention: Work in progress - page under construction</bootnote> <bootnote> Attention: Work in progress - page under construction</bootnote>
  
Line 41: Line 41:
 \\ \\
 === GDB - GNU Debugger & OpenOCD === === GDB - GNU Debugger & OpenOCD ===
-GDB 7.12 distributed with the initial GCC 6.2 (gcc-arm-none-eabi-6_2-2016q4-20161216) has several issues (crashes on macOS and is incompatible with Neon.2). +Check that GDB is installed in your Linux distribution by entering 
-The recommendation is to use the update version gcc-arm-none-eabi-6-2017-q1-update, or later+<code> 
-\\ +$ gdb 
-=== Install OpenOCD === +</code> 
-  * See [[https://gnu-mcu-eclipse.github.io/openocd/install/]] +The output should look like this: 
-  * Download from [[https://github.com/gnu-mcu-eclipse/openocd/releases]] +<code> 
-  * Latest version is gnu-mcu-eclipse-openocd-0.10.0-5-20171110-1117-debian64.tgz+GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git 
 +Copyright (C2016 Free Software Foundation, Inc
 +License GPLv3+: GNU GPL version or later <http://gnu.org/licenses/gpl.html> 
 +[...] 
 +</code> 
 +If missing install with 
 +<code> 
 +apt-get install gdb 
 +</code>
  
-<bootnote>ToDo https://gnu-mcu-eclipse.github.io/debug/openocd/</bootnote>+  * Latest GNU MCU OpenOCD binaries can be found [[https://gnu-mcu-eclipse.github.io/openocd/releases/|here]]. 
 +  * This leads e.g. to [[https://github.com/gnu-mcu-eclipse/openocd/releases/tag/v0.10.0-7-20180123/|these binary files]] 
 + 
 +Installation:
 <code> <code>
-sudo mkdir -p /opt/gnuarmeclipse +cd ${HOME}/opt 
-cd /opt/gnuarmeclipse +$ tar xvf ~/Downloads/gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-centos64.tgz 
-$ tar xvf /home/gerd/Downloads/gnu-mcu-eclipse-openocd-0.10.0-5-20171110-1117-debian64.tgz +$ chmod -R -w gnu-mcu-eclipse/openocd/0.10.0-7-20180123-1217
 </code> </code>
-  * Test installation:+ 
 +Check OpenOCD installation:
 <code> <code>
-$ /opt/gnuarmeclipse/gnu-mcu-eclipse/openocd/0.10.0-5-20171110-1117/bin/openocd --version+${HOME}/opt/gnu-mcu-eclipse/openocd/0.10.0-7-20180123-1217/bin/openocd --version
 </code> </code>
-  * Output should be like this:+Output should be something like this:
 <code> <code>
-GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00254-g2ec04e4e (2017-11-10-11:27)+GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00404-g20463c28 (2018-01-23-12:24)
 Licensed under GNU GPL v2 Licensed under GNU GPL v2
 For bug reports, read For bug reports, read
-http://openocd.org/doc/doxygen/bugs.html+ http://openocd.org/doc/doxygen/bugs.html
 </code> </code>
-\\+ 
 +Install UDEV rules for USB OpenOCD probes: 
 +<code> 
 +# cp ${HOME}/opt/gnu-mcu-eclipse/openocd/0.10.0-7-20180123-1217/contrib/60-openocd.rules /etc/udev/rules.d/ 
 +# udevadm control --reload-rules 
 +# usermod -aG plugdev $USER 
 +</code> 
 + 
 +Install OpenOCD Debugging plugin, see [[https://gnu-mcu-eclipse.github.io/openocd/install/|here]] 
 + 
 +Update OpenOCD path, see [[https://gnu-mcu-eclipse.github.io/openocd/install/|here]] 
 + 
 +{{ :en:uhsdr_dev:openocd.pdf |OpeOCD manual from sourceforge}} \\ 
 +[[https://community.particle.io/t/tutorial-using-eclipse-st-link-v2-openocd-to-debug/10042|eclipse & st-link/v2 tutorial]] 
 + 
 +In Virtualbox make sure the STM-link/V2 adapter is connected through to virtual machine (check machine settings->USB) 
 + 
 +In Eclipse hit green "Debug" button. 
 + 
 === GNU MCU Eclipse and CDT === === GNU MCU Eclipse and CDT ===
   * Install Eclipse and CDT   * Install Eclipse and CDT
  • en/uhsdr_dev/toolchain.1517930569.txt.gz
  • Last modified: 06.02.2018 15:22
  • by df9ts_user