Just to restrict the possible issue, i would suggest to open stlink utility and:
- does the target cpu gets recognized (top right window)? Do you see Device, dev id, rev id, and flash size (unknown flash size or 512k)? If you see device and dev id, SWD between stlink and mcu is at least working. If you see all the above but unknown flash size, it probbly means you have enabled some locking in option bytes (flash size, if i'm not wrong, is stored somewhare is OTP flash or bootrom, don't remember exactly).
- it tells "can't read memory, disable readout protecion" upon device connect to stlink utility. "memory display" is set by default to 0x08000000 (flash), set it to 0x20000000 (internal ram) and size whatever small (like 0x200), does it show memory (it should even if locks are enable in option bytes) or does it still report error? What error? If it shoes data, it means stlink SWD is ok, just messed up with the option bytes. If shows errors also in reading internal ram, it means there is something bad with the SWD connection between onboard stlink and nucleo mcu.
- go to menu "target" and then "MCU core", does it show any error or message like "read out protection activated"?
these are the default option bytes for F401, other mcus should be quite similar
FAIL.TXT The interface firmware FAILED to reset/halt the target MCU
DETAILS.TXT Version: 0221 Build: Apr 29 2015 13:11:12
only 12.0KB
use the "0 byte" is...
I tried to apply all updates, but does not operate.
how do you do apply?