Monday, 10 September 2012

Xilinx SDK 14.2 xvtc.h:622:1: error: expected identifier or '(' before '}' token


Xilinx SDK 14.2, when trying to use Xilinx xvtc.h the Video Timing COntroller


"Compiling uartps"
"Compiling video timing controller"
In file included from xvtc.c:73:0:
xvtc.h:622:1: error: expected identifier or '(' before '}' token
In file included from xvtc_g.c:16:0:
xvtc.h:622:1: error: expected identifier or '(' before '}' token
In file included from xvtc_intr.c:70:0:
xvtc.h:622:1: error: expected identifier or '(' before '}' token
In file included from xvtc_sinit.c:72:0:
xvtc.h:622:1: error: expected identifier or '(' before '}' token
make[1]: *** [libs] Error 1


"Compiling cpu_cortexa9"
ERROR:EDK:369 -  make failed for target "libs"
ERROR:EDK:3418 - Error(s) while running make.
make: *** [ps7_cortexa9_0/lib/libxil.a] Error 2
make: Target `all' not remade because of errors.




Line 662 in xvtc.h is here:
#define XVtc_IntrSetLockPolarity(InstancePtr, LockPolarity) \
{ \
// THIS FUNCTION IS NOT NEEDED.
// THERE IS NO LOCK POLARITY.
// INCLUDED TO ALLOW OLDER SW TO COMPILE.
}

The comment lines to not have a trailing \, so the macro stops.

Solution should be to add the trailing '\'
This needs to be done in the "master" file, rather than the file in the project directory, which is auto-generated and deleted on a project clean.
C:\Xilinx\14.2\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\vtc_v2_00_a\src


#define XVtc_IntrSetLockPolarity(InstancePtr, LockPolarity) \
{ \
// THIS FUNCTION IS NOT NEEDED. \
// THERE IS NO LOCK POLARITY.\
// INCLUDED TO ALLOW OLDER SW TO COMPILE.\
}

No comments:

Post a Comment