Forum Discussion

NIJGNAS's avatar
NIJGNAS
Icon for New Contributor rankNew Contributor
3 months ago

DK-DEV-AGI027-RA: JTAG chain broken after Nios V Hello, FPGA recovery fails

Hello,

I am using the following board and host environment:

  • Board: Agilex 7 FPGA I-Series Development Kit, DK-DEV-AGI027-RA
  • Serial number: 8100604
  • Quartus Prime Pro: 25.3.1
  • Host OS: Windows 11 Pro

Before this issue, the board was working normally with CXL ED and PCIe designs.

 

Issue summary

After successfully running a modified version of the "Nios V Hello" tutorial design (SOF + ELF) on this kit, Quartus Programmer can no longer detect the JTAG chain reliably. "Auto Detect" fails, and the JTAG Chain Debugger reports unknown devices and possible JTAG signal issues.

 

Steps and observations

1. I modified the Nios V Hello tutorial design (SOF + ELF), including pin assignments and power management & SmartVID assignments, to match DK-DEV-AGI027-RA. Programming completed successfully, and I confirmed the expected "Hello" output.

After that first run, I attempted to download an updated SOF, but Quartus Programmer "Auto Detect" failed.

JTAG Chain Debugger screenshot:

Programmer/Debugger log:

!Error: JTAG chain problem detected

!Error: TDI connection to the first detected device UNKNOWN_00000001 might be shorted to GND

!Error: The TCK and TMS connections to the device before the first detected device UNKNOWN_00000001 might have a problem

!Info: Detected 2 device(s)

!Info: Device 1: UNKNOWN_00000001

!Info: Device 2: UNKNOWN_020D10DD

 

Recovery attempts and results

2. Connected an external USB-Blaster II to J10, set SW8.3 = ON, and completed MAX10 recovery successfully.

3. Set SW8.3 = OFF to attempt FPGA recovery. Quartus Programmer Auto Detect still failed.

4. Loaded the predefined fpga_recovery.cdf and attempted to program AVSTX8.pof, but it failed with:

Error(209062): Flash Loader IP not loaded on device 2

Error(209012): Operation failed

5. Set SW8.2 = ON to remove the FPGA from the JTAG chain, then successfully programmed AVSTX8.pof into QSPI.

6. Set SW8.2 = OFF again, but Auto Detect still failed.

7. Removed the external USB-Blaster II and tried the embedded JTAG interface. Auto Detect still failed.

 

Questions.

  1. Are there additional recommended steps beyond MAX10 recovery and programming the recovery POF to QSPI (for example, specific switch combinations, a required full power-cycle sequence, or other board-level recovery steps)?
  2. If MAX10 recovery completes but JTAG remains broken on both external and embedded JTAG, does this suggest a likely hardware issue (JTAG path, FPGA, or related circuitry) that requires RMA?
  3. Is there anything in the Nios V Hello tutorial flow that could plausibly cause this condition (for example, power management settings, pin assignments, or JTAG-related settings)?

 

If needed, I can share additional logs, exact switch settings, and any other diagnostics you recommend.

Thanks.

13 Replies

  • Hi 

    Can you provide more details regarding the Nios V Hello tutorial modifications, including the SmartVID changes? The issue seems to imply that either the FPGA was damaged or is not being powered to its required core voltage.

    Thanks

    • NIJGNAS's avatar
      NIJGNAS
      Icon for New Contributor rankNew Contributor

      Hi,

      Sure. I followed the DK-DEV-AGI027-RA dev kit documentation and only changed the configuration scheme, SmartVID (PMBus) related settings, and the clock/reset pin constraints when porting the Nios V Hello design.

      I am attaching screenshots of:

      • Device and Pin Options - Configuration
      • Configuration Pin Options
      • Device and Pin Options - Power Management and VID

      1) Device and Pin Options settings

      SectionSettingValue
      ConfigurationConfiguration schemeAVST x8
      ConfigurationVID mode of operationPMBus Master
      Configuration Pin OptionsUSE PWRMGT_SCL outputEnabled, SDM_IO0
      Configuration Pin OptionsUSE PWRMGT_SDA outputEnabled, SDM_IO12
      Configuration Pin OptionsUSE CONF_DONE outputEnabled, SDM_IO16
      Configuration Pin OptionsOther pins (PWRMGT_ALERT, INIT_DONE, etc.)Not enabled
      Power Management and VIDBus speed mode100 KHz
      Power Management and VIDSlave device typeOther
      Power Management and VIDNumber of slave devices1
      Power Management and VIDPMBus device 0 slave address47
      Power Management and VIDEnable PAGE commandOff (unchecked)

       

      2) Clock and reset constraints used

      # Reset

      set_location_assignment PIN_D36 -to reset_reset_n

      set_instance_assignment -name IO_STANDARD "1.2-V" -to reset_reset_n

      # Clock (differential)

      set_location_assignment PIN_N45 -to clk_clk

      set_location_assignment PIN_L46 -to clk_clk(n)

      set_instance_assignment -name IO_STANDARD "True Differential Signaling" -to clk_clk

      These settings allowed the design to program successfully and print the "Hello" message once. After that first run, JTAG Auto Detect started failing with the UNKNOWN devices and the same JTAG chain error messages as previously posted.

      Thanks.

      • SteveK_Arrow's avatar
        SteveK_Arrow
        Icon for New Contributor rankNew Contributor

        Hi

        I think it would be interesting to see what happens if the SDM I2C controller is disabled. The SDM controller is responsible for the SmartVID function and the JTAG chain.

        Set SW4 [1:4] to OFF/OFF/ON/OFF, where OFF is open and ON is closed.  (Table 4 of the Development Kit User Guide)

        Thanks

         

    • NIJGNAS's avatar
      NIJGNAS
      Icon for New Contributor rankNew Contributor

      -duplication-

      • BoonBengT_Altera's avatar
        BoonBengT_Altera
        Icon for Moderator rankModerator

        Hi NIJGNAS,

         

        Greetings, as we do not receive any further clarification/updates on the matter, hence would assume challenge are overcome. We will continue to monitor this post for the next 5 days. If there are no further inquiries during this period, I will step back and allow the community to assist with any future follow-up questions.

        Thank you for engaging with us!

         

        Best regards,
        Altera Technical Support

  • RaduB_Altera's avatar
    RaduB_Altera
    Icon for Occasional Contributor rankOccasional Contributor

    There may be a problem with the voltage regulators on that board. We are working on it, and will get back here when we have a solution. Thank you!