PlatformIO Community

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

Hi,
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
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

hla_swd
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.
[env:upstream_develop]
platform = https://github.com/platformio/platform-ststm32.git
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 (https://github.com/modm-io/modm/issues/79#issuecomment-427657847), will look into it.