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
Recommended Firmware¶
Board |
Mcu |
Flash kb |
Hidden Flash? |
Recommended Mecrisp-Stellaris Firmware |
|---|---|---|---|---|
Bluepill |
STM32F103C8T6 |
64K |
Yes - 64KB |
mecrisp-stellaris-2.6.5/stm32f103-ra |
Bluepill |
STM32F103RBT6 |
128KB |
No |
mecrisp-stellaris-2.6.5/stm32f103-ra ** |
** This will work but give the error “Flash full” when the first 64KB flash block is full. To fix that, alter the config, see:
https://mecrisp-stellaris-folkdoc.sourceforge.io/porting.html#change-memory-values
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