STM32F411RE Uploading Error

Hi there!!!
I’m trying to upload a program for an STM32F411RE, the program itsefl compiles excelent, but when i try to put it into the STM it fails, the console says:

Processing genericSTM32F411RE (platform: ststm32; board: genericSTM32F411RE; framework: cmsis)
-----------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https ://docs.platformio.org/page/boards/ststm32/genericSTM32F411RE.
PLATFORM: ST STM32 (16.1.0) > STM32F411RE (128k RAM. 512k Flash)
HARDWARE: STM32F411RET6 100MHz, 128KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES:
 - framework-cmsis @ 2.50501.200527 (5.5.1)
 - framework-cmsis-stm32f4 @ 2.6.4
 - tool-dfuutil @ 1.11.0
 - tool-ldscripts-ststm32 @ 0.2.0
 - tool-openocd @ 3.1200.0 (12.0)
 - tool-stm32duino @ 1.0.2
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https ://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\genericSTM32F411RE\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 28 bytes from 131072 bytes)
Flash: [          ]   0.1% (used 356 bytes from 524288 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, dfu, jlink, serial, stlink
CURRENT: upload_protocol = serial
Looking for upload port...
Auto-detected: COM3
Uploading .pio\build\genericSTM32F411RE\firmware.bin
stm32flash 0.4

http ://stm32flash.googlecode.com/
Failed to init device.

Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1
* [upload] Error 1

I found that the page if the init part have changed from “http://stm32flash.googlecode.com/” to “stm32flash download | SourceForge.net”, anyone knows how I can change that direction in my project?

  1. Are you uploading via USB-to-UART converter connected to the board? If no, the upload protocol is wrong, chose the fitting one.
  2. If yes, to which pins did you connect the USB-to-UART converter? See https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf page 141
  3. Was the chip booted with BOOT0 = HIGH, BOOT1 = LOW?

You’re right, i’m using ST-Link debbuger, thanks
That solved it