Skip to main content
vekli
Associate II
Jan 26, 2023 8:12 PM UTC
Solved

Bug STM32F429ZI LWIP not work after link up/down

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.
KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Jan 27, 2023 7:54 AM UTC

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

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.

1 reply

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Jan 27, 2023 7:54 AM UTC

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

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.