Stm32blackpill

USB cable length
Plug the STM32 V2 Link utility directly into the laptop serial port, an extension cable has power losses.

update firmware
https://os.mbed.com/teams/ST/wiki/Nucleo-Firmware update st-link utility

linux install
https://arduino.stackexchange.com/questions/77426/stm32-st-link-not-working-on-linux sudo apt install libusb-dev libusb-1.0-0-dev -y sudo udevadm control --reload-rules && udevadm trigger mkdir -p ~/bin sudo ln -s ~/STM32CubeIDE/stbootloader/bin/STM32_Programmer_CLI  ~/bin/stm32prg execute the hex file created by Arduino with stm32prg -c port=SWD -w my_hex_file.hex 0x8000000 -v

get hexfile from arduino
https://www.instructables.com/HOW-TO-GET-HEX-FILE-FROM-ARDUINO-/

win10 and FTDI
https://electronics.stackexchange.com/questions/515810/ftdi-and-st-link-devices-together-to-stm32

stm32 install notes
https://stm32duinoforum.com/forum/wiki_subdomain/index_title_RobotDyn_Black_Pill.html boot0 is closest to usb port.

https://programmersought.com/article/33331860367/ each stm32 has boot0 and boot1

https://www.youtube.com/watch?v=saolJ_7E7hc STM32 link loader

https://www.youtube.com/watch?v=YZjnCOun1wU hung 2017

https://blog.hobbycomponents.com/?p=758

https://innovatorsguru.com/stm32-black-pill/ PINOUt

https://www.microsoft.com/en-us/download/details.aspx?id=52685 MISSING MFC140.DLL download the stm32 link utility for windows.

links
arduino code