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 08:55] – df9ts_user | en:uhsdr_dev:toolchain [06.02.2018 23:03] (current) – df9ts_user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
< | < | ||
Line 13: | Line 13: | ||
=== GNU ARM toolchain for Linux === | === GNU ARM toolchain for Linux === | ||
- | < | + | < |
- | < | + | |
See [[https:// | See [[https:// | ||
=== Install Arm toolchain for Linux === | === Install Arm toolchain for Linux === | ||
- | * Download the latest Linux install tarball file from ARMDeveloper | + | * Download the latest Linux install tarball file from ARMDeveloper |
* Link to download: https:// | * Link to download: https:// | ||
* Assuming downloaded file is in / | * Assuming downloaded file is in / | ||
Line 25: | 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 42: | 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, | + | |
- | \\ | + | |
- | === Install OpenOCD === | + | |
- | * See [[https:// | + | |
- | * Download from [[https:// | + | |
- | * Latest version is gnu-mcu-eclipse-openocd-0.10.0-5-20171110-1117-debian64.tgz | + | |
< | < | ||
- | $ sudo mkdir -p / | + | $ gdb |
- | $ cd / | + | |
- | $ tar xvf / | + | |
</ | </ | ||
- | * Test installation: | + | The output should look like this: |
< | < | ||
- | $ /opt/ | + | GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git |
+ | Copyright (C) 2016 Free Software Foundation, Inc. | ||
+ | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | ||
+ | [...] | ||
</ | </ | ||
- | | + | If missing install with |
+ | < | ||
+ | apt-get install gdb | ||
+ | </ | ||
+ | |||
+ | | ||
+ | * This leads e.g. to [[https:// | ||
+ | |||
+ | Installation: | ||
+ | < | ||
+ | $ cd ${HOME}/ | ||
+ | $ tar xvf ~/ | ||
+ | $ chmod -R -w gnu-mcu-eclipse/ | ||
+ | </ | ||
+ | |||
+ | Check OpenOCD installation: | ||
+ | < | ||
+ | $ ${HOME}/ | ||
+ | </ | ||
+ | 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 78: | 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 === |