STM32F411CE (BlackPill) + STLink V2 + Arduino on Ubuntu

Seems like the ST-Link isn’t able to reset the microcontroller. Either because it’s using the wrong method or pre-requisites for the method are not present.

  • Is the NRST of the STLink connected to the NRST of the target board?
  • Have you tried adding other reset configurations by adding to the platformio.ini
upload_flags =
  -c
  reset_config none

(as mentioned in board disco_l072cz_lrwan1 - [upload] Error 1 (OpenOCD init failed) · Issue #353 · platformio/platform-ststm32 · GitHub)
You can also try more reset options as mentioned in STM32 + VS Code + mbed upload issue: Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: open failed - #12 by maxgerhardt.