tow3rs / jtag-mpsse-blaster

Use an MPSSE FTDI device as a JTAG interface in Quartus tools
GNU General Public License v3.0
14 stars 2 forks source link

Error JTAG ID on Linux when I try to program the Catapult V3(PCI-E version). #1

Open SergeyKharenko opened 1 year ago

SergeyKharenko commented 1 year ago

Thank you for your selfless dedication!!! I follow your guide step by step. And I successfully programmed my device on Windows 10. However, when I tried to program it on Linux, the issue happened~ Error(209015): Can't configure device. Expected JTAG ID code 0x02E660DD for device 1, but found JTAG ID code 0x026060DD. Make sure the location of the target device on the circuit board matches the device's location in the device chain in the Chain Description File (.cdf). My Quartus Prime Pro version is 22.3, which is the same as that on Windows. Besides, both of the distributions, Debian 12(Linux Kernel 6.1.0) and Mint 21.2(Linux Kernel 5.15), have this problem. I don't know whether this is caused by Quartus itself or the driver~ Looking forward to your reply!

tow3rs commented 1 year ago

I'm pretty sure that the issue is driver related. You can try the following steps:

if (hwData->isHighSpeed)
{
    clockDivisor = 1; // -> Increase this value to reduce TCK freq (2,3,4...)
    hwData->jtagClock = 15000000;
    // Comment the following line to enable 12Mhz master clock instead 60Mhz
    // buffer[dwNumBytesToSend++] = FT_OPCODE_DISABLE_DIVIDE_BY_5;   // Use 60MHz master clock (disable divide by 5)
}
tow3rs commented 9 months ago

@Kharlenkow, It appears that a missing synchronization step was causing incomplete device initialization on Linux systems. Now it's fixed.

SergeyKharenko commented 9 months ago

Glad to hear that the problem has been solved!!! I apologize for my late reply. Because of GFW, I only use github occasionally, but use Gitee instead... T.T