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 claudiug
Observer
475 Views
Registered: ‎05-07-2018

xv_hdmic.h C++ bug

Jump to solution

Hello,

This is not really a question but a bug I found in one of the BSP drivers for Zynq7000 for HDMI IP in XSDK2018.3. 

The problem:

-cannot build C++ application when HDMIRX_SS is instantiated in hw and software would like to use its driver.

-the root issue: missing matching #ifdef __cplusplus at end of xv_hdmic.h file

Xilinx/SDK/2018.3/data/embeddedsw/XilinxProcessorIPLib/drivers/v_hdmi_common_v1_1/src/xv_hdmic.h

Solution is trivial and hopefully fix is added in newer versions. Make sure at end of file we read:

-------------------------------
XVidC_AspectRatio XV_HdmiC_IFAspectRatio_To_XVidC(XHdmiC_PicAspectRatio AR);
#ifdef __cplusplus
}
#endif
#endif /* XHDMIC_H_ */
/** @} */
-------------------------------

Notice that since XSDK regenerates BSP during project build any local changes will be overwritten. Hence, the change needs to be made in Xilinx installation directory.

 

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
413 Views
Registered: ‎10-04-2017

Re: xv_hdmic.h C++ bug

Jump to solution

Hi @claudiug,

 

Thank you for bringing this to our attention. I have filed a Change Request to have the code updated.

The latest drivers can always be found in our GIT hub.

 

Here is a link to the current version of the file:

https://github.com/Xilinx/embeddedsw/blob/fb647e6b4c00f5154eba52a88b948195b6f1dc2b/XilinxProcessorIPLib/drivers/v_hdmi_common/src/xv_hdmic.h

 

Regards,

Sam

 

Don't forget to reply, kudo, and accept as solution.

Xilinx Video Design Hub
2 Replies
Moderator
Moderator
414 Views
Registered: ‎10-04-2017

Re: xv_hdmic.h C++ bug

Jump to solution

Hi @claudiug,

 

Thank you for bringing this to our attention. I have filed a Change Request to have the code updated.

The latest drivers can always be found in our GIT hub.

 

Here is a link to the current version of the file:

https://github.com/Xilinx/embeddedsw/blob/fb647e6b4c00f5154eba52a88b948195b6f1dc2b/XilinxProcessorIPLib/drivers/v_hdmi_common/src/xv_hdmic.h

 

Regards,

Sam

 

Don't forget to reply, kudo, and accept as solution.

Xilinx Video Design Hub
Moderator
Moderator
281 Views
Registered: ‎10-04-2017

Re: xv_hdmic.h C++ bug

Jump to solution

Hi @claudiug,

 

In the latest and web version of the drivers this has been fixed.

 

Thanks,

Sam

Don't forget to reply, kudo, and accept as solution.

Xilinx Video Design Hub