Skip to content

Blue Pill

lbuild module: modm:board:blue-pill-f103

STM32F103C8T6 "Blue Pill" Minimum System Development Board

Cheap and bread-board-friendly board for STM32 F1 series. Sold for less than 2 USD on well known Internet shops from China.

https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html

Programming

Since the board doesn't have a programmer on-board, you need to use your own and specify which one you're using in a custom openocd.cfg file:

# Replace this with your custom programmer
source [find interface/stlink-v2.cfg]

# If you use the clone CKS32F103C8T6 chip you need to overwrite this ID
#set CPUTAPID 0x2ba01477

# To select a specific programmer you can specify its serial number
#hla_serial "\x53\x3f\x6f\x06\x50\x77\x50\x57\x12\x17\x13\x3f"
# You can discover the serial via `stlink --hla-serial` or `st-info --hla-serial`.

Then include this file in your build options like so:

<library>
  <extends>modm:blue-pill-f103</extends>
  <options>
    <option name="modm:build:openocd.cfg">openocd.cfg</option>
  </options>
</library>

This module is only available for stm32f103c8t6.

Dependencies

modm:board:blue-pill-f103 modm_board_blue_pill_f103 modm: board: blue-pill-f103 modm_architecture_clock modm: architecture: clock modm_board_blue_pill_f103->modm_architecture_clock modm_platform_clock modm: platform: clock modm_board_blue_pill_f103->modm_platform_clock modm_platform_core modm: platform: core modm_board_blue_pill_f103->modm_platform_core modm_platform_gpio modm: platform: gpio modm_board_blue_pill_f103->modm_platform_gpio modm_platform_usb modm: platform: usb modm_board_blue_pill_f103->modm_platform_usb

Limited availability: Check with 'lbuild discover' if this module is available for your target!