Importing STM32 bluepill arduino project to to platform io and programming it through STLINK

I have imported a STM32 bluepill project to platform io. I was able to build it successfully. When I try to program it through ST link i receive following error
Uploading .pio\build\upstream_develop\firmware.elf
xPack OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev (2019-07-17-11:28)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
debug_level: 1

none separate

target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c
** Programming Started **
Warn : no flash bank found for address 0x08010000
** Programming Finished **
** Verify Started **
Error: checksum mismatch - attempting binary compare
embedded:startup.tcl:449: Error: ** Verify Failed **
in procedure 'program' 
in procedure 'program_error' called at file "embedded:startup.tcl", line 494
at file "embedded:startup.tcl", line 449
*** [upload] Error 1

My .ini file is as follows.
platform = GitHub - platformio/platform-ststm32: ST STM32: development platform for PlatformIO
framework = arduino
board = bluepill_f103c8
board_build.core = maple
upload_protocol = stlink
;upload_flags = -c set CPUTAPID 0x2ba01477
What is the solution for this issue?

Might indicate a linkerscript bug (Nucleo L3 programming fails · Issue #79 · modm-io/modm · GitHub), will look into it.