programmed the STM32 USB bootloader generic_boot20_pc13.bin into the blue pill.
I cannot see any STM32 related boards. From my understanding I first have to install the Maple drivers. I found instructions for Windows but lacking those for macOS.
To add some observation:
connecting the blue pill creates a device
crw-rw-rw- 1 root wheel 22, 10 3 Nov 11:51 tty.usbmodem141301
crw-rw-rw- 1 root wheel 22, 11 3 Nov 11:51 cu.usbmodem141301
and lsusb gives:
Bus 020 Device 027: ID 1eaf:0004 Leaflabs Maple serial interface
Looks like everything is there? Only I cannot add any STM32 boards in board manager. Funnily the entry at Port /dev/cu.usbmodem141301 is named "STM32 Marple bootloader". What has Miss Marple got to do with this?
go into preferences, add additonal Boadrs URL: http://dan.drown.org/stm32duino/package_STM32duino_index.json
Go into tools->Boardmanager
Enter STM32 in the search field
Choose STM32F1xx/GD32F1xx boards
Choose latest version,
Install
Go into Boards and choose Generic STM32F103C Series
Only programming seems to fail. When uploading a small blinky app, I'm getting:
dfu-util 0.8
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
ID 1eaf:0003
Run-time device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Setting #2 ...
dfu-util: Invalid dfuse address: /private/var/folders/kc/xxxxx/T/AppTranslocation/xxxxx-xxxxx/d/Arduino.app/Contents/Java
Beim Hochladen des Sketches ist ein Fehler aufgetreten
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0110
Device returned transfer size 1024
I'm inclined to think it's a dfu-util issue. Version or command line invocation and parameter passing. One could use another programmer, STM32CubeProgrammer. But how to set up the configuration for this I don't know.
I modified the maple_upload script and disabled the dfuse_addr parameter to being empty, being a dirty hack though.