how to build flash and use hydrafw on windows - hydrabus/hydrafw GitHub Wiki

How to build, flash and use hydrafw on Windows:

Prerequisites for Windows (install git, python and clone hydrafw):

    git clone https://github.com/hydrabus/hydrafw.git hydrafw
    cd hydrafw/
    git submodule init
    git submodule update
    cd ./scripts
    python get-pip.py
    python -m pip install GitPython --upgrade
    python -m pip install intelhex --upgrade
Note: 
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

To build hydrafw firmware (with mingw):

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

Prerequisites for Windows (install gcc arm, mingw):

Build the firmware

    cd in root directory(which contains directories common, fatfs, hydrabus, hydranfc ...)
    make clean
    make

In case of error during the step "Build the firmware"

  1. With error:
Traceback (most recent call last):
  File "../scripts/hydrafwversion.py", line 14, in <module>
    git=Repo(search_parent_directories=True).git
TypeError: __init__() got an unexpected keyword argument 'search_parent_directories'
make[1]: *** [hydrafw_version.hdr] Error 1
  1. Just execute:
python -m pip install GitPython --upgrade
  1. Then execute again the step "Build the firmware"

Flash and use hydrafw on Windows with USB DFU:

See the wiki https://github.com/hydrabus/hydrafw/wiki/Getting-Started-with-HydraBus-flash-and-use-hydrafw-on-windows

⚠️ **GitHub.com Fallback** ⚠️