cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
9,848 Views
Registered: ‎03-30-2015

ZC702 - Error when programming by USB JTAG

Jump to solution

Hello,

 

I'm trying to program my first Hello_World project on ZC702 board, but when I ran command on XMD (through SDK) I got this error:

 

XMD% fpga -f D:\FPGA-Zynq-7000\Projects\Lesson_9_Xilinx_SDK\sdk\Hello_world\Debug\Hello_world.elf
ERROR: Connection to Board Failed


Unknown Error Occured
Cable is not connected to the host

 

I did check the USB cable connection, on Device Manager I can saw both "USB Serial Converter A" and "USB Serial Converter B" and "USB Composite Device".

I also double check on switch position,  SW16 is 00000 and SW10 is 10 (for Digilent USB-to-JTAG interface U23) based on ug850-zc702-eval-bd.pdf document.

 

Also check  the rest switches and jumpers, all are in defauft position (except SW10).

 

Any suggestions how to resolve this?

 

Thanks,

Son

 

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
Visitor
Visitor
16,371 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Hello all,

 

Finally problem solved.

 

The main reason for this issue is Cable Driver.

I installed both ISE 14.7 and Vivado 2014.4, and each of these software has its own cable driver and no compatible with each other.

In my case, I only install Cable Driver from ISE but I used XMD on Vivado SDK, that why Windows still recognized cable but Vivado couldn't use JTAG and when I tested with iMPACT or ChipScope Pro Analyzer, these software can connect with ZC702 because these software included in ISE and use driver from ISE package only.

 

For now, because I want to use XMD on Vivado, so I just need install Cable Driver on Vivado package and then it worked.

And here it's my result for Hello Word

jtag_8.png 

 

Thank you guys, for your help.

 

Best,

Son

View solution in original post

0 Kudos
7 Replies
Highlighted
Visitor
Visitor
9,841 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Hello,

 

I post some snapshots on my screen:

 

I set local_host:3121 as default and run "connect arm hw" but still got the error.

XMD on Vivado SDK

 

jtag_1.jpg
jtag_2.jpg
jtag_3.jpg
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
9,839 Views
Registered: ‎04-16-2012

Re: ZC702 - Error when programming by USB JTAG

Jump to solution
Hello,

Are you able to connect the board using impact or Vivado HW manager?

Thanks,
Vinay
--------------------------------------------------------------------------------------------
Have you tried typing your question in Google? If not you should before posting. Also, MARK this is as an answer in case it helped resolve your query/issue.Give kudos to the post that helped you to find the solution.
0 Kudos
Highlighted
Visitor
Visitor
9,827 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

@vuppala I'm using Vivado 2014.4  and iMPACT only install with ISE package, so I didn't check with iMPACT, but I did check with Hardware Manager and no hardware was recognized by Vivado.

 

I think I'll install iMPACT for checking USB-JTAG connection.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
9,817 Views
Registered: ‎04-16-2012

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Hello @sonnguyen512 

 

Did you get any error message when trying to connect the board using Vivado HW manager? Can you share the log file here?

Also try connecting the board using another cable.

 

Thanks,

Vinay

--------------------------------------------------------------------------------------------
Have you tried typing your question in Google? If not you should before posting. Also, MARK this is as an answer in case it helped resolve your query/issue.Give kudos to the post that helped you to find the solution.
0 Kudos
Highlighted
Visitor
Visitor
9,812 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Hello vuppala,

 

The cause I think it belongs to USB driver

I follow these step on this link http://www.xilinx.com/support/answers/54012.html#cable reinstall the driver then I ran both iMPACT and ChipScope Pro Analyzer, finally I can see my device.

 

iMPACT:

jtag_7.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ChipScope Pro Analyzer:

jtag_7.png

 

But when I came back to Vivado and opened HW Manager, I still got the connection error

jtag_6.png

 

I installed both ISE 14.7 and Vivado 2014.4 on my computer and I think the cable driver for both version are different between each other. I prefer Vivado for designing and coding, so I want to fix the issue with XMD on Vivado SDK.

 

 

0 Kudos
Visitor
Visitor
16,372 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Hello all,

 

Finally problem solved.

 

The main reason for this issue is Cable Driver.

I installed both ISE 14.7 and Vivado 2014.4, and each of these software has its own cable driver and no compatible with each other.

In my case, I only install Cable Driver from ISE but I used XMD on Vivado SDK, that why Windows still recognized cable but Vivado couldn't use JTAG and when I tested with iMPACT or ChipScope Pro Analyzer, these software can connect with ZC702 because these software included in ISE and use driver from ISE package only.

 

For now, because I want to use XMD on Vivado, so I just need install Cable Driver on Vivado package and then it worked.

And here it's my result for Hello Word

jtag_8.png 

 

Thank you guys, for your help.

 

Best,

Son

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
9,799 Views
Registered: ‎03-30-2015

Re: ZC702 - Error when programming by USB JTAG

Jump to solution

Just want to provide some more info if someone have same problem with me:

When I tried to loading .elf file to ARM core I got an issue

XMD% dow D:/FPGA-Zynq-7000/Projects/Lesson_9_Xilinx_SDK/sdk/Hello_world/Debug/Hello_world.elf
Processor Reset .... DONE
Downloading Program -- D:/FPGA-Zynq-7000/Projects/Lesson_9_Xilinx_SDK/sdk/Hello_world/Debug/Hello_world.elf
section, .text: 0x00100000-0x0010193b
section, .init: 0x0010193c-0x00101953
section, .fini: 0x00101954-0x0010196b
section, .rodata: 0x0010196c-0x00101983
section, .data: 0x00101988-0x00101dfb
section, .eh_frame: 0x00101dfc-0x00101dff
section, .mmu_tbl: 0x00104000-0x00107fff
section, .init_array: 0x00108000-0x00108007
section, .fini_array: 0x00108008-0x0010800b
section, .bss: 0x0010800c-0x00108027
section, .heap: 0x00108028-0x0010a02f
section, .stack: 0x0010a030-0x0010d82f
Download Progress.ERROR: Failed to download ELF file


Cannot access DDR: the controller is held in reset

 

I researched around and found the solution is:

source D:/FPGA-Zynq-7000/Projects/Lesson_9_Xilinx_SDK/sdk/design_1_wrapper_hw_platform_0/ps7_init.tcl

(change the path to your ps7_init.tcl file)

After that type

ps7_init

 

Then come back with dow command, it'll work.

0 Kudos