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
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
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.
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?