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 15:22] – df9ts_user | en:uhsdr_dev:toolchain [06.02.2018 23:03] (current) – df9ts_user | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
< | < | ||
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 |