Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHello Friends
i zero down the problem and found that if i disable the VIC initialization it keep on pinging without any problem.
// Initialize the LOAD_DATA PIO.
static void init_load_data()
{
// Recast the edge_capture pointer to match the alt_irq_register() function prototype.
void* edge_capture_ptr = (void*) &edge_capture;
// Enable LOAD interrupts.
IOWR_ALTERA_AVALON_PIO_IRQ_MASK(LOAD_DATA_BASE, 0x01);
// Reset the edge capture register.
IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_DATA_BASE, 0x1);
// Register the ISR.
# ifdef ALT_ENHANCED_INTERRUPT_API_PRESENT
alt_ic_isr_register(LOAD_DATA_IRQ_INTERRUPT_CONTROLLER_ID,LOAD_DATA_IRQ,handle_load_interrupts,edge_capture_ptr, 0x0);
# else
alt_irq_register( LOAD_DATA_IRQ,edge_capture_ptr,handle_load_interrupts );
# endif
}
and in my code if i initilize the above code (below) it wont respond to ping request any more.
//---VECTORED INTERRUPT CONTROLLER-------------------------------------------------
printf("\n\tInitillize the Enhanced Interrupt..");
# ifdef LOAD_DATA_BASE
init_load_data();
# endif
even i have sucessfully used VIC in my other project and having same ESDK board but i hvan't face such kind of problem over there