STM32CubeMX LWIP not working
Ray,
I could finally solve the issue with my TCP IP connection.
In the new version of STM32F4-Discovery which is now known as STM32F407G-DISC1, it looks like PHY chip seems to be LAN_8742A instead of LAN_8720 as it was in earlier version.
STMCube selection of LAN_8742A “did not” set the right set of External PHY configuration parameters. For example, when we select ETH in STMCUBE for STM32F4-discovery board selection, the default selection of PHY was LAN_8742A_PHY and with PHY address as 1 and other values set accordingly.
With those values, the issue found was the HAL_ETH_GetReceivedFrame function always failed to pass through the following statement if(((heth->RxDesc->Status & ETH_DMARXDESC_OWN) == (uint32_t)RESET)) returning HAL_ERROR everytime.
When I had changed this PHY_ADDRESS to 0 and few other PHY parameters in accordance with 8742A registers, we could get the TCP communication working..
Thanks for your support and taking your time in digging and sharing out your old code
- Srinivasan