3
\$\begingroup\$

Does anybody know if it's possible to use a Segger J-Link with Intel Quartus to flash an FPGA?

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

AFAIK not directly, but through OpenOCD.

You can use quartus_cpf to convert the programming file to SVF format, and then set up the J-Link in OpenOCD.

I have a similar setup even for my USB Blaster, because I can program from a machine that doesn't have QuartusII installed that way (also it allows me to avoid the libudev0-shim hack to allow Quartus's jtagd to find the device).

My build script generates the SVF with

quartus_cpf \
    --convert \
    --frequency=10MHz \
    --voltage=3.3V \
    --operation=p \
    output_files/pcie_test.sof \
    output_files/pcie_test.svf

and I send it to the device with

openocd \
    -f /usr/share/openocd/scripts/interface/altera-usb-blaster.cfg \
    -c init \
    -c 'svf pcie_test.svf' \
    -c exit

You would probably use one of the j-link scripts for the initial setup. If you have more devices on the same scan chain, either build a CDF file in the QuartusII Programmer and pass that to quartus_cpf, or tell it the sum of the IR lengths before and after your device.

For details on QuartusII command line tools, see the scripting reference.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks very much for the information! I'm still new to a lot of this but you gave me a lot of good information to start looking at. \$\endgroup\$
    – SofaKng
    Oct 27, 2020 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.