[原創]FPGA JTAG工具設計(一)
阿新 • • 發佈:2017-12-27
connect all reads -c mage bsp art type turn
先來看不同JTAG方案,下載配置QSPI Flash所耗時間
基於FTDI方案,JTAG下載時間為494sec
1 JTAG chain configuration
2 --------------------------------------------------
3 Device ID Code IR Length Part Name
4 1 4ba00477 4 arm_dap
5 2 23727093 6 xc7z020
6 --------------------------------------------------
7 Enabling extended memory access checks for Zynq.
8 Writes to reserved memory are not permitted and reads return 0.
9 To disable this feature, run "debugconfig -memory_access_check disable".
10 --------------------------------------------------
11 CortexA9 Processor Configuration
12 -------------------------------------
13 Version.............................0x00000003
14 User ID.............................0x00000000
15 No of PC Breakpoints................6
16 No of Addr/Data Watchpoints.........4
17 Processor Reset .... DONE
18 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
19 Performing Erase Operation...
20 Erase Operation successful.
21 INFO: [Xicom 50-44] Elapsed time = 34 sec.
22 Performing Program Operation...
23 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%.........................................................................................................................................................................................100%
24 .........Program Operation successful.
25 INFO: [Xicom 50-44] Elapsed time = 494 sec.
26 Flash Operation Successful
基於Cypress方案,JTAG下載時間為674sec
1 JTAG chain configuration
2 --------------------------------------------------
3 Device ID Code IR Length Part Name
4 1 4ba00477 4 arm_dap
5 2 23727093 6 xc7z020
6 --------------------------------------------------
7 Enabling extended memory access checks for Zynq.
8 Writes to reserved memory are not permitted and reads return 0.
9 To disable this feature, run "debugconfig -memory_access_check disable".
10 --------------------------------------------------
11 CortexA9 Processor Configuration
12 -------------------------------------
13 Version.............................0x00000003
14 User ID.............................0x00000000
15 No of PC Breakpoints................6
16 No of Addr/Data Watchpoints.........4
17 Processor Reset .... DONE
18 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
19 Performing Erase Operation...
20 Erase Operation successful.
21 INFO: [Xicom 50-44] Elapsed time = 33 sec.
22 Performing Program Operation...
23 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%............................................................................................................................................................................100%
24 ...Program Operation successful.
25 INFO: [Xicom 50-44] Elapsed time = 674 sec.
26 Flash Operation Successful
詳細的燒寫過程:FTDI方案,TotalTime=1455sec,24.25分鐘;采用Cypress方案需要42分鐘
1 cmd /C program_flash -f 2 F:\*\bootimage\BOOT.bin 3 -offset 0 -flash_type qspi_single -blank_check -verify -cable type xilinx_tcf url 4 TCP:127.0.0.1:3121
5 ****** Xilinx Program Flash
6 ****** Program Flash v2015.4 (64-bit)
7 **** SW Build 1412921 on Wed Nov 18 09:43:45 MST 2015
8 ** Copyright 1986-2015 Xilinx, Inc. All Rights Reserved.
9 Connecting to hw_server @ TCP:127.0.0.1:3121
10 Connected to hw_server @ TCP:127.0.0.1:3121
11 Available targets and devices:
12 Target 0 : jsn-JTAG-SMT1-210203367162A
13 Device 0: jsn-JTAG-SMT1-210203367162A-4ba00477-0
14 JTAG chain configuration
15 --------------------------------------------------
16 Device ID Code IR Length Part Name
17 1 4ba00477 4 arm_dap
18 2 23727093 6 xc7z020
19 --------------------------------------------------
20 Enabling extended memory access checks for Zynq.
21 Writes to reserved memory are not permitted and reads return 0.
22 To disable this feature, run "debugconfig -memory_access_check disable".
23 --------------------------------------------------
24 CortexA9 Processor Configuration
25 -------------------------------------
26 Version.............................0x00000003
27 User ID.............................0x00000000
28 No of PC Breakpoints................6
29 No of Addr/Data Watchpoints.........4
30 Processor Reset .... DONE
31 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
32 Performing Erase Operation...
33 Erase Operation successful.
34 INFO: [Xicom 50-44] Elapsed time = 33 sec.
35 Performing Blank Check Operation...
36 0%.......................................................................................................................................................................................................10%.......................................................................................................................................................................................................20%.......................................................................................................................................................................................................30%.......................................................................................................................................................................................................40%.......................................................................................................................................................................................................50%.......................................................................................................................................................................................................60%.......................................................................................................................................................................................................70%.......................................................................................................................................................................................................80%.......................................................................................................................................................................................................90%.......................................................................................................................................................................................................100%
37 ..........INFO: [Xicom 50-44] Elapsed time = 524 sec.
38 Blank Check Operation successful. The part is blank.
39 Performing Program Operation...
40 0%.........................................................................................................................................................................................10%.........................................................................................................................................................................................20%.........................................................................................................................................................................................30%.........................................................................................................................................................................................40%.........................................................................................................................................................................................50%.........................................................................................................................................................................................60%.........................................................................................................................................................................................70%.........................................................................................................................................................................................80%.........................................................................................................................................................................................90%.........................................................................................................................................................................................100%
41 .........Program Operation successful.
42 INFO: [Xicom 50-44] Elapsed time = 420 sec.
43 Performing Verify Operation...
44 0%.......................................................................................................................................................................................................10%.......................................................................................................................................................................................................20%.......................................................................................................................................................................................................30%.......................................................................................................................................................................................................40%.......................................................................................................................................................................................................50%.......................................................................................................................................................................................................60%.......................................................................................................................................................................................................70%.......................................................................................................................................................................................................80%.......................................................................................................................................................................................................90%.......................................................................................................................................................................................................100%
45 ..........INFO: [Xicom 50-44] Elapsed time = 511 sec.
46 Verify Operation successful.
47 Flash Operation Successful
在實際調試過程中,下載速度快也能為開發人員節約時間
基於此,根據相關資料DIY一個JTAG+UART方案,在調試zynq時,很多時候板級並沒有UART 外置PHY,JTAG工具鏈自帶UART,也方便FPGA和嵌入式工程師調試單板和系統。
[原創]FPGA JTAG工具設計(一)