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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor srojas
Visitor
138 Views
Registered: ‎05-20-2019

lwip interrupt setup

Hello everybody

I'm trying to get lwIP v2.0.2 echo server working in the ZYNQ 7000.

Running the example design works fine without any issues on my plattform.

My question concerns the setup and initialization of the GIC. In the example design, the GIC is set up using the low-level drivers ( see function platform_setup_interrupts(void) )

#define INTC_DEVICE_ID      XPAR_SCUGIC_SINGLE_DEVICE_ID
Xil_ExceptionInit();
XScuGic_DeviceInitialize(INTC_DEVICE_ID);
/*
* Connect the interrupt controller interrupt handler to the hardware
* interrupt handling logic in the processor.
*/
Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_IRQ_INT,
(Xil_ExceptionHandler)XScuGic_DeviceInterruptHandler,
(void *)INTC_DEVICE_ID);

 

I want to setup the GIC using the instance pointer as below

XScuGic InterruptController;  /* Instance of the Interrupt Controller */
XScuGic_Config *GicConfig;    /* The configuration parameters of the controller */

// Look up the configuration information for the GIC
GicConfig = XScuGic_LookupConfig(INTC_DEVICE_ID);

// Initialize the GIC using the configuration information
XScuGic_CfgInitialize(&InterruptController, GicConfig, \
		GicConfig->CpuBaseAddress);
// Connect the interrupt controller interrupt handler to the hardware // interrupt handling logic in the processor. Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT, \ (Xil_ExceptionHandler)XScuGic_DeviceInterruptHandler, \ &InterruptController);

 

In the first case, when using XScuGic_DeviceInitialize the example works perfect. However when using XScuGic_CfgInitialize the lwIP example does not work anymore and it hangs out.

-----lwIP TCP echo server ------
TCP packets sent to port 6001 will be echoed back
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
autonegotiation complete
Waiting for Link to be up; Polling for SGMII core Reg
link speed for phy address 0: 100

 

Any ideas on what might be happenning? I would appreciate your toughts.

Thanks

 

0 Kudos