To active LWIP, you should configure the ETH IP and enable FREERTOS with MBEDTLS.
Also, for STM32H7 CORTEX_M7 CPU DCache parameter must be enabled.
This warning is mentioned in STM32CubeMx, when you put the cursor in LWIP Pinout.
Kind Regards,
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks