Content originally posted in LPCWare by wellsk on Wed Jun 13 08:17:43 MST 2012
It looks like you are using FreeRTOS and the failure occurred on the input path. I'd keep the TX pbuf patch in, but it looks like I might have another problem with the example code itself using the wrong input path for an RTOS. (Sorry :()
When used with FreeRTOS, the 'ethernet_input' function should be replaced with the 'tcpip_input' function. This is correct for the LPC18xx/43xx examples, but it seems I got a little to comfortable with cut-and-paste.
In the example code, can you make the change indicated below and give it a try?
<code>
/* Add netif interface for lpc17xx_8x */
memset(lpc_netif, 0, sizeof(lpc_netif));
// if (!netif_add(&lpc_netif, &ipaddr, &netmask, &gw, NULL, lpc_enetif_init, ethernet_input))
if (!netif_add(&lpc_netif, &ipaddr, &netmask, &gw, NULL, lpc_enetif_init, tcpip_input))
LWIP_ASSERT("Net interface failed to initialize\r\n", 0);
</code>