Skip to content

how to build flash and use hydrafw on windows

Benjamin Vernoux edited this page Mar 26, 2015 · 24 revisions

##How to build, flash and use hydrafw on Windows:

###Prerequisites for Windows:

    git clone https://github.com/bvernoux/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 --allow-external intelhex --allow-unverified intelhex
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_7_2013q3.

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

###In case of error during build like:

Traceback (most recent call last):
  File "../scripts/hydrafw-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]: *** [hydrafw_version.hdr] Error 1

Just execute

python -m pip install GitPython --upgrade

Then relaunch the build

###To build hydrafw firmware (with Em::Blocks):

  • Install Em::Blocks (tested with Em::Blocks 2.30) from http://www.emblocks.org/web/downloads-main
  • Launch Em::Blocks and choose from Menu File => Open... Ctrl-O with file hydrafwEm.ebp which is in root of hydrafw/
  • Build the code with Menu Build => Rebuild all target files

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

How to Flash/Use HydraFW

How to Build/Flash/Use HydraFW

Developer Getting-Started with HydraBus and STM32CubeIDE

Hardware

Firmware (hydrafw) performances

Firmware (hydrafw) Application guides

Firmware (hydrafw) guides

How to Help

Clone this wiki locally