This post was last edited by gs001588 on 2021-12-28 02:20
[Evaluation of domestic FPGA Gaoyun GW1N-4 series development board]——8. Using external JTAG downloader (Black Gold USB Cable)
Recently, a friend wants to use an external JTAG downloader to debug the GW1N-4 development board. I also have this idea, but the price of the official downloader of Gaoyun on Taobao is not very affordable. I have some knowledge of several Gaoyun development boards and official downloaders before. If I have a xilinx downloader, I might give it a try.
According to the development board schematic, the onboard downloader uses the FT232HL chip and has no external EEPROM chip. It should be that the default settings of FT232HL and the default driver of FTDI are used. Gaoyun calls FTDI's underlying library to implement the downloader function. Therefore, it is possible to use other manufacturers' downloaders based on FT232HL, FT2232HL, and FT4232HL chips to debug Gaoyun FPGA.
I have previously bought a black gold Xilinx development board, which came with a "USB Cable" downloader.
The “USB Cable” downloader interface is defined as follows. For easy connection, a 10-pin download interface with a 2.54-pin connector is used.
Driven by curiosity, I opened the downloader and found that the main chip was FT232HL. The silk screen had been worn off when the black gold was shipped. So how do you know it is a FT232HL chip? Let's read on.
If you have used FTDI chips before and installed FT Prog software, you may want to plug in the downloader and scan it. The following figure shows the scanned chips when the Gaoyun development board and USB Cable downloader are plugged in at the same time. The red frame is the chip on the FPGA development board. You can see "FT232H", which is consistent with the actual welding on the board. (Based on previous understanding of FTDI products, the letter "L" in "FT232HL" should mean LQFP package. There is also a FT232HQ that is QFN package.)
The second chip scanned is still "FT232H", which means the chip used in the Black Gold USB Cable is indeed FT232HL. (There is also Digilent in the product description and manufacturer, which means that Black Gold may also be using Digilent's solution)
Open the Gowin Programmer environment, click "USB Cable Setting", a setting window pops up, click "Query" to search for the downloader, and in the output window you will see that there are two downloaders found, but the default is the Gowin model. You need to click the "Cable" drop-down menu to manually select the Black Gold downloader.
After selecting the downloader, save the settings.
Change the 4 downloader selection jumper caps on the development board from the default USB on the right to the JTAG side on the left. At the same time, connect the J5 downloader socket to the Black Gold Downloader using 2.54 DuPont head loose wires as defined. Six wires need to be connected, which are not listed here one by one.
Power on the development board, find a program (use the stopwatch program in the previous post) and download it to the development board. You can see the download success prompt in the output window. The difference from downloading with the onboard downloader is that there are two more lines of yellow-green warnings. This is normal. After all, it is not the Gaoyun downloader. Just ignore it. (Previous post address: [Evaluation of domestic FPGA Gaoyun GW1N-4 series development board] - 7. Digital tube display stopwatch https://bbs.eeworld.com.cn/thread-1190210-1-1.html )
After downloading the program, if you see the DONE and READY lights are on, it means the download is successful, and the digital tube displays the stopwatch function normally.
This experiment realizes the function of downloading programs to Gaoyun development board through the Black Gold Downloader USB Cable.
The key point of this experiment is the downloader based on FT232HL. Other downloaders based on FT2232HL, FT4232HL and other chips should also be possible. The more common xilinx downloaders HS1, HS2, HS3, SMT2, MST3, and Lattice downloaders are all based on FT232HL or FT2232HL solutions. If you have these models of downloaders and want to use an external JTAG downloader, you don’t need to buy a new one. The original intention of the experiment is to use one thing for multiple purposes.
I wish you all a happy time!