Being in Sao Paulo, i got a bluepill for a small project. The MCU is labeled STM32F103C8T6 x.
Tried to use it with the STLINK2 of a Nucleo64 L053 board, but it complains about Cortex-4 target core and can't debug with IAR.
With the STLink utility i can flash a test application and step through it, though. So i flashed the diagnostic tool, it reports:
d
DBGMCU_IDCODE [@ 0xE0042000] = 0x20036410
f
131072 flash is declared in the Flash size register at 0x1FFFF7E0
j
Jdec Continuation Code: 0x00
Jdec Identity Code: 0x20
JDEC manufacturer id: STMicroelectronicsi
a
STM32F103C8 authentication FAILED one or more tests:
----------------------------------------------------
FAIL - Declared flash not 65536
FAIL - DBGMCU_IDCODE is readable with no SWD/Jtag connected
PASS - Second 64KB flash block verified
PASS - JDEC manufacturer id IS STMicroelectronics
Regards, Dieter