Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
17
of
174
wget -O - http://repo.aacmicrotec.com/archive/key.asc | sudo
apt-key add -
The terminal will echo "OK" on success.
2. Install the Toolchain Package
Update the package cache and install the toolchain by issuing the following commands:
sudo apt-get update
sudo apt-get install aac-or1k-toolchain
Note: The toolchain package is roughly 1GB uncompressed, downloading/installing it
will take some time.
3. Setup
In order to use the toolchain commands, the shell PATH variable needs to be set to
include them, this can be done either temporarily for the current shell via
source /opt/aac/aac-path.sh
or permanently by editing the ~/.bashrc (or equivalent) file
gedit ~/.bashrc
and adding the following snippet at the end of the file, and then saving and closing it:
# AAC OR1k toolchain PATH setup
if [ -f /opt/aac/aac-path.sh ]; then
. /opt/aac/aac-path.sh >/dev/null
fi
3.4. Installing the Board Support Package (BSP)
The BSP can be downloaded from http://repo.aacmicrotec.com/bsp. Simply extract the
tarball
aac-or1k-xxx-x-bsp-y.tar.bz2
to a directory of your choice (xxx-x depends on your
intended hardware target - Sirius OBC or Sirius TCM and y matches the current version
number of that BSP).
The newly created directory
aac-or1k-xxx-x-bsp
now contains the drivers for both bare-metal
applications and RTEMS. See the included README and chapter 4.1 for build instructions.
3.5. Deploying a Sirius application
3.5.1. Establish a debugger connection to the Sirius products
The Sirius products are shipped with debuggers who connect to a PC via USB. To interface
the Sirius products, the Open On-Chip Debugger (OpenOCD) software is used. A script
called run_aac_debugger.sh is shipped with the toolchain package which starts an
OpenOCD server for gdb to connect to.
1. Connect the Sirius products according to section 3.2 and switch on the power
supply.