HydraFW is a native C (and asm) open source firmware for HydraBus board with support of HydraNFC Shield.
You can Buy HydraBus/HydraNFC Online in Seeed Studio Online Shop: https://www.seeedstudio.com/depot/HydraBus-m-132.html
- Getting Started with HydraBus: https://github.com/bvernoux/hydrafw/wiki/Getting-Started-with-HydraBus
- HydraFW Wiki: https://github.com/bvernoux/hydrafw/wiki
- HydraFW usage with VT100 Terminal see wiki https://github.com/bvernoux/hydrafw/wiki/HydraFW-commands
- For more details on HydraBus Hardware and Firmware see also: https://github.com/bvernoux/hydrabus
- For more details on HydraNFC Hardware see: https://github.com/bvernoux/hydranfc
- If you want to help on this project see the Coding Styles, Wiki & Wiki Task List
##How to build, flash and use hydrafw on Windows:
###Prerequisites for Windows:
- Install git from https://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
python -m pip install intelhex --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=https://proxy.myproxy.com
set https_proxy=https://proxy.myproxy.com
###To build hydrafw firmware (with mingw):
MinGW (https://www.mingw.org) is required. The firmware is set up for compilation with the GCC toolchain GNU_ARM_4_7_2013q3.
- 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 https://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
###To build hydrafw firmware (with Em::Blocks):
- Install Em::Blocks (tested with Em::Blocks 2.30) from https://www.emblocks.org/web/downloads-main
- Launch Em::Blocks 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
###Flash and use hydrafw on Windows: See the wiki https://github.com/bvernoux/hydrafw/wiki/Getting-Started-with-HydraBus
##How to build, flash and use hydrafw on Linux (Debian/Ubuntu):
###Prerequisites for Linux:
cd ~
sudo apt-get install git dfu-util python putty
wget https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
tar xjf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2
echo 'PATH=$PATH:~/gcc-arm-none-eabi-4_7-2013q3/bin' >> ~/.bashrc
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
python -m pip install intelhex --allow-external intelhex --allow-unverified intelhex
cd ..
Note:
For get-pip.py if you need a proxy for internet access set following variables before to launch
python get-pip.py:
export http_proxy=https://proxy.myproxy.com
export https_proxy=https://proxy.myproxy.com
sudo -E python get-pip.py
###Build hydrafw on Linux:
cd ~/hydrafw
make clean
make
###Flash and use hydrafw on Linux: See the wiki https://github.com/bvernoux/hydrafw/wiki/Getting-Started-with-HydraBus