cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
6,070 Views
Registered: ‎06-08-2016

PL to PS Interrupt disabling Ethernet Echo lwIP example

I'm using an interrupt from the PL to the PS from my custom IP that indicates data is ready to be read. I used code provided by AR #56446 to configure the interrupt in the SDK code. I'm getting the interrupt from the PL just fine, however enabling this interrupt in the way that I'm doing it seems to disable the Ethernet Echo functionality. I've isolated the issue to the interrupt configuration code. When I disable InitializeInterruptSystem () the Echo functionality comes back. BSP is the standard package created by the SDK for the example lwIP Echo project. Can someone please tell me what I'm doing wrong here?
InitializeInterruptSystem  is as below:
int InitializeInterruptSystem ( deviceID ) {

int Status;

 

GicConfig = XScuGic_LookupConfig ( deviceID );

if ( NULL == GicConfig ) {

return XST_FAILURE;

}

Status = XScuGic_CfgInitialize ( &InterruptController, GicConfig, GicConfig->CpuBaseAddress);

if ( Status != XST_SUCCESS ) {

return XST_FAILURE;

}

 

Status = SetUpInterruptSystem ( &InterruptController);

if ( Status != XST_SUCCESS ) {

return XST_FAILURE;

}

 

Status = XScuGic_Connect ( &InterruptController,

XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR,

(Xil_ExceptionHandler)InterruptHandler,

NULL);

/* Status = XScuGic_Connect ( &InterruptController,

XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR,

(Xil_InterruptHandler)InterruptHandler,

NULL);*/

XScuGic_Enable (&InterruptController, XPAR_FABRIC_AXI_DMA_0_S2MM_INTROUT_INTR);

 

// Initialize exception table and register the interrupt controller handler with exception table

Xil_ExceptionInit();

Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT, (Xil_ExceptionHandler)XScuGic_InterruptHandler, &InterruptController);

 

// Enable non-critical exceptions

Xil_ExceptionEnable();

if ( Status != XST_SUCCESS ) {

return XST_FAILURE;

}

 

 

return XST_SUCCESS;

}

 

Thanks

Kavish

0 Kudos
1 Reply
Highlighted
Explorer
Explorer
6,065 Views
Registered: ‎04-05-2016

Re: PL to PS Interrupt disabling Ethernet Echo lwIP example

I think you are probably blowing away your GIC configuration with your DMA code, that was previously setup with the echo server. Take a look in the echo server code to see where the GIC is configured, and merge that code with what you are looking to do with your own code.
0 Kudos