AR# 39489: 12.3 EDK - lwIP Echo Server example does not work with AXI Ethernet Lite systems
AR# 39489
|
12.3 EDK - lwIP Echo Server のサンプルが AXI Ethernet Lite システムで機能しない
説明
SDK で提供されている lwIP Echo Server サンプルが AXI Ethernet Lite システムで機能しないのはなぜですか。
ソリューション
提供されているコードにミスタイプがあり、Ethernet Lite コアの名前が間違って使用されています。
この問題を回避するには、ワークスペースでアプリケーションのローカル コピーを編集します。
platform.c function platform_setup_interrupts() is modified
変更前 :
#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
変更後 :
#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