I have the same issue with an STM32H743. I need 4ms delay but I would be also interested in a proper solution.I used the post here to setup my project: https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-st...
Also present in CubeF2. As ALABSTM said in your issue, the correct prototype would be the uint8_t* as in the generated main, so actually the stm32fxxx_hal_conf template is wrong.This is fixed in CubeF4.