AR# 53179


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


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?


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:


Change line 367 from:

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


 *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
日期 03/24/2015
状态 Active
Type 综合文章
People Also Viewed