When using the MPMC ECC example code on a PowerPC 405 design, I receive the following errors:
ecc_example/src/mpmc_ecc_example.c: In function SetupInterruptSystem:
ecc_example/src/mpmc_ecc_example.c:318: error: InterruptController undeclared (first use in this function)
ecc_example/src/mpmc_ecc_example.c:318: error: (Each undeclared identifier is reported only once
ecc_example/src/mpmc_ecc_example.c:318: error: for each function it appears in.)
How do I resolve this issue?
There is a typo in the following file:
$Xilinx_EDK/sw/XilinxProcessorIPLib/drivers/mpmc_v2_00_a/examples/mpmc_ecc_example.c
Starting at line 316 the following code:
XExc_RegisterHandler(XEXC_ID_NON_CRITICAL_INT,
(XExceptionHandler)XIntc_InterruptHandler,
&InterruptController);
should be modified as follows:
XExc_RegisterHandler(XEXC_ID_NON_CRITICAL_INT,
(XExceptionHandler)XIntc_InterruptHandler,
&Intc);
This issue is fixed starting with the newest driver code version, starting with EDK 10.1 Service Pack 1.