Hi all,
void main(void)
{
/* USER CODE BEGIN (3) */
......
_enable_IRQ();
_enable_FIQ();
drvStartTask(NULL);
.......
/* USER CODE END (3) */
}
where the drvStartTask() is a function that is used to initialize the ethernet protocol stack. In the same file i have also the EMACCore0RxIsr() and EMACCore0TxIsr() functions which in turn call the receive and transmit handlers respectively.
void EMACCore0RxIsr(void)
{
frame_received_handler();
}
void EMACCore0TxIsr(void)
{
frame_transmitted_handler();
}
As far as what i have understood, with IRQ or FIQ being set, upon receival of any ethernet packet, an interrupt will be generated, which calls the interrupt handler function. This happens with the lwIP demo project provided by the TI.
I did use the same configuration(TMS570 include and source files) for my driver, and it turns out that the interrupts are not being generated. I did check the CPSR registers and IRQ and FIQ were set to 0(enabled) and even in the VIM registers TxISR and RxISR were set.
Apart from enable IRQ and EMACCore0Tx and Rx functions is there anything else i need to set for interrupts to get generated upon frame receival ?
Please help
Thanks and regards
Peter