Skip to main content
Visitor II
January 26, 2023
Solved

Bug STM32F429ZI LWIP not work after link up/down

  • January 26, 2023
  • 1 reply
  • 745 views

STM32Cube FW_F4 V1.27.1

HAL ETH LWIP

file

ethernetif.c

 HAL_ETH_Start(&heth);

 line 880

 if(linkchanged)

  {

   /* Get MAC Config MAC */

   HAL_ETH_GetMACConfig(&heth, &MACConf);

   MACConf.DuplexMode = duplex;

   MACConf.Speed = speed;

   HAL_ETH_SetMACConfig(&heth, &MACConf);

   HAL_ETH_Start(&heth);

   netif_set_up(netif);

   netif_set_link_up(netif);

  }

Fix:

HAL_ETH_Start_IT(&heth);

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @vekli​ ,

    A similar question is already asked here.

    This issue is fixed in STM32CubeMX 6.7.0 and in STM32CubeIDE1.11.0.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Thank you

    Kaoutha

    1 reply

    KDJEM.1Answer
    Technical Moderator
    January 27, 2023

    Hello @vekli​ ,

    A similar question is already asked here.

    This issue is fixed in STM32CubeMX 6.7.0 and in STM32CubeIDE1.11.0.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Thank you

    Kaoutha