LWIP library - possible RX pbuf bug?

07 Feb 2013

I am trying to get a DM9161A PHY to work with a LPC1768 board using the mbed libraries. I already created code for the DM9161 and put it into the lwip library (replaced lpc_phy_dp83848.c file with DM9161 file - see http://mbed.org/users/frankvnk/code/lpc_phy_DM9161A/).

Since ethernet communication was not working properly (i get Packet dropped with errors (0xffffffff)) , i started searching for a solution on NXP and lwip forums and came across a topic mentioning a non-NULL pointer is returned on a RX packet failure (http://www.lpcware.com/content/forum/lwip-sample-fail#comment-1785), possibly resulting in a stack crash. For now, the mentioned link is my only source since the LWIP_LPC GIT repo is offline (http://sw.lpcware.com/).

Should this fix also be applied to the mbed lwip library? My DM9161 application works differently when i implement this fix, however, this does not fix the ethernet communication problem.

Any ideas on both issues (pbuf and DM9161)?