STM32F207VC - Ethernet with LwIP(2.0.3) works after flashing but not any more after power supply is set off and on again
Hello everyone,
I am experiencing a strange issue with the Ethernet interface on my STM32F207VC.
Problem Description
After programming the firmware using STM32CubeProgrammer v2.12.0 with an ST-LINK debugger, the application works perfectly:
- The board responds to ping.
- My PC client communicates successfully with the TCP server running on the STM32.
- Ethernet communication is fully functional.
However, after performing a power cycle, the Ethernet stops working:
- The board no longer responds to ping.
- TCP communication fails.
- The application itself appears to be running, but the Ethernet interface is non-functional.
Hardware Details
- MCU: STM32F207VC
- Ethernet interface: RMII
- Default STM32 RMII pins are used.
- Programming/Debugging: SWD (ST-LINK)
- The board has an external 8 MHz crystal, but in STM32CubeMX the MCU is configured to use the internal HSI clock (HSE is not enabled).
- The Ethernet PHY has its own 25 MHz crystal and provides the required 50 MHz RMII REF_CLK to the STM32.
The exact same firmware works immediately after flashing, so the application appears to be correct. The issue only occurs after removing and reapplying power.
Has anyone encountered a similar issue or have any suggestions on what I should investigate?
Any help would be greatly appreciated. Thank you!
