Program FPGA on A314‐500 using openocd on the Pi - niklasekstrom/a314 GitHub Wiki

A314-500 v1.2 added a JTAG connection that makes it possible to program the FPGA from the Raspberry Pi. A314-600 has this JTAG connection also.

Please note that the HDL is now in a separate repository: https://github.com/niklasekstrom/A314-500-HDL.

Follow these steps to program from the Pi:

  • Install openocd: sudo apt update, sudo apt install openocd.
  • Download and unzip bitstream files: wget https://github.com/niklasekstrom/A314-500-HDL/releases/download/v1.2/bitstreams.zip, unzip bitstreams.zip.
  • Choose the right bitstream file for your board, they are described on the releases page. If you have an A314-500 v1.2 board then use a314-500.svf.
  • Download the openocd_a314.cfg configuration file: wget https://raw.githubusercontent.com/niklasekstrom/A314-500-HDL/main/HDL/openocd_a314.cfg
  • Edit line 25 by writing the bitstream file you are using.
  • Run openocd as sudo openocd -f openocd_a314.cfg (make sure the config file and the bitstream file is in your path).