UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor cheahmedtn
Visitor
2,018 Views
Registered: ‎03-18-2016

XAPP1178 link training issue

Jump to solution

Dear members,

We have been trying to run the xapp1178 (DisplayPort Reference Design) on a newly bought Kintex KC705 board using a custom FMC board that has a DP159 IC on it. We followed the pin assignment from the TB-FMCH-DP3 user guide. 

First we had a problem with the I2C communication with the DP159. As a solution we had to add a small delay after every write_csr function. Now we can read and write the DP159 register successfully. 

After the initialization of the system we plug the DisplayPort connector but the source couldn't detect the bandwidth. We did some bypass on a linux machine and now the sink is detected with the maximum resolution. Still the dpcd training stats is not successful (NOT_OK = 1).

We are now stuck in this phase and we don't know how to proceed. So we thought about asking some displayport expert in here.

 

Note : we used the ready to download bit file but we modified the C program as described.

 

We suspect the hardware (the custom board) but we couldn't really find out what is wrong.

 

Thank you.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Visitor cheahmedtn
Visitor
2,619 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

Sorry for not replying sooner.

 

So far we didn't find a solution that's why we suspect a faulty PCB. We are investigating the design from scratch and we hope we find the fault. 

I personally don't think it's a software or IP related issue but more likely a PCB fault.

 

Regards

0 Kudos
20 Replies
Moderator
Moderator
2,019 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

We do not recommend to use the xapp1178 for new designs. You should use the example design for the DP subsystem IP integrated in vivado. Check the PG199 chapter 5 for information on how you can generate it.

 

You should start with the baremetal application provided.

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Scholar watari
Scholar
1,989 Views
Registered: ‎06-16-2013

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn

 

I suggest to use new flow which @florentw already mentioned.

 

Also I suggest to make sure SI on your custom FMC and to use stable sink source (ex. Programmable Digital Video Generator (*1) or stable video card. some video card have some issues.).

Of cause if you use video card on PC, I recommend to use latest driver, too.

 

*1)

http://www.astrodesign.co.jp/english/product/vg-876

 

Best regards,

Visitor cheahmedtn
Visitor
1,965 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @watari and @florentw

 

First of all thank you for your answers I really appreciate it.

One problem though ! we don't have a valid license for the displayport subsystem so we cannot really design with the IP yet. We wanted to test the custom made board with one of the available references design and after validating it we are willing to buy the license.

 

Thank you

0 Kudos
Moderator
Moderator
1,954 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

You can still use an HW evaluation license to generate the design with the DP subsystem. You will just have a timeout in the HW after few hours but it should be enough for tests.

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Scholar watari
Scholar
1,946 Views
Registered: ‎06-16-2013

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn

 

As @florentw already mentioned before, you can get an evaluation license on Xilinx license management site by yourself.

It only requests your account information, if you want to get an evaluation license without HDCP.

Would you try it ?

 

BTW, what kind of IC (DP retimer and redriver) do you implement on your custom board ?

These ICs should be implemented supported ICs by DP driver firmware.

 

Best regards,

0 Kudos
Visitor cheahmedtn
Visitor
1,930 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @watari and @florentw

 

I got the licence and I tried to use the example design but I keep getting this error 

ERROR: [Common 17-680] Path length exceeds 260-Byte maximum allowed by Windows

 

I think there is something wrong with the tcl files.


@watari wrote:

 

 

BTW, what kind of IC (DP retimer and redriver) do you implement on your custom board ?

These ICs should be implemented supported ICs by DP driver firmware.

 


I used the same IC in the TB-FMCH-DP3 (DP159)

Thank you

Best regards.

 

error.png
0 Kudos
Moderator
Moderator
1,924 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

This is a tool issue which creates a long path for the example project which exceeds the windows limit. There is a workaround:

1. Generate the example design on windows. It will fails but in the created directory there will be an "Imports" folder which includes the Tcl files to re-create the bd.
2. Get the Tcl corresponding to the design you want to build and modify it to shorten the name of the BD
3. Create a new project on a short path (directly under your drive) and with a short name (ex DP_1).
4. Source the Tcl script to recreate the BD
5. Create a HDL wrapper for the BD
6. Add the xdc file (which you will also find in the Imports directory)
7. Generate the bitstream

 

