Forum Discussion
Cyclone IV GX Invalid JTAG ID Code - EPCS32
I am using Quartus 23.1 std and I have a project for EP4CGX75CF23 with EPCS32 configuration device. I create a .jic file from two .sof images, in advanced options I enable "Disable EPCS/EPCQ ID check". From this .jic I create a .jam file. Additionally in the Quartus install location I have a "quartus.ini" file with the following line "pgm_allow_epcs32=on".
When I try to program my device using this .jam file it fails with the following error code:
"Error (209001): JTAG ID code specified in JEDEC STAPL Format File does not match any valid JTAG ID codes for device. Verify that the target device's location on the circuit board matches the device's location in the device chain."
However, if I take the exact same .jic file, and use Quartus 18.0 to create the .jam file, then it programs fine. From looking at a diff of the two .jam files it appears that later versions of the Quartus compiler are adding in more lines in the .jam, but I can't really make sense of them.
Is anyone able to suggest a fix for this that doesn't require keeping an old version of Quartus lying around for creating programming files? Thanks.
6 Replies
- FakhrulA_altera
Regular Contributor
Hi CallumH,
Thank you for the additional details.
Both JAM files contain the same FPGA IDCODE (028030DD), so the issue is more likely related to EPCS32 validation added by the newer Quartus JAM flow. The Disable EPCS/EPCQ ID check option does not bypass JTAG/STAPL validation.
EPCS32 is a legacy device and is not officially supported in newer Quartus flows. The pgm_allow_epcs32=on setting allows EPCS32 to appear in the conversion utility, but it does not guarantee JAM compatibility.
For the existing board, please continue generating the JAM file with Quartus 18.0 as the practical workaround. For a longer-term solution, please consider migration to a supported EPCQ-A device, subject to board compatibility.
If the Quartus 18.0 workaround is acceptable, we propose closing this case. Otherwise, please provide the Quartus 18.0 and 23.1 JIC/JAM files, the Auto Detect result, and the complete programming log for further assessment.
Thank you for your kind understanding.
Best regards,
Fakhrul - umut_arrow
Occasional Contributor
Hi,
I am guessing the difference in the .jam files are the JTAG IDCODE's? You can either see if this is true in a text editor or Quartus Programmer will tell you the JTAG ID code if you click 'Auto Detect'. I'm interested in seeing why they'd be different. There was a documented JTAG ID issue for EP4CGX50 and X30 devices in F23 package. But you're using X75, in any case said issue was fixed in a newer Quartus version.
Lastly, may I ask why are you enabling "Disable EPCS/EPCQ ID check"? As far as I'm aware, this is for the flash ID, not JTAG.- CallumH
New Contributor
Both .jam files have the same IDCODE of "028030DD", see snip below. I was enabling "disable EPCS/EPCQ ID check" as I had hoped it would solve this issue, but clearly not.
The .jam made using Quartus 23.1 contains an extra SAVE_DATA_VARIABLE (A217) and then a bunch of extra lines towards the end of the file which look like checks (lots of IF statements), I assume it's one of these extra checks which is failing, but I can't really make sense of them.
I have also tried creating the .jam file using Quartus 24.2 pro, but get the same issue as with Quartus 23.1 std, so it doesn't appear to be fixed in a later version.- umut_arrow
Occasional Contributor
Like FakhrulA_altera suggested, it must be the Quartus flow. They've also laid out your options, I'd say moving onto an EPCQ-A device seems like the long-term solution, while using 18.0 at the moment.
Sorry for the late response
- sstrell
Super Contributor
I feel like that quartus.ini file is a remnant from an old version of Quartus where this was needed. Did you try the file conversion with the .ini file removed?
- CallumH
New Contributor
If you try to add the .jic to the programmer without the quartus.ini file you get the following error:
"Error (20643): Unrecognized configuration device EPCS32. If this is a custom-defined configuration device, ensure that you have set the correct custom database directory."
"file_name.jic is corrupted"