AR# 39489

|

12.3 EDK - lwIP Echo Server example does not work with AXI Ethernet Lite systems

描述

Why does the lwIP Echo Server example provided in SDK not work with my AXI Ethernet Lite system?

解决方案


There is a typo in the provided code that results in the use of an improper name of the Ethernet Lite core.

To work around the problem, edit the local copy of the application in the workspace.

platform.c function platform_setup_interrupts() is modified

From:

#ifdef XPAR_ETHERNET_MAC_IP2INTC_IRPT_MASK
/* Enable timer and EMAC interrupts in the interrupt controller */
XIntc_EnableIntr(XPAR_INTC_0_BASEADDR,
#ifdef __MICROBLAZE__
PLATFORM_TIMER_INTERRUPT_MASK |
#endif
XPAR_ETHERNET_MAC_IP2INTC_IRPT_MASK);
#endif

To:

#ifdef __MICROBLAZE__
/* Enable timer interrupts in the interrupt controller */
XIntc_Enable(intcp, PLATFORM_TIMER_INTERRUPT_INTR);
#endif

#ifdef XPAR_INTC_0_EMACLITE_0_VEC_ID
/* Enable EMAC Lite interrupts in the interrupt controller */
XIntc_Enable(intcp, XPAR_INTC_0_EMACLITE_0_VEC_ID);
#endif
AR# 39489
日期 12/06/2010
状态 Active
Type 综合文章
Tools
IP
People Also Viewed