Bluepill Which Firmware ?

The first Cortex-M made by STMicro Electronics was the STM32F1xxx in 2004. This is still a very fast and capable MCU which admittedly has its faults, many of which were rectified in later mcu models (tho not the F103xxx) by STMicro.

Interestingly, the Chinese STM32F103 clones (all are STM licensed variants) don’t have any of the same silicon faults that plagued the STM32F103. What’s more, the clones are cheaper, faster and have more features than the STM mcu. However their compatability is unknown.

The most compatible one I know of is the APM32F103 as it’s used with the $2 SWD/USB dongles and runs the STM original firmware no problems. https://global.geehy.com/product/fifth/APM32F103

_images/st-link_v2_clone.jpg

Problem Firmware I Don’t Recommend

I can’t remember what the problem was but these wouldn’t work when I tried them years ago.

mecrisp-stellaris-2.6.5/stm32f103rb

mecrisp-stellaris-2.6.5/stm32f103rb-ra

Don’t Know Which Chip is Actually In Your Bluepill ?

Then may I recommend you see:

https://mecrisp-stellaris-folkdoc.sourceforge.io/bluepill-diags-v1.640.html