Just incase anyone finds this and is still struggling...
I'm using a Mac, and moving from the Arduino IDE, and I already had this Bootloader working for the Bluepill under the Arduino IDE...
For clarification, as I also didn't have a
framework-arduinoststm32-maple folder, I ended up copying
HID-Flash from my Arduino packages folder:
/Users/**yourusername**/Library/Arduino15/packages/STM32/tools/STM32tools/**versionnumber**/macosx/hid-flash
Straight into:
/Users/** yourusername**/.platformio/packages/tool-stm32duino
This made the HID-flash available in PlatformIO, but still failed to upload, and spat out this in the terminal:
Code: Select all
Error - [1209:BEBA] device is not found :(> Searching for [COM17] ...
error, counldn't open [/dev/COM17]
So I then copied the address from an Arduino IDE Upload (cu.usbmodem024EB5C953471) to the platform.ini file:
Code: Select all
upload_port = cu.usbmodem024EB5C953471
I'm pretty sure I'd have to change this if I changed USB port or the Board, but you could always figure it from the Arduino IDE on your machine.