en:uhsdr_dev:toolchain

This is an old revision of the document!


Warning: This page under construction - no guarantee what soever that content is correct, fit for use. Use at your own peril

  • Using Debian version buster/sid
  • Install on Win10 PC with Virtualbox
    • ARM toolchain for Linux
    • GDB
    • Eclipse
    • Check installation with test project

Cloning UHSDR from Github, compiling and running (later)

GNU ARM toolchain for Linux

Note: Important: use ltest version of tool chain from web sites below. DO NOT use the ARM toolchain that comes with your Linux distribution

Note: Important: At the time of writing (Jan 2018) this gcc needs to be used: “gcc-arm-none-eabi-6-2017-q2-update-linux”. The latest q4 version compiles UHSDR but the resulting UHSDR does not run. Under further investigation

See https://gnu-mcu-eclipse.github.io/toolchain/arm/install/ for general explanations

Install Arm toolchain for Linux

$ mkdir -p ${HOME}/opt
$ cd ${HOME}/opt
$ tar xjf ~/Downloads/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
$ chmod -R -w /home/gerd/opt/gcc-arm-none-eabi-6-2017-q2-update/
  • Test if the compiler is functional; use the actual install path:
$ /home/gerd/opt/gcc-arm-none-eabi-6-2017-q2-update//bin/arm-none-eabi-gcc-6.3.1 --version
  • Output should be like this:
arm-none-eabi-gcc-6.3.1 (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The complete toolchain documentation is available in the …/share/doc/pdf/ folder.

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). The recommendation is to use the update version gcc-arm-none-eabi-6-2017-q1-update, or later.

Install OpenOCD

$ sudo mkdir -p /opt/gnuarmeclipse
$ cd /opt/gnuarmeclipse
$ tar xvf /home/gerd/Downloads/gnu-mcu-eclipse-openocd-0.10.0-5-20171110-1117-debian64.tgz 
  • Test installation:
$ /opt/gnuarmeclipse/gnu-mcu-eclipse/openocd/0.10.0-5-20171110-1117/bin/openocd --version
  • Output should be like this:
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00254-g2ec04e4e (2017-11-10-11:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html


GNU MCU Eclipse and CDT

$ cd /home/gerd/opt/
$ mkdir GnuMcuEclipse
$ cd GnuMcuEclipse/
$ tar xvf /home/gerd/Downloads/20180125-1917-gnumcueclipse-4.3.2-oxygen-2-linux.gtk.x86_64.tar.gz 

Launch Eclipse to test installation

  • Launch eclipse to test installation
/home/gerd/opt/GnuMcuEclipse/eclipse/eclipse 

(grg seems not necessary, check installed plugins. first try if those compile run debug)

Install GNU MCU Eclipse plug-ins

(/grg)

Build Test Project to check all is ok

Next step: import UHSDR into gnu arm eclipse

You could leave a comment if you were logged in.
  • en/uhsdr_dev/toolchain.1517556876.txt.gz
  • Last modified: 02.02.2018 07:34
  • by df9ts_user