Hello I’m trying to upload code to stm32 via stlinkv2 and i get this error
Error: timed out while waiting for target halted
Error: error executing cortex_m crc algorithm
embedded:startup.tcl:1516: Error: ** Verify Failed **
in procedure ‘program’
in procedure ‘program_error’ called at file “embedded:startup.tcl”, line 1577
at file “embedded:startup.tcl”, line 1516
*** [upload] Error 1
Can you post your platformio.ini
file please. Just copy and paste it between triple backticks
```
like this
```
As this will render it as code, rather than a screen dump. I’m particularly interested in the board
specification that you are using. My own projects use this:
[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = stm32cube
; The default for a bluepill upload_protocol is stlink. This is
; not needed to be specified in this file.
In the meantime, the warning you are getting about “no flash bank found for address” implies that your Bluepill doesn’t have more than 128 Mb RAM. How big is the code you are attempting to upload? 0x08008000 is more than 128 Mb and as far as I know, Bluepills come with only 64 Mb, however, some of them appear to have 128 Mb fitted — mine do!
Alternatively, there might be a problem in the linker script so that uploads are being written to the wrong location.
If you search the forums for “Bluepill no flash bank found for address” there are quite a few hits, some of which might be useful to you in the meantime.
HTH
Cheers,
Norm.