I already mentioned a bug in the previous CubeMX release.
Enabling Ethernet CubeMX reserves
PB12 for ETH_TXD0
PB11 for ETH_TX_EN
and writes the wrong settings in ethernetif.c
But it must be:
PG13 for ETH_TXD0
PG11 for ETH_TX_EN
The speed setting should be at least HIGH or VERY_HIGH but it is set to:
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW
A new project with the button checked "Initialize all peripherals with their default Mode"
will not find a solution if setting the clock to 400 MHz. Setting the dividers by hand works.
Solution: Uncheck USB_OTG_FS, because the clock solution process does not find a goal for 48 MHz.
Sometimes I had the situation: I disabled "USB_OTG_FS" but it was still green and listed under Configuration.
- Joerg -