how to connect Kria kv260 to MATLAB using JTAG for data capture IP

21 visualizaciones (últimos 30 días)
mohamed
mohamed el 10 de Ag. de 2025
Comentada: Heman P el 23 de Sept. de 2025
hi,
I'm try to debug a developed communication system design on FPGA by using data capture IP added to existing HDL code , when integrate the data capture IP on zybo z20 board , it works and connected to MATLAB and I can read data from FPGA.
now , I'm try to imgrate the design to kria Kv260 , I faced some problem to run HDL design , but I solve this problems , but the last one is to connect to MATLAB, and when I use same approach for zybo , I got this error
Error using fpgadebug_mex
Failed to open Digilent JTAG cable: Did not find any Digilent(R) JTAG cable.
Failed to open FTDI JTAG cable: Failed to perform JTAG write operation
Error in hdlverifier.FPGADataReader/setupImpl
I can't understand why MATLAB can't read JTAG when conneting to kria board , I try many solutions by adding JTAG name and type and ckeck that if Kria connected to PC or not and it connected through JTAG in vivado , but still can't solve this issue and I can't understand from where this problem come.
can any one help my to solve this issue ?
thank you

Respuestas (2)

Heman P
Heman P el 11 de Ag. de 2025
Hi Mohamed,
It has been confirmed that the JTAG port on the Kria KV260 board utilizes an FTDI chipset.
Based on the error provided, the application has successfully loaded the required FTDI library and configured the JTAG clock without any issues. The error message, "Failed to open FTDI JTAG cable: Failed to perform JTAG write operation," occurs specifically when the application attempts to retrieve the ID code from the hardware.
A likely cause for this failure is that another process such as Vivado, the Hardware Server, or a similar tool may already be accessing the FTDI device, preventing access by your application.
Can you perform the following diagnostic steps:
  1. Please ensure that no other process is currently using the JTAG cable.
  2. Disconnect the JTAG cable and close all the MATLAB sessions.
  3. Re-connnect the JTAG cable to the device and verify the connection to the device using the Vivado HW manager tool.
If you are able to see the Kria KV260 device part number or device name via Vivado HW manager tool, confirms no issue with JTAG connection. Then, close the Vivado HW manager tool, re-open the MATLAB session and try to capture the data via data capture IP from MATLAB.
Thanks,
Heman, P
  2 comentarios
mohamed
mohamed el 18 de Ag. de 2025
Hi Heman,
Thank you for your fast respose
I followed your suggested steps, but when attempting to reconnect and verify the JTAG connection, I encountered the following error:
Error using fpgadebug_mex Failed to open Digilent JTAG cable: Did not find any Digilent(R) JTAG cable. Failed to open FTDI JTAG cable: Found no device in the JTAG chain. There must be at least one device (FPGA) on the JTAG chain. Make sure that your FPGA board is powered on. Error in hdlverifier.FPGADataReader/setupImpl
For further troubleshooting, I’d like to clarify:
  1. Direct JTAG Connection: If I use the JTAG pins directly with a Digilent cable instead of the onboard FTDI interface, could this resolve the issue? If so, are there any specific configurations or steps required?
  2. FTDI Workaround: What additional measures should I take to ensure the FTDI interface works correctly? For example, are there driver conflicts, permission issues , or Vivado processes that might still interfere?
To provide more context:
  • The board is powered on, and the JTAG chain is physically connected.
  • Vivado Hardware Manager can detect the device when no other tools are running.
I appreciate your guidance on how to proceed. Thank you for your support!
Heman P
Heman P el 23 de Sept. de 2025
Hi Mohamed,
After analyzing the error message you shared here, the software is able to load the required JTAG library and it seems like still some other process like Xilinx hw_server, Vivado Hardware Manager, Digilent Adept, or other vendor tools is locking the cable.
If you make sure no other process is running at the background, can you install the latest FTDI drivers on both host machine and SPKG HSP installatin path as explained below:
Unzip the contents to this HSP installation path:
C:\ProgramData\MATLAB\SupportPackages\<MATLAB_Version>\3P.instrset\ftcjtag.instrset\win64
Thanks,
Heman, P

Iniciar sesión para comentar.


Dhanushree
Dhanushree el 18 de Ag. de 2025

t=0:0.5:24; % Time in hours

tempA = 25+ 5*sin(pi*t/12);

tempB = 22+ 4*sin(pi*t/10+ pi/4);

plot(t, tempA, 'r', t, tempB, 'b--', 'LineWidth', 2);

xlabel('Time (hours)');

ylabel('Temperature (°C)');

legend('Room A', 'Room B');

title('Temperature Comparison');

hold on;

  1 comentario
Heman P
Heman P el 23 de Sept. de 2025
Hi Dhanushree,
Your answer is not related to the question mentioned in this thread. Hope you answered in the wrong channel. Can you place verify and remove it if possible?
Thanks,
Heman, P

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by