Im trying to write a simple LED blink program to my bluepill board. I can successfully do this with the Arduino IDE using the STM32cube programmer. When I try to upload the code with platformio I get the error message OpenOCD init failed. I can also connect to the bluepill withe the STM32 cube programmer. Im using an M1 Mac if that makes a difference.
The ID code failure indicates you have a “fake” Bluepill with a CS32 or GD32 chip instead of a genuine STM32 chip. Debugging and uploading to these chips was already discussed in