Skip to main content
PTiha
Associate III
February 24, 2020
Question

CubeMX generated project -> Ethernet link change detection not working

  • February 24, 2020
  • 0 replies
  • 439 views

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!

This topic has been closed for replies.