Debugging of STM32F103 clone "BluePill" board, wrong idcode

Your BluePill board contains a CS32F103C8T6 chip, a Chinese clone instead of a real STM32F103C8T6.

In order to upload the code, add the below line to platformio.ini:

upload_flags = -c set CPUTAPID 0x2ba01477
3 Likes