There is another error in the ethernetif.c file, in the ethernet_link_thread() function.at line 806, in the if(linkchanged) testHAL_ETH_Start_IT(&heth); has been replaced by HAL_ETH_Start(&heth);
Got the same issue with a STM32F769, with DMA UART / I2C. Moving the MX_DMA_Init() before the ADC and the I2C init solved the issue... It seems to be an issue with the code generation from STM32CubeMX (last version, embedded in STM32CubeIDE).