Content originally posted in LPCWare by lxfriend on Thu Apr 25 06:41:44 MST 2013Hi all,
I am wondeing if you would like to tell us which OS + diver and stack you are talking about.
I currently have a problem with my FreeRTOS driver for the ethernet chip on the 4350.The driver is working fine in polling mode but I can't use it interupt driven. When the first interrupt comes in it seems I don't get it acknowledged the correct way (the isr is called permanently).
I enabled the Interrupt using CMSIS:
NVIC_SetPrioity(ETHERNET_IRQn,configKERNEL_INTERRUPT_PRIORITY)
NVIC_ClearPendingIRQ(ETHERNET_IRQn)
NVIC_EnableIRQ(ETHERNET_IRQn)
LPC_ETHERNET->DMA_INT_EN = DMA_INT_NOR_SUM | DMA_INT_RECEIVE ;
ISR conent:
uint32_t status = LPC_ETHERNET->DMA_STAT;
LPC_ETHERNET->DMA_STAT= status & 0xFFFF;
--> trigger rx packet processing
Does somebody have an idea whats wrong or is there a sample code availble for the ethernet controller ?
best regards,