Author Topic: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips  (Read 2737 times)

0 Members and 1 Guest are viewing this topic.

Offline asmiTopic starter

  • Super Contributor
  • ***
  • Posts: 2794
  • Country: ca
Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« on: October 24, 2022, 09:17:08 pm »
Xilinx quietly released an utility which allows to program EEPROM for FTDI's FT22x chips such that they will be recognized by their toolchain: https://docs.xilinx.com/r/en-US/ug908-vivado-programming-debugging/Programming-FTDI-Devices-for-Vivado-Hardware-Manager-Support
One no longer needs to buy overpriced JTAG modules from Digilent (or resort to illegal methods) if he/she wants to have a USB JTAG debugger on a board. That's a great move by Xilinx, even though I will still probably use my HS3 cable with TagConnect to save money and space for all of that programming stuff.
« Last Edit: October 24, 2022, 09:18:41 pm by asmi »
 
The following users thanked this post: Jope, paf, chickenHeadKnob, BrianHG

Offline ali_asadzadeh

  • Super Contributor
  • ***
  • Posts: 1930
  • Country: ca
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #1 on: October 25, 2022, 08:39:40 am »
I have designed a PCB based on FT2232H, and I can use it with Gowin and Xilinx tools,
If I program the EEPROM with Digilent  HS2 content it can be recognized by xilinx tools  (ISE and viavdo), for Gowin devices I should erase the EEPROM, so it can be recognized by their tool.

I have emailed Gowin to add the support for Digilent  HS2, and they said the tools already should work! But it’s not working, and Every time I need to switch tools, I just reprogram the EEPROM for now, if someone suggest any workaround this, it would be very nice.

I wonder if the FT2232H can be used for ARM (keil) tools to act like a JTAG/SWD debugger, then I just need to carry one universal tool for programing and debugging.
Companies should give up making money on debugging tools, because it’s a small margin compared to selling chips and it just makes the customer work harder.
« Last Edit: October 25, 2022, 08:41:11 am by ali_asadzadeh »
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3243
  • Country: ca
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #2 on: October 25, 2022, 03:07:01 pm »
Xilinx quietly released an utility which allows to program EEPROM for FTDI's FT22x chips such that they will be recognized by their toolchain: https://docs.xilinx.com/r/en-US/ug908-vivado-programming-debugging/Programming-FTDI-Devices-for-Vivado-Hardware-Manager-Support

Good decision. If only you could buy something you can program with it.

The EEPROM programming wasn't strictly necessary for configuring FPGA. It was only needed for Vivado and tools, not for FPGA. I wrote my own program to configure the FPGA with a given bitstream and could do it without any keys in EEPROM.

I wonder if the FT2232H can be used for ARM (keil) tools to act like a JTAG/SWD debugger

No doubts about this.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4684
  • Country: dk
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #3 on: October 25, 2022, 03:39:25 pm »
I have designed a PCB based on FT2232H, and I can use it with Gowin and Xilinx tools,
If I program the EEPROM with Digilent  HS2 content it can be recognized by xilinx tools  (ISE and viavdo), for Gowin devices I should erase the EEPROM, so it can be recognized by their tool.

I have emailed Gowin to add the support for Digilent  HS2, and they said the tools already should work! But it’s not working, and Every time I need to switch tools, I just reprogram the EEPROM for now, if someone suggest any workaround this, it would be very nice.

if gowin just expects an empty eeprom, a series resistor and a jumper to short DOUT on the eeprom ?
 

Offline asmiTopic starter

  • Super Contributor
  • ***
  • Posts: 2794
  • Country: ca
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #4 on: October 25, 2022, 06:23:10 pm »
Good decision. If only you could buy something you can program with it.
What do you mean?

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4684
  • Country: dk
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #5 on: October 25, 2022, 06:27:04 pm »
Good decision. If only you could buy something you can program with it.
What do you mean?

I suspect he's hinting at Xilinx IC being made from an extra rare kind of unobtanium
 

Offline asmiTopic starter

  • Super Contributor
  • ***
  • Posts: 2794
  • Country: ca
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #6 on: October 25, 2022, 06:49:02 pm »
I suspect he's hinting at Xilinx IC being made from an extra rare kind of unobtanium
Ah, they are not alone in this, and I wonder if it ever gets back to any semblance of normalcy. At least I was able to find some scraps of them on the Aliexpress for cheap, which were good enough for prototyping/devboards.

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4684
  • Country: dk
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #7 on: October 25, 2022, 08:49:50 pm »
I suspect he's hinting at Xilinx IC being made from an extra rare kind of unobtanium
Ah, they are not alone in this, and I wonder if it ever gets back to any semblance of normalcy. At least I was able to find some scraps of them on the Aliexpress for cheap, which were good enough for prototyping/devboards.

look this guy, 1260 spartn6 for "only" $90K from possibly sketchy source
https://www.reddit.com/r/electronics/comments/ycywk3/hello_early_retirement/

 

Offline asmiTopic starter

  • Super Contributor
  • ***
  • Posts: 2794
  • Country: ca
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #8 on: October 25, 2022, 09:25:51 pm »
look this guy, 1260 spartn6 for "only" $90K from possibly sketchy source
https://www.reddit.com/r/electronics/comments/ycywk3/hello_early_retirement/
No, I'm not crazy enough to risk that kind of money, and besides I use 7 series devices in my projects. I meant more like buying 3-4-5 devices for under $100 per device on Aliexpress, which stays under my threshold of the amount of money I'm willing to risk, and it's enough for a couple of iterations of a prototype or a devboard. For example, I've managed to snag five Zynq-030's for like $90 a year or so ago, but still can't settle on what I want to do with them.
« Last Edit: October 25, 2022, 09:28:22 pm by asmi »
 

Offline laugensalm

  • Regular Contributor
  • *
  • Posts: 129
  • Country: ch
Re: Custom JTAG debugger for Xilinx FPGAs based on FT22x chips
« Reply #9 on: October 26, 2022, 06:06:02 pm »
The various forks of `xc3sprog` had support for most ISE-supported chips (including a few of the 7 series) for the last 15 years for FT2232* adapters and used to be way faster than its counterpart `Impact` or the flaky digilent equivalent `Adept`. Some folks (including me) had also hacked around on cable servers that worked with Impact. I believe this is now called virtual cable and has obviously some open source support, too.

So: They're a bit late, but maybe not for the Windows/Vivado user domain.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf