Failed to upload to STM32

I’m trying to use bluepill STM32 board with dfu but it made error.

I can write it from arduino IDE.

Here is a error:

arm-none-eabi-objcopy -O binary .pioenvs/bluepill_f103c8/firmware.elf .pioenvs/bluepill_f103c8/firmware.bin
MethodWrapper(["upload"], [".pioenvs/bluepill_f103c8/firmware.bin"])
Use manually specified: /dev/ttyACM0
maple_upload /dev/ttyACM0 2 1EAF:0003 /home/ikeji/tmp/bluepillsample/.pioenvs/bluepill_f103c8/firmware.bin
Failed to open serial device.
dfu-util 0.7
No DFU capable USB device found

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to

Filter on vendor = 0x1eaf product = 0x0003
*** [upload] Error 1

Here is a my platformio.ini

platform = ststm32
board = bluepill_f103c8
framework = arduino
upload_protocol = dfu

Here is a src:

void setup(){
void loop(){

Seems like the argument of maple_upload command is wrong.
But I couldn’t find which repo contains it.

Please file an issue here Issues · platformio/platform-ststm32 · GitHub