Hello,
try to check this Nucleo 144pins ethernet spi conflict - | Mbed.
Similar/same issue we discuss here.
BR, Jan