STM32F767ZI Nucleo sometimes not receiving ethernet packets after debugger reset
I built a custom application based on the LwIP_HTTP_Server_Netconn_RTOS example in the CubeMX SDK 1.17.4. RX and TX work after power-up and in 50% of cases also after a debugger reset. However, in 50% of cases, RX doesn't work at all. The symptoms in the error case:
- the yellow LED flashes once when booting, then it's constantly on
- The link is detected as "up"
- The MMCTGFCR register shows that some packets have been successfully sent (my application sends some packets after boot)
- No packet is received at all
- replugging the network cable usually makes everything work, but not always
I restart the debugger multiple times until it works, but the whole situation is annoying. I wonder what the problem could be? Since I use the initialization code in the example, only the timing is different. Is there any timing dependency between phy and eth driver? Or can I rule out the phy as a potential problem here?
I found this thread with a maybe similar problem, but the workaround proposed there seems not relevant as the eth driver code has been rewritten in the meantime.
Thanks
