-
Notifications
You must be signed in to change notification settings - Fork 12
how to build flash and use hydrafw on windows
Benjamin Vernoux edited this page Jul 7, 2020
·
1 revision
- Official compiler for hydrafw v0.1-beta is GCC ARM 4.9 2015q3(GNU_ARM_4_9_2015q3)
- WARNING: GCC ARM 4.8.x & GCC ARM 5.0/5-2016-q1 shall be avoided as they crash during link of chibios ...
- This issue shall be fixed with https://launchpad.net/gcc-arm-embedded/+milestone/8-2018-q4-major or more to be confirmed
- It is possible to use GCC 8.1 and newer to compile hydrafw
- Install git from http://msysgit.github.io
- Install Python 3.x see https://www.python.org/downloads/windows
- Default Install Example:
C:\Python3\
- Add in environment variable
PATH
the path to Default Install:C:\Python3\
- Default Install Example:
- Open a Command Prompt window (
cmd.exe
) and type following commands:
git clone https://github.com/hydrabus/hydrafw_hydranfc_shield_v2.git hydrafw_hydranfc_shield_v2
cd hydrafw_hydranfc_shield_v2/
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
MinGW (http://www.mingw.org) is required. The firmware is set up for compilation with the GCC toolchain GNU_ARM_4_9_2015q3.
- Install GCC toolchain GNU_ARM_4_9_2015q3 from https://launchpad.net/gcc-arm-embedded/+milestone/4.9-2015-q3-update
- At end of Installation
Install wizard Complete
choose onlyAdd path to environment variable
- At end of Installation
- Install MinGW from http://sourceforge.net/projects/mingw/files/latest/download?source=files
- Default install:
C:\MinGW\msys\1.0
- During MinGW install choose
msys-base
(it includes minimal tools and make 3.81) - Launch msys shell from Default Install:
C:\MinGW\msys\1.0\msys.bat
- Default install:
cd in root directory(which contains directories common, fatfs, hydrabus, hydranfc ...)
make clean
make
- 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
- Just execute:
python -m pip install GitPython --upgrade
- Then execute again the step "Build the firmware"