Skip to content

Windows how to build airspy firmware

Benjamin Vernoux edited this page Oct 6, 2021 · 13 revisions

Prerequisites for Windows:

git clone https://github.com/airspy/firmware.git airspy_fw
cd airspy_fw
cd ./scripts
python get-pip.py
python -m pip install GitPython --upgrade

Note1:

  • If you are using a new Python 3.x by default you can get/use get-pip.py for Python3 using the ones form https://bootstrap.pypa.io/get-pip.py

Note2:

  • For get-pip.py if you need a proxy for internet access set following variables before to launch python get-pip.py:
set http_proxy=http://proxy.myproxy.com
set https_proxy=https://proxy.myproxy.com

Build airspy firmware (with mingw):

MinGW (http://www.mingw.org) is required. The firmware is set up for compilation with the GCC toolchain GNU_ARM_4_7_2013q3.

Warning other version of GCC ARM like GCC ARM 4.9 2014q4 does not work correctly and build fail or have issues, so ONLY use GNU_ARM_4_7_2013q3 to build the firmware.

Build libopencm3 included in airspy_fw:

cd in root directory `airspy_fw` (which contains directories airspy_m0, airspy_m4 ...)
cd ./libopencm3
make clean
make
make install

Build airspy_fw:

cd in root directory `airspy_fw` (which contains directories airspy_m0, airspy_m4 ...)
make clean
make

In case of error during build like:

Traceback (most recent call last):
  File "../scripts/airspy_fw-version.py", line 14, in <module>
    git=Repo(search_parent_directories=True).git
TypeError: __init__() got an unexpected keyword argument 'search_parent_directories'
make[1]: *** [airspy_m0.hdr] Error 1

Just execute

python -m pip install GitPython --upgrade

Then relaunch the build