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# 30132

10.1 EDK, MPMC v4.00.a - mpmc_ecc_example.c:318: error: InterruptController undeclared

Description

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?

Solution

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.

AR# 30132
Date Created 02/22/2008
Last Updated 12/15/2012
Status Active
Type General Article