Lwip Issue with STM32F407G-DISC1 + STM32F4DIS-BB
I am trying to integrate latest STM32F407G-DISC1 (earlier called as STM32F4-Discovery board) with STM32F4DIS-BB. I am unable to make the Ethernet working (simple TCP server or client application). Not working meaning no ping could be made and Ethernet connection could be made.
Test Setup:
a) My project is build using STM32CUBEMX. I have been trying to debug for the past 5 days with no luck.
b) Cross over cable is used between PC and BB board
c) Lwip enabled (without RTOS)
1) Receive Frame Error: The receive call back is not triggering and HAL_ETH_GetReceivedFrame is through HAL_ERROR all the time.
2) PHY ADDRESS: As I understand from the internet, there seems to be some different with PHY address of the baseboard and expansion board.
STMCUBE shows the PHY as LAN_8742A_PHY_ADDRESS. As I understand from BB examples, the PHY used to be LAN_8720. Will it cause any bug?
3) ETH_RST_PIN: Also ETH_RST_PIN is not configured by STMCUBE, will that cause any issues? Whereas all your example files have this ETH_RST pin connected and set to PE2 (pulled up).
When we try to forcefully create a new ETH_RST (PE2 with no pull or pull up), the lights (green and amber) on the Ethernet connector, doesn’t lit up.
When we reset this pin using STMcube, we could see the lights coming up, but previous problem still persists.
4) MAC ADDRESS: Mac Address generated by STMCUBE is 00:80:E1:00:00 whereas the MAC address used in STM32F4DIS-BB examples were 02:00:00:00:00. Will it cause any issues? I hope not. Changing this MAC address did not effected the outcome.
5) PING request: Inspite of ICMP Broadcast ping enabled, I could not ping the device with static IP. Destination host unreachable or request timed out error appearing.
I would request you to help me with the right set of information for or working example code.