openFPGALoader用于对 FPGA 进行编程的通用实用程序。与主要制造商(Xilinx、Altera/Intel、Lattice、Gowin、Efinix、Anlogic、Cologne Chip)的许多板、电缆和 FPGA 兼容。 openFPGALoader 适用于 Linux、Windows 和 macOS。
不确定您的硬件是否受支持?检查硬件兼容性列表:
另请查看供应商特定文档: Anlogic、 Cologne Chip、 Efinix、 Gowin、 Intel/Altera、 Lattice、 Xilinx。
OpenFPGALoader 有一个专用频道:#openFPGALoader at libera.chat。
arty
下面的示例是此处列出的众多 FPGA 板配置之一。
openFPGALoader -b arty arty_bitstream.bit # Loading in SRAM
openFPGALoader -b arty -f arty_bitstream.bit # Writing in flash
您还可以指定 JTAG 电缆模型(完整列表见此处)而不是板模型:
openFPGALoader -c cmsisdap fpga_bitstream.bit
用法
Usage: openFPGALoader [OPTION...] BIT_FILE
openFPGALoader -- a program to flash FPGA
--altsetting arg DFU interface altsetting (only for DFU mode)
--bitstream arg bitstream
--secondary-bitstream arg
secondary bitstream (some Xilinx UltraScale
boards)
-b, --board arg board name, may be used instead of cable
-B, --bridge arg disable spiOverJtag model detection by
providing bitstream(intel/xilinx)
-c, --cable arg jtag interface
--invert-read-edge JTAG mode / FTDI: read on negative edge
instead of positive
--vid arg probe Vendor ID
--pid arg probe Product ID
--cable-index arg probe index (FTDI and cmsisDAP)
--busdev-num arg select a probe by it bus and device number
(bus_num:device_addr)
--ftdi-serial arg FTDI chip serial number
--ftdi-channel arg FTDI chip channel number (channels 0-3 map to
A-D)
--detect detect FPGA
--dfu DFU mode
--dump-flash Dump flash mode
--bulk-erase Bulk erase flash
--target-flash arg for boards with multiple flash chips (some
Xilinx UltraScale boards), select the target
flash: primary (default), secondary or both
--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
--flash-sector arg flash sector (Lattice parts only)
--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
--ip arg IP address (XVC and remote bitbang client)
--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 address (in bytes) for read/write into
non volatile memory (default: 0)
--pins arg pin config TDI:TDO:TCK:TMS
--probe-firmware arg firmware for JTAG probe (usbBlasterII)
--protect-flash arg protect SPI flash area
--quiet Produce quiet output (no progress bar)
-r, --reset reset FPGA after operations
--scan-usb scan USB to display connected probes
--skip-load-bridge skip writing bridge to SRAM when in
write-flash mode
--skip-reset skip resetting the device when in write-flash
mode
--spi SPI mode (only for FTDI in serial mode)
--unprotect-flash Unprotect flash blocks
-v, --verbose Produce verbose output
--verbose-level arg verbose level -1: quiet, 0: normal,
1:verbose, 2:debug
-h, --help Give this help list
--verify Verify write operation (SPI Flash only)
--port arg Xilinx Virtual Cable and remote bitbang Port
(default 3721)
--mcufw arg Microcontroller firmware
--conmcu Connect JTAG to MCU
-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>.
默认情况下,spiOverJtag会搜索到${CMAKE_INSTALL_FULL_DATAROOTDIR}
(默认情况下为/usr/local/share/)。可以通过使用环境变量来更改此行为:
export OPENFPGALOADER_SOJ_DIR=/somewhere
openFPGALoader xxxx
或者
OPENFPGALOADER_SOJ_DIR=/somewhere openFPGALoader xxxx
OPENFPGALOADER_SOJ_DIR
必须指向包含spiOverJtag 比特流的目录。
文档
https://trabucayre.github.io/openFPGALoader/
下载
https://github.com/trabucayre/openFPGALoader/releases/tag/v0.12.1
没有回复内容