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!

AR# 53179

14.3 - XPS TFT IP - SDK BSP fail compilation for hardware containing the XPS TFT Controller IP

Description

When exporting XPS designs containing the XPS TFT (Thin Film Transistor) Controller IP to SDK, and creating a BSP, the below error is shown below in the SDK console:

"Compiling tft"
xtft.c: In function 'XTft_GetPixel':
xtft.c:1082:0: error: unterminated argument list invoking macro "Xil_In32"
xtft.c:367:14: error: 'Xil_In32' undeclared (first use in this function)
xtft.c:367:14: note: each undeclared identifier is reported only once for each function it appears in
xtft.c:367:2: error: expected ';' at end of input
xtft.c:367:2: error: expected declaration or statement at end of input
make[1]: *** [libs] Error 1

How can I fix this?

Solution

There are known issues with the driver code for the TFT IP that will need to be fixed in the EDK install directory.

To fix this, go to line 367 of the xtft.c:

<XILINX_EDK>\sw\XilinxProcessorIPLib\drivers\tft_v3_01_a\src\xtft.c

Change line 367 from:

 *PixelVal = Xil_In32(InstancePtr->TftConfig.VideoMemBaseAddr +
    (4 * (RowVal * XTFT_DISPLAY_BUFFER_WIDTH + ColVal));

To:

 *PixelVal = Xil_In32(InstancePtr->TftConfig.VideoMemBaseAddr +
    (4 * (RowVal * XTFT_DISPLAY_BUFFER_WIDTH + ColVal)));

(Note the extra ) on the end.)

Once this is done, save the file and clean the SDK project to re-build the BSP.

The same solution is also viable for 14.2 projects. 

This issue is fixed in XPS 14.5.

AR# 53179
Date Created 11/30/2012
Last Updated 03/24/2015
Status Active
Type General Article
Tools
  • EDK - 14.2
  • EDK - 14.3
  • EDK - 14.4