MicroPython board definition files for the generic blue pill STM32F103C8T6 dev board.
Brand: vcc-gnd/Generic
Markings: http://vcc-gnd.taobao.com/
You can buy one for around $2 USD on AliExpress
- Clone the board definitions to your MicroPython
ports/stm32/boards
folder.
cd micropython/ports/stm32/boards
git clone https://github.com/mcauser/BLUE_PILL_F103C8.git
- Disconnect the board from USB
- Set BOOT0 jumper to ON (BT0->3V3)
- Connect the board via USB
cd micropython/ports/stm32
make BOARD=BLUE_PILL_F103C8
make BOARD=BLUE_PILL_F103C8 deploy
- Disconnect the board from USB
- Set BOOT0 jumper to OFF (BT0->GND)
- Connect the board via USB
screen /dev/tty.usbmodem1422
- STM32F103C8T6 ARM Cortex M3
- 72MHz, 90 DMIPS / 1.25 DMIPS / MHz
- 2.0V - 3.6V operating voltage
- 8MHz system crystal
- 32.768KHz RTC crystal
- 2.54mm pitch pins
- JTAG/SWD header
- 64 KByte Flash, 20 KByte SRAM
- 2x SPI, 3x USART, 2x I2C, 1x CAN
- 38 I/Os almost all 5V-tolerant
- 1x USB 2.0 FS
- 2x ADC (12-bit / 16-channel)
- 3x general timers, 1x advanced timer
- RT9193 3.3V LDO voltage regulator, max current 300mA
- Micro USB for power and data
- Blue user LED (PC13)
- 2x jumpers for bootloader selection
- Reset button
- 2x20 side pins + 1x4 SWD pins
- Dimensions: 53.0mm x 22.5mm
Some C8 microcontrollers have been discovered to have 128 KB flash instead of 64 KB. To fit MicroPython on this board, we'll try to use 128KB flash and pretend it's a F103CB board instead of F103C8. CB=128K, C8=64K.
Some C8 boards ship with incorrect USB pull up resistors. More on that later.
- STM32F103C8 on st.com
- Blue Pill on stm32duino wiki
- VCC GND branded STM32F103C8T6 Blue Pill
- Buy on AliExpress or search for "STM32F103C8T6"
Licensed under the MIT License.