how to build flash and use hydrafw on windows - hydrabus/hydrafw GitHub Wiki
How to build, flash and use hydrafw on Windows:
- Official compiler for hydrafw v0.10 release is GCC ARM 4.9 2015q3(GNU_ARM_4_9_2015q3)
- This new version versus GCC ARM 4.7 2013 q3 improve lot of stuff (mainly it generate better/more compact code and GDB debugger support python ...)
- WARNING: GCC ARM 4.8.x & GCC ARM 5.0/5-2016-q1 up to GCC ARM 8-2019-q3-update (https://bugs.launchpad.net/gcc-arm-embedded/+bug/1570613) shall be avoided as they crash during link of chibios ...
- This issue is fixed with https://launchpad.net/gcc-arm-embedded/+milestone/8-2018-q4-major or more
- Since 8600bd92a5ed083174e0867355f65a743dcfb9df, it is possible to use GCC 8.1 and newer to compile hydrafw
Prerequisites for Windows (install git, msys2 and clone hydrafw):
- Install MSYS2 + MINGW64 from https://www.msys2.org
- Install of mingw-w64-x86_64-gcc +
cd src/build-scripts && make clean all
is to rebuild pre-built windows src/build-scripts/hex2dfu.exe so it not mandatory
- Install of mingw-w64-x86_64-gcc +
- 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
- Launch MSYS2 MINGW64 shell and type following commands:
- Example installation of GNU_ARM_4_9_2015q3 to D:\GNU_ARM_4_9_2015q3\bin
export PATH=$PATH:/D/GNU_ARM_4_9_2015q3/bin
cd ~
pacman -S git make mingw-w64-x86_64-gcc
git clone https://github.com/hydrabus/hydrafw.git hydrafw
cd ~/hydrafw
git submodule init
git submodule update
cd src/build-scripts
make clean all
To build hydrafw firmware (with mingw):
MSYS2 MINGW64 is required. The firmware is set up for compilation with the GCC toolchain GNU_ARM_4_9_2015q3.
Build the firmware
cd ~/hydrafw/src
make clean
make
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