Trenz Electronic GmbH Support Forum

Trenz Electronic Products => UltraScale => Topic started by: msattine on January 08, 2020, 10:18:47 AM

Title: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: msattine on January 08, 2020, 10:18:47 AM
Hi, I am trying to connect to TEBF0808 starter kit JTAG interface for FPGA debug.


I opened a h/w server in host computer and tried connecting through hardware manager in vivado. USB from host is connected to J12 header. Vivado h/w manager is not detecting it.

Is this the right way? Or do I have to use PSJTAG header for ILA debug?
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: JH on January 08, 2020, 12:34:18 PM
Hi,
which clk did you connect to your ILA core? From PS? Did you initialise PS? As long as PS is not initialised, this clk not available. Bitfile do not initialise PS.
br
John
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: msattine on January 08, 2020, 12:42:15 PM
Hi John,
    I am running Petalinux with default build. I am with the impression that the PL initialization is taken care based on below observation(please correct me if I am wrong).

I have a small design in PL with AXI interface. I have two clocks going from PS to PL. I am able to read and write to the AXI registers with which I concluded that PL is initialized. I wrote a simple application using /dev/mem for this.

Regards,
Mohan.
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: JH on January 08, 2020, 01:42:10 PM
Hi,

petalinux can also control PS-PL clks. Did you use the second PS-PL CLK for ILA? Did you update your petalinux with the new HDF where the second PS-PL CLK is also enabled?

br
John
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: msattine on January 08, 2020, 01:57:12 PM
Hi John,
  Yes, I did update the hdf file.

The way I am doing it right now is below:
- I first open a serial console in host and reset the device and login through serial console (J12 used as UART)
- Then change the static IP settings through serial console
- Login through ssh from another prompt
- Close the serial console, now I am expecting it to be used as JTAG (Please let me know if I am wrong)
- Open h/w server in host PC and connect from h/w manager in vivado (running on another server)

Regards,
Mohan.
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: JH on January 08, 2020, 02:50:24 PM
Hi,

can you create a Boot.bin with simple barmetal hello world and FSBL. Did you see your ila core there?

We also disabled some kernel settings on or reference designs, which makes trouble with Xilinx debug core in the past. I don't know which module you use, so:
https://wiki.trenz-electronic.de/display/PD/TE0803+StarterKit#TE0803StarterKit-Kernel
https://wiki.trenz-electronic.de/display/PD/TE0807+StarterKit#TE0807StarterKit-Kernel
https://wiki.trenz-electronic.de/display/PD/TE0808+StarterKit#TE0808StarterKit-Kernel

--> it's the same kernel setup on all three module series.


PS: You can use JTAG and UART over serial console parallel. FTDI has to ports which are handled separately in WinOS. One is JTAG and the second one is uart.

br
John
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: msattine on January 09, 2020, 07:31:47 AM
Hi John,
         After some more debug, I realized that windows firewall is blocking the hw_server connection. I resolved this by disabling firewall for this application. Thanks for the help.

I am seeing another issue when using both UART and JTAG together. When I connect debugger the UART connection is lost. Same is the case when I use ethernet. Is this something that you observed earlier? What should I do to use both together?

Regards,
Mohan.
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: JH on January 09, 2020, 09:18:23 AM
Hi,
disable kernel setting for CPU CLK scaling. this caused this issue. See link in my last mail.
br
John
Title: Re: TEBF0808: FPGA ILA Debug through J12 (XMOD Header)
Post by: msattine on January 10, 2020, 06:59:31 AM
Hi John,
           It solved the issue. Thank you very much.

Regards,
Mohan.