Is the code making it there? Perhaps it's getting stuck in MX_ETH_Init.
Usual advice here: debug the program, examine where the code is at, examine state of software state machines and registers if something isn't matching up. There's an answer in there somewhere.
adc_buf should be volatile, probably isn't the issue here.
No mention of board hardware or chip name. Presumably the chip is in the IOC file.
"If you feel a post has answered your question, please click ""Accept as Solution""."
Do you have an ethernet cable plugged in with an active connection at the other end? If not, MX_ETH_Init will hang. Disable the ethernet peripheral if you aren't using ethernet.
"If you feel a post has answered your question, please click ""Accept as Solution""."