2020-05-28 10:40 PM
I am working on STM32H743VIT6 and using LAN8742 as phy. i generated the project using stmcube using repository stm32h7 1.5.0 . I used the same mpu and system clock configuration as in the ST examples. When I switched on the supply to mcu, the ping does not work. After pressing the reset button , ping started working.
Please find the attached system clock, mpu and lwipopts code.
2020-05-29 02:28 PM
It is possible that Cube tries to initialize the chip too soon.
By the data sheet, it takes at least about 26 ms from the power-on before trying to communicate with it. Probably a longer delay is needed.
That 26 ms is a "HW start-up time", so it may be too short, but I didn't do any further investigations.
2020-05-29 10:57 PM
Thank you, It worked but I had to introduce delay of 500 ms and 1 second in the initialization. I hope it works when I enable other modules of the MCU.
int main(void)
{
MPU_Config();
SCB_EnableICache();
SCB_EnableDCache();
HAL_Init();
SystemClock_Config();
HAL_Delay(500);
MX_GPIO_Init();
HAL_Delay(1000);
MX_LWIP_Init();
while (1)
{
MX_LWIP_Process();
}
}
2020-05-30 02:50 AM
https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernet
In other words it does not work and will not work in a foreseeable future, because the intellectual capability of HAL/Cube developers is too low to even understand these problems.
2021-11-26 02:11 AM
@Community member
Hey,
did you solve this problem?
I have an identical problem to yours on the same processor (STM32H743VIT6). After powering my PCB, I have to reset the entire system to make the LAN8742A work properly.