DE0-Nano Quartus Lite 19.1.0 Linux - Programming Failed - Error (209040): Can't access JTAG chain
Hello,
I am trying to use my DE0-Nano board with Quartus version Lite 19.1.0 (Debian 10) and my_first_fpga example, but I cannot achieve to successfully program the FPGA.
Quartus correctly detects the on-board USB-Blaster:
but after clicking the Start button, it results in Failed progress. The LOAD LED D4 remains turned on for the whole process.
The only errors I see from the console are:
Error (209040): Can't access JTAG chain Error (209012): Operation failed
Also, quartus_pgm correctly detects the USB-Blaster:
:~$ quartus_pgm -l Info: ******************************************************************* Info: Running Quartus Prime Programmer Info: Version 19.1.0 Build 670 09/22/2019 SJ Lite Edition Info: Copyright (C) 2019 Intel Corporation. All rights reserved. Info: Your use of Intel Corporation's design tools, logic functions Info: and other software and tools, and any partner logic Info: functions, and any output files from any of the foregoing Info: (including device programming or simulation files), and any Info: associated documentation or information are expressly subject Info: to the terms and conditions of the Intel Program License Info: Subscription Agreement, the Intel Quartus Prime License Agreement, Info: the Intel FPGA IP License Agreement, or other applicable license Info: agreement, including, without limitation, that your use is for Info: the sole purpose of programming logic devices manufactured by Info: Intel and sold by Intel or its authorized distributors. Please Info: refer to the applicable agreement for further details, at Info: https://fpgasoftware.intel.com/eula. Info: Processing started: Sun Mar 21 14:04:28 2021 Info: Command: quartus_pgm -l 1) USB-Blaster [1-10] Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings Info: Peak virtual memory: 429 megabytes Info: Processing ended: Sun Mar 21 14:04:28 2021 Info: Elapsed time: 00:00:00 Info: Total CPU time (on all processors): 00:00:00 :~$
The udev rules are correctly setup:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666", GROUP="plugdev", SYMLINK+="usbblaster"
but no way.
I had a similar problem a few years ago but was due to incorrect settings of environment variable PATH.
Now I don't know how to proceed.
The board has not been touched since a few years. It has rested in its case and anti-static bag all this time.
Is there any other test I can do to investigate the problem ? Any hint ?
Thanks.
Simon
The problem seems to be caused by a SW issue..
Following the suggestion posted here
https://electronics.stackexchange.com/questions/239882/altera-cyclone-ii-jtag-after-as-programming
I installed libudev:i386:
$ sudo apt-get install libudev1:i386 $ sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0Then, after pluggin the board:
$ sudo killall jtagd $ jtagd --user-start $ jtagconfig 1) USB-Blaster [1-10] 020F30DD 10CL025(Y|Z)/EP3C25/EP4CE22The above script can be placed the bin directory of installation, for example /opt/intelFPGA_lite/20.1/quartus/bin/usbblaster.sh (yes, I switched to 20.1 version):
#!/bin/sh /usr/bin/killall jtagd /opt/intelFPGA_lite/20.1/quartus/bin/jtagd --user-start and udev rules set as follows:
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666", GROUP="plugdev", SYMLINK+="usbblaster", RUN+="/opt/intelFPGA_lite/20.1/quartus/bin/usbblaster.sh"Works like a charm.
Simon