Skip to content

vznncv/TARGET_BLACKPILL_F401CC

Repository files navigation

BlackPill board (WeAct STM32F401CCU6) support for Mbed OS 6

WeAct Black Pill board is series of small affordable boards with STM32F4x1 MCUs. These boards have the same format like BluePill, but have significantly more RAM, flash memory and have single precision floating point unit.

This repository provides Mbed OS 6 support for board with STM32F401CCU6 MCU.

Board description

Microcontroller features

  • STM32F401CCU6 in UFQFPN48 package
  • ARM®32-bit Cortex®-M4 CPU
  • 84 MHz max CPU frequency
  • VDD from 1.7 V to 3.6 V
  • 256 KB Flash
  • 64 KB SRAM
  • GPIO (32) with external interrupt capability
  • All IO ports 5 V tolerant
  • 12-bit ADC (1) with 10 channels
  • RTC
  • Timers (8)
  • I2C (3)
  • USART (3)
  • SPI (3)
  • I2S (3)
  • USB 2.0 full-speed

Board features

  • Small foot-print
  • Flexible board power supply: USB VBUS or external source (3.3V, 5V)
  • User LED: LED1
  • Programming/Debug port
  • Type-C USB connector
  • High speed external quartz oscillator 25 MHz
  • Low speed external quartz oscillator 32,768 KHz

Board pinout

Board pintout

Default pins

description pin note
STDIO_UART_TX PA_2
STDIO_UART_RX PA_3
led pin (LED1 alias) PC_13
user button pin (BUTTON1 alias) PA_0 it may absent on some board revisions. If it presents, PullUp mode should be used

Mbed OS version support

Mbed OS status
6.12 Compiles and runs ok
6.13 Compiles and runs ok

Project configuration

After base mbed project creation and configuration perform the following configuration to setup board:

  1. Go to project root directory.
  2. Run mbed add https://github.com/vznncv/TARGET_BLACKPILL_F401CC.git to add this library to your project.
  3. Copy custom_target.json from library folder to your project folder.
  4. Run mbed target BLACKPILL_F401CC command to set default board.
  5. Run mbed toolchain GCC_ARM to set default toolchain.
  6. Run mbed export ... command if you use IDE, as new files have been added to you project.

note: currently only GCC ARM toolchain is supported.

To program/debug you project, connect hardware debugger and optionally usb to serial adapter to pins PA_3, PA_2 like it's shown bellow:

Board connection

note: a serial adapter is requires only for printf/scanf functionality and tools that use it (like greentea tests).

Examples

Base examples can be found in the examples folder.

License

Unless specifically indicated otherwise in a file, files are licensed under the MIT license.

About

Mbed OS 6 port of WeAct STM32F401CC board

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published