I am trying to flash a program on my stm32 blue pill using a (fake) stlinkv2. I am on windows. When trying to upload, I do get the following error:
hla_swd target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x1ffff020 msp: 0x200001fc * Programming Started * Warn : no flash bank found for address 0x08010000 Warn : no flash bank found for address 0x08010550 * Programming Finished * * Verify Started * Error: checksum mismatch - attempting binary compare embedded:startup.tcl:521: Error: * Verify Failed * in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 582 at file "embedded:startup.tcl", line 521 * [upload] Error 1
This is the platformio.ini:
[env:genericSTM32F103CB] platform = ststm32 board = genericSTM32F103CB framework = arduino upload_protocol = stlink debug_tool = stlink build_flags = -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D USBCON monitor_dtr = 1
Any ideas what is happening?