I’ve been trying to get my STM32F103C Blue Pill to run code from PIO for a little while now. I have it configured with the Maple Labs firmware so it can be programmed via the Arduino IDE over it’s MicroUSB port.
I’ve tried to use the following board targets to upload to it to no avail:
[env:bluepill_f103c8_128k] platform = ststm32 framework = arduino board = bluepill_f103c8_128k upload_protocol = dfu ; board_build.variant = BLUEPILL_F103XX [env:bluepill_f103c8] platform = ststm32 framework = arduino board = bluepill_f103c8 upload_protocol = dfu ; board_build.variant = BLUEPILL_F103XX
If I uncomment the two lines, then the build fails, citing duplicate function definitions in the framework header files. With the two lines commented, the build succeeds, but then fails to get code to run as it gets the board stuck in DFU mode, not unlike this here: (Can not upload to Blue Pill using dfu) I’m at a loss for what to do.