FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6020 Discussions

Intel Agilex F-Series dev kit cant be programmed by JTAG

leondietrich
New Contributor I
6,053 Views

Hi,
Im officially out of luck. After wasting an entire week on trying to get the programmer to work I posting my question within this forum.

I've got multiple bit stream files I'd like to use for configuration of our agilex FPGA (AGFB014R24A2E3VR0). While the UBII and Power Max 10 chips do seam to work (the board test system shows power and clock stats) the programming (both our bitstream and the intel example bitstreams) always fails at 13% (using both the quartus programmer and the one provided by the BTS). Searching the exact error message (obtained by right click -> copy on the log message) wasn't of any help. We're using Quartus Pro 20.4 on Ubuntu 20 and Windows 10 (neither worked, both with the same issue).

Please review the attached screen shot for further details.

1 Solution
leondietrich
New Contributor I
5,380 Views

Hi,

thanks a lot for your help! We've fixed this issue now. One thing we'd like to share, for a potential future reader, is that in addition to the above mentioned article one needs to completely erase the flash prior to configuring. Our working solutions looks like the following:

  1. Power off the board. Waiting for the caps to be drained doesn't seam to be necessary.
  2. Set MSEL[2:0] to ON/OFF/OFF
  3. Power on the board.
  4. Erase the boards flash using the programmer tools
  5. Power off the board.
  6. Set MSEL[2:0] to OFF/OFF/OFF
  7. Power on the board
  8. Programm your *.sof file.

It's also required to leave the JTAG chain in the default configuration while erasing the flash. Last but not least: If step 8 fails retry a couple of times until it stops failing (we usually don't need more than 3 tries). It also seams to be more reliable (programming fails less often) at 24MHz than 6MHz, which the programmer defaults to anyway.

View solution in original post

0 Kudos
26 Replies
leondietrich
New Contributor I
5,381 Views

Hi,

thanks a lot for your help! We've fixed this issue now. One thing we'd like to share, for a potential future reader, is that in addition to the above mentioned article one needs to completely erase the flash prior to configuring. Our working solutions looks like the following:

  1. Power off the board. Waiting for the caps to be drained doesn't seam to be necessary.
  2. Set MSEL[2:0] to ON/OFF/OFF
  3. Power on the board.
  4. Erase the boards flash using the programmer tools
  5. Power off the board.
  6. Set MSEL[2:0] to OFF/OFF/OFF
  7. Power on the board
  8. Programm your *.sof file.

It's also required to leave the JTAG chain in the default configuration while erasing the flash. Last but not least: If step 8 fails retry a couple of times until it stops failing (we usually don't need more than 3 tries). It also seams to be more reliable (programming fails less often) at 24MHz than 6MHz, which the programmer defaults to anyway.

0 Kudos
Star
Beginner
1,545 Views

Hi,

Recently, I meet the same problem and struggle on it for couple of weeks. I read your solution and wanted to apply it to my PCB. But I encountered one problem when Erase the boards flash. I used the system console -->SDM Debugging Toolkit to erase the flash. However, the Toolkit replied message as shown below:

'QSPI Flash Sector 0x00000000: Erase Error'

It seems that the SDM Debugging Toolkit is useless when the device is not configured. 

Can you clarify that how do you erase the boards flash using the programmer tools.

Thank you!

0 Kudos
leondietrich
New Contributor I
1,534 Views

Well,

We're using the Quartus Programmer to erase the flash. Open the programmer from the Quartus menu -> click on "Auto Detect" to get the correct chain -> select erase for the flash chip -> press start

0 Kudos
Star
Beginner
1,523 Views

Hi,

We've tried your method and the programming always fails at 99%.  The error messages are shown below:

'Unexpected error in JTAG server: JTAG chain broken

 Unexpected error in JTAG server: JTAG chain broken

 Unexpected error in JTAG server: JTAG chain broken

 Unexpected error in JTAG server: JTAG chain broken

 Device not responding

 Unexpected error in JTAG server: JTAG chain broken

 Operation failed'

Have you ever met the same problem?

0 Kudos
leondietrich
New Contributor I
1,517 Views

We indeed sometimes have a problem where the programmer failes at 99 percent but I can't recall ever having received those error messages. Usually the error resolves itself after rebooting the computer running the Jtag server. We redo the above meantioned steps prior to every programming attempt and that seams to work for us.

0 Kudos
Star
Beginner
1,503 Views

Thanks a lot for your replay!

We tried to redo the steps today and it seems sometimes the programmer reached 100% and soon down back to 0%. And another error occurred indicating the failure of FLASH:

'Configuring device index 1

 Configuration succeeded at device index 1

 Access to flash interface is denied. Potential errors: The device is not configured to setup the flash interface.

 Operation failed'

We have checked the FLASH ID selection and the circuits around the FLASH on the PCB and there seems to be no mistakes. Have you ever met the same problem?

0 Kudos
Reply