Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:uhsdr_dev:toolchain [06.02.2018 14:53] – df9ts_user | en:uhsdr_dev:toolchain [06.02.2018 23:03] (current) – df9ts_user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
< | < | ||
Line 24: | Line 24: | ||
$ mkdir -p ${HOME}/opt | $ mkdir -p ${HOME}/opt | ||
$ cd ${HOME}/opt | $ cd ${HOME}/opt | ||
- | $ tar xjf ~/ | + | $ tar xjf ~/ |
- | $ chmod -R -w / | + | $ chmod -R -w / |
</ | </ | ||
* Test if the compiler is functional; use the actual install path: | * Test if the compiler is functional; use the actual install path: | ||
< | < | ||
- | $ / | + | $ / |
</ | </ | ||
* Output should be like this: | * Output should be like this: | ||
< | < | ||
- | arm-none-eabi-gcc-6.3.1 (GNU Tools for ARM Embedded Processors | + | arm-none-eabi-gcc-7.2.1 (GNU Tools for Arm Embedded Processors |
- | Copyright (C) 2016 Free Software Foundation, Inc. | + | Copyright (C) 2017 Free Software Foundation, Inc. |
This is free software; see the source for copying conditions. | This is free software; see the source for copying conditions. | ||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
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 | + | Check that GDB is installed in your Linux distribution by entering |
- | The recommendation is to use the update | + | < |
- | \\ | + | $ gdb |
- | === Install OpenOCD === | + | </ |
- | * See [[https://gnu-mcu-eclipse.github.io/openocd/install/]] | + | The output should look like this: |
- | * Download from [[https:// | + | < |
- | * Latest version is gnu-mcu-eclipse-openocd-0.10.0-5-20171110-1117-debian64.tgz | + | GNU gdb (Debian |
+ | Copyright | ||
+ | License GPLv3+: GNU GPL version | ||
+ | [...] | ||
+ | </code> | ||
+ | If missing install with | ||
+ | < | ||
+ | apt-get install gdb | ||
+ | </code> | ||
- | < | + | * Latest GNU MCU OpenOCD binaries can be found [[https:// |
+ | * This leads e.g. to [[https:// | ||
+ | |||
+ | Installation: | ||
< | < | ||
- | $ sudo mkdir -p / | + | $ cd ${HOME}/opt |
- | $ cd /opt/ | + | $ tar xvf ~/ |
- | $ tar xvf /home/gerd/ | + | $ chmod -R -w gnu-mcu-eclipse/ |
</ | </ | ||
- | * Test installation: | + | |
+ | Check OpenOCD | ||
< | < | ||
- | $ /opt/ | + | $ ${HOME}/ |
</ | </ | ||
- | * Output should be like this: | + | Output should be something |
< | < | ||
- | GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00254-g2ec04e4e | + | GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00404-g20463c28 |
Licensed under GNU GPL v2 | Licensed under GNU GPL v2 | ||
For bug reports, read | For bug reports, read | ||
- | http:// | + | http:// |
</ | </ | ||
- | \\ | + | |
+ | Install UDEV rules for USB OpenOCD probes: | ||
+ | < | ||
+ | # cp ${HOME}/ | ||
+ | # udevadm control --reload-rules | ||
+ | # usermod -aG plugdev $USER | ||
+ | </ | ||
+ | |||
+ | Install OpenOCD Debugging plugin, see [[https:// | ||
+ | |||
+ | Update OpenOCD path, see [[https:// | ||
+ | |||
+ | {{ : | ||
+ | [[https:// | ||
+ | |||
+ | In Virtualbox make sure the STM-link/V2 adapter is connected through to virtual machine (check machine settings-> | ||
+ | |||
+ | In Eclipse hit green " | ||
+ | |||
=== GNU MCU Eclipse and CDT === | === GNU MCU Eclipse and CDT === | ||
* Install Eclipse and CDT | * Install Eclipse and CDT | ||
Line 79: | Line 110: | ||
$ tar xvf / | $ tar xvf / | ||
</ | </ | ||
+ | |||
+ | Make the GNU Arm toolchain location known to Eclipse in Project-> | ||
=== Launch Eclipse to test installation === | === Launch Eclipse to test installation === |