ST Nucleo F4 OpenOCD "init mode failed"

You might try running openocd as root.