-
Notifications
You must be signed in to change notification settings - Fork 92
how to build flash and use hydrafw on windows
Benjamin Vernoux edited this page Sep 22, 2022
·
24 revisions
- 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 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
- Since 8600bd92a5ed083174e0867355f65a743dcfb9df, 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.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
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"
See the wiki https://github.com/hydrabus/hydrafw/wiki/Getting-Started-with-HydraBus-flash-and-use-hydrafw-on-windows
- CHANGELOG
- Console commands
- Binary mode guide
-
NFC/HydraNFC v1 guide
- Read UID of an ISO/IEC_14443 Tag
- Read UID and data of a MIFARE Ultralight Tag
- Read UID of an ISO/IEC 15693 Tag
- Emul ISO14443a Tag
- Emul MIFARE Ultralight Tag
- Emul Mifare Classic Tag
- Unique NFC sniffer design
- Launch NFC sniffer from console
- Sniffer ISO14443A wireshark pcap
- Autonomous/stand-alone sniffer mode
- Sniffer ISO14443A real-time infinite trace mode
- HydraFW-HydraNFC-v1.x-TRF7970A-Tutorial