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: 
Highlighted
Observer kanojojo
Observer
2,056 Views
Registered: ‎03-01-2018

Standalone DisplayPort on ZCU102

Jump to solution

Hello everyone:

       I'm trying to implement a standalone DisplayPort demo on ZCU102. (Just enabled DP in ZYNQ MPSOC without any other HW IP)

 

       I wanted to use the drivers in "\data\embeddedsw\XilinxProcessorIPLib\drivers" , but I don't know which one or ones to use:

      \avbuf_v2_0

      \dp_v6_0

      \dpdma_v1_0

      \dppsu_v1_1

      \dptxss_v5_0

 

      If I want to show graphics on screen through DP with no OS, which folders could help me with that? Or which is the Main() Func to be set?  Is there any modification I need to make?

 

 

Best Regards.

KJ

2018/09/25

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,890 Views
Registered: ‎11-09-2015

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @kanojojo,

 

I was able to get the output working with the DPDMA example. Here is the steps I have used:

  1. In SDK create a BSP for your platform
  2. Right click on the BSP and go to the BSP settings
  3. In the driver page, search for the component psu_dp and change the driver to dppsu
    DP.PNG
  4. In the system.mss file under the BSP, find the psu_dma and click Import example
    DP2.PNG
  5. Import the example and run the application

Hope that helps,

 

Regards,

 

 


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

View solution in original post

8 Replies
Moderator
Moderator
2,018 Views
Registered: ‎11-09-2015

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @kanojojo,

 

I believe that the DPDMA should have the working example design for the DP controller on ZynqMP.


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

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @kanojojo,

 

Do you have any updates on this?

 

If your question is answered or your issue is solved, please kindly mark the response which helped as solution (click on "Accept as solution" button below the reply)

If this is not solved/answered, please reply in the topic giving more information on your current status.

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Observer kanojojo
Observer
1,923 Views
Registered: ‎03-01-2018

Re: Standalone DisplayPort on ZCU102

Jump to solution

Dear @florentw,


Really appraciate for your help on this. Here I got 2 problems:

I implement the example design in \dpdma_v1_0 by following steps:


add      /dpdma//xdpdma.c
add      /dpdma//xdpdma.h
add      /dpdma//xdpdma_intr.c
add      /dpdma//xdpdma_sinit.c
add      /dpdma//xdpdma_hw.h
add      /dpdma//xdpdma_video_example.c
add      /dpdma//xdpdma_video_example.h
add      /dpdma//xdppsu_interrupt.c

modify "xdpdma_video_example.c":line60 :  

             #include "dpdma_video_example.h" --> #include  xdpdma_video_example.h"
modify "xdppsu_interrupt.c": line55 :

             #include "dpdma_video_example.h" --> #include "xdpdma_video_example.h"

 

add       /dppsu//xdppsu.h
add      /dppsu//xdppsu.c
add      /dppsu//xdppsu_hw.h
add      /dppsu//xdppsu_sinit.c
add      /dppsu//xdppsu_serdes.h
add      /dppsu//xdppsu_serdes.c
add      /dppsu//xdppsu_spm.c
add      /dppsu//xdppsu_intr.c
modify "xdppsu_sinit.c":line63:

             XDpPsu_ConfigTable -->XDpPsu_Config XDpPsu_ConfigTable[XDPPSU_NUM_INSTANCES]= {{XPAR_PSU_DP_DEVICE_ID,XPAR_PSU_DP_BASEADDR}};

modify "xdppsu_spm.c":line473: 

              nearbyint --> (int)

 

Then I Debug the project in SDK and got the "Successfully ran DPDMA Video Example Test\r\n" which indicates the main func has been successfully run, however no pictures showed on screen. Is there something I missed?

#####################################################################################

I also implement the example design in \dppsu_v1_1 by adding the src file into new projects. xdppsu_poll_example.c is chose to be main func. And I just commented these functions which should be modified by user:

/* Do platform initialization here. This is hardware system specific -
* it is up to the user to implement this function. */
//DpPsu_PlatformInit();

