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.
- 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
- 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
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 | status |
---|---|
6.12 | Compiles and runs ok |
6.13 | Compiles and runs ok |
After base mbed project creation and configuration perform the following configuration to setup board:
- Go to project root directory.
- Run
mbed add https://github.com/vznncv/TARGET_BLACKPILL_F401CC.git
to add this library to your project. - Copy
custom_target.json
from library folder to your project folder. - Run
mbed target BLACKPILL_F401CC
command to set default board. - Run
mbed toolchain GCC_ARM
to set default toolchain. - 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:
note: a serial adapter is requires only for printf
/scanf
functionality and tools that use it (like greentea tests).
Base examples can be found in the examples
folder.
Unless specifically indicated otherwise in a file, files are licensed under the MIT license.