diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c index ae731f23308..49a3eae706a 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.c +++ b/arch/arm/src/stm32h7/stm32_ethernet.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -295,7 +296,7 @@ #define PHY_READ_TIMEOUT (0x0004ffff) #define PHY_WRITE_TIMEOUT (0x0004ffff) -#define PHY_RETRY_TIMEOUT (0x0004ffff) +#define PHY_RETRY_TIMEOUT (0x0001998) /* MAC reset ready delays in loop counts */ @@ -3553,6 +3554,8 @@ static int stm32_phyinit(struct stm32_ethmac_s *priv) { break; } + + nxsig_usleep(100); } if (timeout >= PHY_RETRY_TIMEOUT) @@ -3585,6 +3588,8 @@ static int stm32_phyinit(struct stm32_ethmac_s *priv) { break; } + + nxsig_usleep(100); } if (timeout >= PHY_RETRY_TIMEOUT)