/* Configure video stream source or generator here. These function need
* to be implemented in order for video to be displayed and is hardware
* system specific. It is up to the user to implement these
* functions. These functions are available in AVBuf driver */

//DpPsu_StreamSrcSetup(InstancePtr);
//DpPsu_StreamSrcConfigure(InstancePtr);
//DpPsu_StreamSrcSync(InstancePtr);

 

When Debugging, it stuck in Reading interrupt registers and always got 0s while I pluged/unpluged the DP cable to the screen(Dell U2417H).

/* Read interrupt registers. */
InterruptSignalState = XDpPsu_ReadReg(InstancePtr->Config.BaseAddr, XDPPSU_INTERRUPT_SIG_STATE);
InterruptStatus = XDpPsu_ReadReg(InstancePtr->Config.BaseAddr, XDPPSU_INTR_STATUS);

/* Check for HPD events. */
HpdState = InterruptSignalState & XDPPSU_INTERRUPT_SIG_STATE_HPD_STATE_MASK;
HpdEvent = InterruptStatus & XDPPSU_INTR_HPD_EVENT_MASK;
HpdPulseDetected = InterruptStatus & XDPPSU_INTR_HPD_PULSE_DETECTED_MASK;

 

Could you help me on these 2 situations?

 

Best Regards.

KJ

2018/10/09

 

 

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

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @kanojojo,

 

I was able to get the output working with the DPDMA example. Here is the steps I have used:

  1. In SDK create a BSP for your platform
  2. Right click on the BSP and go to the BSP settings
  3. In the driver page, search for the component psu_dp and change the driver to dppsu
    DP.PNG
  4. In the system.mss file under the BSP, find the psu_dma and click Import example
    DP2.PNG
  5. Import the example and run the application

Hope that helps,

 

Regards,

 

 


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

View solution in original post

Observer kanojojo
Observer
1,874 Views
Registered: ‎03-01-2018

Re: Standalone DisplayPort on ZCU102

Jump to solution

Hi @florentw,

 

Thank you very much for the detailed illustration on this issue.

 

Maybe it's not the proper version of Vivado & SDK (2017.4) that I'm using.  The version of DPDMA is 1.0 only and I can't find "import examples" following the "psu_dma".

微信图片_20181011112520.png

微信图片_20181011112524.png 

 

I will implement the example and post results once I finish to install 2018.2. 

 

PS:  In your last reply, should there be the "dppsu" instead of "avbuf" since step-3 has changed the driver of psu_dp in the second picture?

 

Best Regards.

KJ

2018/10/11

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

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @kanojojo,

 

Yes in 2017.4, the example was not complete. Please use 2018.2.

 

I had avbuf in the mss file but i think the dp_psu was still correctly loaded (I had a compilation error with the default setting). It might only be that I forgot to update the mss file ( clean bsp) before taking the screenshot

 

 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Participant patcher33
Participant
1,838 Views
Registered: ‎02-01-2018

Re: Standalone DisplayPort on ZCU102

Jump to solution
Hi,

i'm using 2018.2 exactly in the same way as florantw described, but cannt get any picture. SW prints following:
DPDMA Generic Video Example Test
HPD event .......... ! Connected.
Lane count = 2
Link rate = 20

Starting Training...
! Training succeeded.
DONE!
.......... HPD event
Generating Overlay.....
Successfully ran DPDMA Video Example Test

The monitor is tested with the linux app on AVNET ultrazed.
Any Ideas what may be wrong with a standalone example?

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

Re: Standalone DisplayPort on ZCU102

Jump to solution

HI @patcher33,

 

Can you kindly create a new topic for your question:

go to the video board and then click new message

video.PNG

 

You can refer to the "Recommendations for creating a topic in the Video board" for putting as much detail as you can in your first topic.

 

You can use the title "2018.2 - DPDMA baremetal example design not working"

Please mention which monitor you are using. Also please detailed the steps you have used for the vivado design.

 

Then I will try to find some time to help you

 

Note that I am closing this topic for new replies as it is already solved.

 

Best Regards,


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