iFPGA-Cable調試器使用說明
全文分為6部分:
第0部分:實物、連線及其驅動安裝說明
第1部分:Xilinx JTAG
第2部分:UART
第3部分:Altera JTAG
第4部分:Lattice JTAG
第5部分:相關軟件及其Demo附件下載地址
第0部分:實物、連線及其驅動安裝說明
基本特性:
- Channel A為JTAG,電平1.8~5V,在Xilinx 平台(include ISE 13.2+,Vivado),TCK最大時鍾頻率30MHz;
- Channel B為UART,電平1.8~5V,波特率的設置滿足日常需求,具體更多配置,可參看FTDI官網AN;
- 兼容部分Altera平台Quartus II版本和器件,支持SignalTap在線調試(此功能未在所有版本和器件上全部測試,用戶可自行研究);
- 此調試器既可作為Xilinx JTAG下載器,又可作為部分Quartus軟件版本和Altera 部分器件下載調試工具,亦可作為串口工具
此舉,很好的解決了燒寫Flash速度(Zynq平台燒寫QSPI Flash速度,優於之前的Cypress方案),同時兼顧串口調試功能,在很多SOC平台,串口PHY無須存在在PCB上,節約板級空間和BOM成本,一舉兩得!在需要串口時,只需將TX/RX線引出,一個工具,兩種功能!
配置:iFPGA-Cable板子一套,1.5米帶線圈miniUSB接頭線,10pin帶線套2.54標准杜邦線!
miniUSB接口線

全新設計

iFPGA-Cable實物圖(版本1,版本1與版本2功能沒有區別)


連線說明:
JTAG-Vref/USB-Vref,必須供電,否則不能工作!
Power指示燈:下載器電源燈
UART指示燈:串口工作指示燈
JTAG指示燈:JTAG工作指示燈

驅動安裝:
在裝有ISE版本或者vivado版本的PC端,通過USB連接iFPGA-Cable后,PC端會自動進行驅動安裝,如下圖所示,安裝成功后會有提示

此時在設備管理器中,會看到新增2個設備A和B

打開ISE iMPACT,通過JTAG鏈路會看到FPGA器件,Vivado類似

在設備管理器中,點擊USB Serial Convert B屬性

使能VCP功能,虛擬串口功能,如果未安裝成功,用戶可在官網下載驅動 VCP驅動:https://www.ftdichip.com/Drivers/VCP.htm

重新插拔USB接口,串口安裝成功,系統分配COM5口


可以通過串口進行通訊

第1部分:Xilinx JTAG
Vivado識別

ISE識別

ISE燒寫SPI Flash

第2部分:UART
我們在驗證板子上新建一個MicroBlaze工程,UART 波特率115200

為了驗證串口的輸入輸出有效,在microblaze SDK中增加下述程序
1 #include <stdio.h> 2 #include "platform.h" 3 #include "xgpio.h" 4 #include "xparameters.h" 5 #include "xuartlite.h" 6 XGpio LED; 7 void print(char *str); 8 void Init_Display(void) 9 { 10 xil_printf("********************************************************\n\r"); 11 xil_printf("*Chuangxin Electronic Labs Demo. *\n\r"); 12 xil_printf("*http://www.cnblogs.com/ifpga *\n\r"); 13 xil_printf("*Test the iFPGA-Cable Tool *\n\r"); 14 xil_printf("*Mar. 12, 2018 *\n\r"); 15 xil_printf("********************************************************\n\r"); 16 } 17 18 ..... 19 20 void UART_SEL(void) 21 { 22 xil_printf("\n\n\nPlease Select the test:\n\r"); 23 xil_printf("*0: 0 Leds on, 8 Leds off . \n\r"); 24 xil_printf("*1: 1 Leds on, 7 Leds off . \n\r"); 25 xil_printf("*2: 2 Leds on, 6 Leds off . \n\r"); 26 xil_printf("*3: 3 Leds on, 5 Leds off . \n\r"); 27 xil_printf("*4: 4 Leds on, 4 Leds off . \n\r"); 28 xil_printf("*5: 5 Leds on, 3 Leds off . \n\r"); 29 xil_printf("*6: 6 Leds on, 2 Leds off . \n\r"); 30 xil_printf("*7: 7 Leds on, 1 Leds off . \n\r"); 31 xil_printf("*8: 8 Leds on, 0 Leds off . \n\r"); 32 xil_printf("*9: 8 Leds blinking . \n\r"); 33 34 } 35 36 ... 37 38 int main() 39 { 40 41 int rec_data=0; 42 int KK; 43 Init_Display(); 44 UART_SEL(); 45 Init_Gpio_LED(); 46 while(1) 47 { 48 rec_data = XUartLite_RecvByte(XPAR_UART_1_BASEADDR) ; 49 if(rec_data >= 48 && rec_data <=57) 50 { 51 KK = rec_data - 48; 52 xil_printf("\n UART input value is : %d\n\r", KK); 53 Led_drivers( KK ); 54 } 55 else if(rec_data == 13) 56 UART_SEL(); 57 58 } 59 60 61 return 0; 62 }
連接示意圖(Vref連接后,指示燈會亮,USB指示燈/JTAG指示燈/串口指示燈)

程序固化后,連接串口27,並進行配置

串口波特率配置

板子輸出

鍵盤可以輸出,0~9,板子可以有相關動作

第3部分:Altera JTAG
支持部分Quartus版本,未全測試,如有需要可自行研究

了解JTAGServer所在目錄

將jtag_blaster64.dll/jtag_blaster.dll復制到此目錄下,打開Altera Quartus II Programmer
可以方便下載,亦可以進行JTAG SignalTap調試



第4部分:Lattice JTAG
支持Diamond環境,免驅動


第5部分:相關軟件及其Demo附件下載地址
串口工具、測試工程、官方驅動
可通過百度網盤下載
鏈接:https://pan.baidu.com/s/6YWepeuHuBZlbtaH-Y-L1VA 密碼:9srg
