Ethernet Initialization Hangs When Hardware Is Not Present

We are using an LPC4088 microcontroller with an Ethernet PHY (LAN8720) connected via RMII interface. The software stack includes MDK middleware version 7.12.0 and DFP version 2.2.2. The PHY is located on an Ethernet plug-in board.

When we call the netInitialize() function:

If the plug-in board is connected: netInitialize() returns success and Ethernet works as expected.

If the plug-in board is NOT connected: The code hangs inside netInitialize() and does not return.

Issue: We need a way to prevent the system from hanging when the Ethernet hardware is not present. Ideally, netInitialize() should return an error code or timeout instead of blocking indefinitely.

Questions:

1. Is there a recommended approach to handle missing Ethernet hardware in MDK middleware?

2. Can we configure a timeout or detect PHY presence before calling netInitialize()?

3. Are there any known fixes or patches for this behavior in version 7.12.0?