Sorry about this. The resolution of this issue is on-going

 

Regards,

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Moderator
Moderator
1,886 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Do you have any updates on this? Were you able to generate the example design? Is it working on your board?

 

Thanks,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor cheahmedtn
Visitor
1,880 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

I managed to generate the example design without any problem after following your steps. But the system is not working on our custom board. The computer recognizes the sink and all the supported resolutions but I think the training is not done.

The terminal halts when I plug a cable in so I guess something went wrong while training.

 

Any ideas about that ? I am really stuck 

 

 

Regards.

putty.jpg
0 Kudos
Moderator
Moderator
1,848 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Could you dump the register of the VPHY?

 

Thanks,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor cheahmedtn
Visitor
1,845 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

The console app is frozen therefore I cannot input anything to read/write the registers 

I tried to force a step in the debugger but the MicroBlaze is not responding.

 

Is there any other way to read the VPhy registers ?

 

Thanks

0 Kudos
Moderator
Moderator
1,843 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Not if the MB is hanging.

 

Could you try to do debug step by step and see where you could be hanging?

 

Also, in this case are you using the KC705 or your custom board?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor cheahmedtn
Visitor
1,827 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

I followed the code until I reached where the MB hangs.

 

It hangs while waiting for the PLL lock 

 

/* Wait for PLL lock */
while ((ReadBuf == 0) && (Counter <XDPRXSS_DP159_LOCK_WAIT)) 
 {
   XDpRxSs_Dp159Read(InstancePtr,XDPRXSS_DP159_IIC_SLAVE, 0x00, &ReadBuf);
   ReadBuf &= 0x40; /* Lock status. */
   Counter++;
    xil_printf("ctr = %d\n\r",Counter);
}

the counter reaches 1 then the MB hangs.

 

I am using the KC705 with a custom FMC board that contain the DP159 as displayport input (without output)

 

 

Regards.

0 Kudos
Moderator
Moderator
1,825 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

So you know that your issue is because the DP159 is not locking. Make sure you programmed it properly (can you do write->read back?)

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor cheahmedtn
Visitor
1,817 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

I tried to test the DP159 with a reading the values that were written during the config (XDpRxSs_Dp159Initialize). The MB hangs right after the first XDpRxSs_Dp159Read command. SO reading from the DP159 is causing the MB to hang.

 

Any suggestions ?

 

Thank you

regards.

0 Kudos
Moderator
Moderator
1,809 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Check that the I2C is correctly working. Can you see data?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Scholar watari
Scholar
1,799 Views
Registered: ‎06-16-2013

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn

 

This IP requests special mode on DP159.

So, even if DP159 on your custom board is little different, it malfunctions.

 

Could you make sure whether your DP159 IC supports Xilinx special mode or not ?

 

If DP159 on your custom board is same as Xilinx (Tokyo Electron Device) example PCB, could you make sure I2C protocol and SSC on DP signal, if possible ?

 

Best regards,

0 Kudos
Moderator
Moderator
1,716 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Do you have any updates on this? If the issue is solved, please share your solution for everybody and accept as solution.

 

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor cheahmedtn
Visitor
2,620 Views
Registered: ‎03-18-2016

Re: XAPP1178 link training issue

Jump to solution

Hi @florentw

 

Sorry for not replying sooner.

 

So far we didn't find a solution that's why we suspect a faulty PCB. We are investigating the design from scratch and we hope we find the fault. 

I personally don't think it's a software or IP related issue but more likely a PCB fault.

 

Regards

0 Kudos
Moderator
Moderator
1,058 Views
Registered: ‎11-09-2015

Re: XAPP1178 link training issue

Jump to solution

Hi @cheahmedtn,

 

Could kindly you mark your previous response as solution to close the topic?

If you have still an issue with the new PCB, feel free to open a new topic.

 

Regards,

 

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos