Error on Nucleo F446RE "The interface firmware FAILED to reset/halt the target MCU"

In some cases it helps to hold down the reset button when connecting to the board.