WeAct-F401CC board

Support for the WeAct-F401CC Board.

Support for the WeAct-F401CC Board.

Overview

WeAct-F401CC is a board with the same form-factor as the blue/blackpill, but with an STM32F401CCU6 and a USB-C connector.

It is available on sites like AliExpress for less than 3€.

Hardware

WeAct-F401CC

MCU

MCU STM32F401CCU6
Family ARM Cortex-M4F
Vendor ST Microelectronics
RAM 64KiB
Flash 256KiB
Frequency up to 84MHz
FPU yes
Timers 8 (2x watchdog, 1 SysTick, 6x 16-bit)
ADCs 1x 12-bit
UARTs 3
SPIs 4
I2Cs 3
RTC 1
Vcc 2.0V - 3.6V
Datasheet Datasheet
Reference Manual Reference Manual

Flashing the device

The device comes with a bootloader that allows flashing via dfu-util.

If RIOT is already running on the board, you can upload your RIOT-firmware by typing

make BOARD=weact-f401cc flash

RIOT will make sure to enter the bootloader automatically.

If RIOT crashed or you have the plain board with the stock firmware, you have to enter the bootloader manually.

There are two buttons on the board labeled BOOT0 and NRST.

The board will now show up as 0483:df11 - STM32 BOOTLOADER and will accept firmware using the DFU protocol.

Note:* You need to have write permissions to the device. On Linux you could add yourself to the plugdev group and store the following as /etc/udev/rules.d/99-weact-f401cc.rules:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", GROUP="plugdev", MODE="660"

UART

stdio is provided through USB CDC ACM so the board can be used without any extra hardware, save for a USB-C cable.