My board has an DP83848 PHY instead of the LAN on the discovery kit. Initialization of the HAL will initialize that and detect my PHY. Good.
But then: when lwipInit () is called.... the code hangs in:
Code: Select all
/* Check because errata on some devices. There should be no need to
disable flushing because the TXFIFO should be empty on macStart().*/
#if !defined(STM32_MAC_DISABLE_TX_FLUSH)
/* Transmit FIFO flush.*/
ETH->DMAOMR = ETH_DMAOMR_FTF;
while (ETH->DMAOMR & ETH_DMAOMR_FTF)
;
#endif
And my hardware isn't that bad, as communication with the PHY works to retrieve the correct PHY_ID values....
Example projects on the internet show precisely the same signals connected.....
Any idea why the code could hang here?