This repository contains the reference implementation of the QiProg protocol. QiProg is a specification for communicating with flash chip programmers over USB. It was originally developed by Peter Stuge, and has since been extended to a complete API for flash chip programmers. USB is used as a transport medium.
This reference implementation includes the USB host driver, which serializes QiProg commands over a USB connection, and the USB device driver, which de-serializes the USB streams into QiProg calls executed on the device.
- gcc or any working compiler
- cmake
- libusb
- Create a build directory and cd into it:
$ mkdir build; cd build
- Now tell cmake to create the build system, pointing it to the source directory:
$ cmake ..
- (Optional) You can fine-tune options with ccmake:
$ ccmake .
- Compile:
$ make
The code is documented with Doxygen comments. If Doxygen is isntalled, cmake will create a special 'doc' target for building documentation. To generate the documentation, use:
$ make doc
- -c | --copyright print license and exit
- -r | --read read flash and save to
- -v | --verify verify flash against
- -w | --write write to flash
- -t | --test test basic functionality of device
A copyright notice indicating a range of years, must be interpreted as having had copyrightable material added in each of those years.
For example:
Copyright (C) 2010-2013 Contributor Name
is to be interpreted as
Copyright (C) 2010,2011,2012,2013 Contributor Name