-
Notifications
You must be signed in to change notification settings - Fork 92
how to build flash and use hydrafw on windows
##How to build, flash and use hydrafw on Windows:
- Official compiler for hydrafw up to v0.7beta release is GCC ARM 4.7-2013-q3
- WARNING: GCC ARM 4.8.x & GCC ARM 5.0/5-2016-q1 shall be avoided as they crash during link of chibios ...
- With actual trunk (v0.8beta release or more) new command frequency with ARM GCC 4.7-2013-q3 return an error ... (all work fine with ARM GCC 4.9 2015q3)
- For information GNU ARM GCC 4.9 2015q3 (https://launchpad.net/gcc-arm-embedded/+milestone/4.9-2015-q3-update) is the next step and it will be used by default as official compiler for HydraFW v0.8beta or more, this new version improve lot of stuff (mainly for debug with GDB which support python ...)
###Prerequisites for Windows (install git, python and clone hydrafw):
- Install git from http://msysgit.github.io
- Install Python 2.7.x see https://www.python.org/downloads/windows
- Default Install:
C:\Python27\
- Add in environment variable
PATH
the path to Default Install:C:\Python27\
- Default Install:
- Open a Command Prompt window (
cmd.exe
) and type following commands:
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.
####Prerequisites for Windows (install gcc arm, mingw):
- Install GCC toolchain GNU_ARM_4_7_2013q3 from https://launchpad.net/gcc-arm-embedded/+milestone/4.7-2013-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:
####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"
- 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"
###To build hydrafw firmware (with EmBitz):
- Install EmBitz (tested with EmBitz beta 0.42) from http://www.emblocks.org/web/downloads-main
- Launch EmBitz and choose from Menu
File => Open... Ctrl-O
with filehydrafwEm.ebp
which is in root of hydrafw/ - Build the code with Menu
Build => Rebuild all target files
###To flash/debug hydrafw firmware (with EmBitz): You can use a STM32F4 Discovery or cheap NUCLEO F401RE as SWD Flasher/Debugger see https://geekilyinteresting.wordpress.com/2014/05/04/using-your-stm32f4-discovery-board-as-a-programmer-and-debugger/
###Flash and use hydrafw on Windows with USB DFU: See the wiki https://github.com/bvernoux/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