CubeMX generated project -> Ethernet link change detection not working
I ask the question here too, maybe more people see it. Sorry for the duplicated topic!
I generated a basic LWIP project for NUCLEO-F429ZI board.
I implemented the void ethernetif_notify_conn_changed(struct netif *netif) -function in main.c.
LWIP_NETIF_STATUS_CALLBACK and LWIP_NETIF_LINK_CALLBACK are 1.
The "__weak void ethernetif_notify_conn_changed(struct netif *netif)" implementation in ethernetif.c are commented out.
When I start the project, I can ping the board. But when I disconnect and reconnect the ethernet cable, the link change not detected.
The "ethernetif_notify_conn_changed" function never executed.
Maybe I miss something important?
Can anyone help me?
Thanks!
