cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX generated project -> Ethernet link change detection not working

PTiha
Senior

Hi!

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.

Can anyone help me?

Thanks!

PS.: Sorry my weak english!

0 REPLIES 0