FreeRTOS+TCP V2.3.2
That’s indeed the latest, thank you.
As you may have guessed, xPhyObject.ulLinkStatusMask reflects the status of the PHY, the connection to your LAN. It does not get a Link Status.
Are you using a standard Discovery board, or a custom PCB?
If it has MII, please define ipconfigUSE_RMII as zero, meaning that you do not have reduced pins ( like the STM32F7x board has ).
Do you connect it to a switch or a router? Does the switch or router show a LED, saying that there is a device connected? You can check this without running any firmware, just connect it.
Again about the PHY, does the function xPhyDiscover() in phyHandling.c find the PHY? When found, pxPhyObject->xPortCount will become 1.
Can you check that?