Universal utility for programming FPGA
Go to file
Uwe Bonnes f9a62b418b ftdiJtagMPSSE: Fix TCK toggle for large numbers. 2021-09-28 21:06:46 +02:00
.github/workflows ci: use eine/tip to release artifacts 2021-07-17 20:11:02 +02:00
doc add gowin external spi in bscan and --external-flash option 2021-09-15 20:18:49 +02:00
scripts/msys2 msys2: fix license, now 'Apache-2.0' 2021-07-17 17:01:51 +02:00
spiOverJtag spiOverJtag: add constr_xc6s_csg324 2021-07-11 09:05:15 +02:00
src ftdiJtagMPSSE: Fix TCK toggle for large numbers. 2021-09-28 21:06:46 +02:00
.gitignore make installation directory configurable 2020-02-16 13:41:58 +01:00
99-openfpgaloader.rules add cmsis dap (hid) support 2021-06-19 17:30:23 +02:00
CMakeLists.txt prepare v0.5.0 2021-08-02 08:28:27 +02:00
INSTALL.md doc: retrieve username from $USER 2021-09-07 09:31:59 +01:00
LICENSE move to APACHE-2.0 license 2021-06-26 15:24:07 +02:00
README.md add gowin external spi in bscan and --external-flash option 2021-09-15 20:18:49 +02:00
TODO.md add TODO list 2020-07-11 08:45:59 +02:00
test_sfl.svf add svf used to have access to SPI flash through FT2232 interface B 2019-09-26 18:39:03 +02:00

README.md

openFPGALoader

'Test' workflow Status

First stepsInstallTroubleshootingAdvanced usage

Universal utility for programming FPGAs. Compatible with many boards, cables and FPGA from major manufacturers (Xilinx, Altera/Intel, Lattice, Gowin, Efinix, Anlogic). openFPGALoader works on Linux, Windows and macOS.

Not sure if your hardware is supported? Check the hardware compatibility lists:

Also checkout the vendor-specific documentation: Anlogic, Efinix, Gowin, Intel/Altera, Lattice, Xilinx.

Quick Usage

arty in the example below is one of the many FPGA board configurations listed here.

openFPGALoader -b arty arty_bitstream.bit # Loading in SRAM
openFPGALoader -b arty -f arty_bitstream.bit # Writing in flash

You can also specify a JTAG cable model (complete list here) instead of the board model:

openFPGALoader -c cmsisdap fpga_bitstream.bit

Usage

openFPGALoader --help
Usage: openFPGALoader [OPTION...] BIT_FILE
openFPGALoader -- a program to flash FPGA

      --bitstream arg       bitstream
  -b, --board arg           board name, may be used instead of cable
  -c, --cable arg           jtag interface
      --ftdi-serial arg     FTDI chip serial number
      --ftdi-channel arg    FTDI chip channel number (channels 0-3 map to
                            A-D)
  -d, --device arg          device to use (/dev/ttyUSBx)
      --detect              detect FPGA
      --dfu                 DFU mode
      --dump-flash          Dump flash mode
      --external-flash      select ext flash for device with internal and  
                            external storage
      --file-size arg       provides size in Byte to dump, must be used with
                            dump-flash
      --file-type arg       provides file type instead of let's deduced by
                            using extension
      --fpga-part arg       fpga model flavor + package
      --freq arg            jtag frequency (Hz)
  -f, --write-flash         write bitstream in flash (default: false)
      --index-chain arg     device index in JTAG-chain
      --list-boards         list all supported boards
      --list-cables         list all supported cables
      --list-fpga           list all supported FPGA
  -m, --write-sram          write bitstream in SRAM (default: true)
  -o, --offset arg          start offset in EEPROM
      --pins arg            pin config (only for ft232R) TDI:TDO:TCK:TMS
      --probe-firmware arg  firmware for JTAG probe (usbBlasterII)
      --quiet               Produce quiet output (no progress bar)
  -r, --reset               reset FPGA after operations
      --spi                 SPI mode (only for FTDI in serial mode)
  -v, --verbose             Produce verbose output
  -h, --help                Give this help list
      --verify              Verify write operation (SPI Flash only)
  -V, --Version             Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to <gwenhael.goavec-merou@trabucayre.com>.