STM32H5 Core Board

Overview

The weact_stm32h5_core board is a compact development board equipped with an STM32H562RGT6 microcontroller. It features basic set of peripherals: user LED and button, microSD™ card slot, and combined SWD & UART header.

Key Features

  • STM32 microcontroller in LQFP64 package

  • USB OTG or full-speed device

  • 1 user LED

  • User, boot, and reset push-buttons

  • 32.768 kHz and 8MHz HSE crystal oscillators

  • Board connectors:

    • microSD™ card

    • USB Type-C Connector

    • SWD & UART header for external debugger

    • 2x 30-pin GPIO connector

More information about the board can be found on the WeAct GitHub.

Hardware

The weact_stm32h5_core board provides the following hardware components:

  • STM32H562RGT6 in LQFP64 package

  • ARM 32-bit Cortex-M33 CPU with FPU

  • CORDIC for trigonometric functions acceleration

  • FMAC (filter mathematical accelerator)

  • CRC calculation unit

  • 240 MHz max CPU frequency

  • VDD from 1.71 V to 3.6 V

  • 1MB Flash, 2 banks read-while-write

  • 640kB SRAM

  • 4 Kbytes of backup SRAM available in the lowest power modes

  • 2x watchdogs

  • 2x SysTick timer

  • 32-bit timers (2)

  • 16-bit advanced motor control timers (2)

  • 16-bit low power timers (6)

  • 16-bit timers (10)

  • 1x USB Type-C / USB power-delivery controller

  • 1x USB 2.0 full-speed host and device

  • 4x I2C FM+ interfaces (SMBus/PMBus)

  • 1x I3C interface

  • 12x U(S)ARTS (ISO7816 interface, LIN, IrDA, modem control)

  • 1x LP UART

  • 6x SPIs including 3 muxed with full-duplex I2S

  • 2x SAI

  • 1x FDCAN

  • Flexible external memory controller with up to 16-bit data bus: SRAM, PSRAM, FRAM, SDRAM/LPSDR SDRAM, NOR/NAND memories

  • 1x OCTOSPI memory interface with on-the-fly decryption and support for serial PSRAM/NAND/NOR, Hyper RAM/Flash frame formats

  • 1x SD/SDIO/MMC interfaces

  • 1x HDMI-CEC

  • 2x 12-bit ADC with up to 5 MSPS in 12-bit

  • 1x 12-bit D/A with 2 channels

  • 1x Digital temperature sensor

More information about STM32H562RG can be found here:

Supported Features

The weact_stm32h5_core board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
weact_stm32h5_core
/
stm32h562xx

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33 CPU1

arm,cortex-m33

ADC

on-chip

STM32 ADC2

st,stm32-adc

CAN

on-chip

STM32 FDCAN CAN FD controller1 1

st,stm32-fdcan

Clock control

on-chip

STM32U5 RCC (Reset and Clock controller)1

st,stm32u5-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

STM32 HSI Clock1

st,stm32h7-hsi-clock

on-chip

Generic fixed-rate clock provider1 2

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32U5 PLL1 2

st,stm32u5-pll-clock

on-chip

STM32 Microcontroller Clock Output (MCO)2

st,stm32-clock-mco

Counter

on-chip

STM32 counters12

st,stm32-counter

Cryptographic accelerator

on-chip

STM32 AES Accelerator1

st,stm32-aes

DAC

on-chip

STM32 family DAC1

st,stm32-dac

DMA

on-chip

STM32U5 DMA controller2

st,stm32u5-dma

Ethernet

on-chip

STM32H7 Ethernet1

st,stm32h7-ethernet

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller9

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller4

st,stm32-i2c-v2

I2S

on-chip

STM32H7 I2S controller3

st,stm32h7-i2s

I3C

on-chip

STM32H5 I3C controller2

st,stm32-i3c

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

on-chip

STM32G0 External Interrupt Controller1

st,stm32g0-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MDIO

on-chip

STM32 MDIO Controller1

st,stm32-mdio

Memory controller

on-chip

STM32 Flexible Memory Controller (FMC)1

st,stm32-fmc

MMC

on-chip

STM32 SDMMC Disk Access1

st,stm32-sdmmc

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

PWM

on-chip

STM32 PWM14

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 Digital Temperature Sensor1

st,stm32-digi-temp

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VREF+1

st,stm32-vref

on-chip

STM32 VBAT1

st,stm32-vbat

Serial controller

on-chip

STM32 USART1 5

st,stm32-usart

on-chip

STM32 LPUART1

st,stm32-lpuart

on-chip

STM32 UART6

st,stm32-uart

SMbus

on-chip

STM32 SMBus controller4

st,stm32-smbus

SPI

on-chip

STM32H7 SPI controller1 5

st,stm32h7-spi

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

on-chip

STM32 low-power timer (LPTIM)1 5

st,stm32-lptim

on-chip

STM32 timers14

st,stm32-timers

USB

on-chip

STM32 USB controller1

st,stm32-usb

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

xSPI

on-chip

STM32 XSPI Controller1

st,stm32-xspi

Pin Mapping

Default Zephyr Peripheral Mapping:

The weact_stm32h5_core board is configured as follows

  • USER_LED : PB2

  • USER_PB : PC13

  • SDMMC1 CLK/DCMD/CD/D0/D1/D2/D3 : PC12/PD2/PD4/PC8/PC9/PC10/PC11 (microSD card)

  • USB DM/DP : PA11/PA12 (USB CDC ACM)

  • UART on debug header : RX/TX - pA10/PA9

System Clock

The STM32H562RG System Clock can be driven by an internal or external oscillator, as well as by the main PLL clock. By default, the System clock is driven by the PLL clock at 240MHz. PLL clock is fed by a 8MHz external clock.

Serial Port (USB CDC ACM)

The Zephyr console output is assigned to the USB CDC ACM virtual serial port. Virtual COM port interface. Default communication settings are 115200 8N1.

Programming and Debugging

The weact_stm32h5_core board facilitates firmware flashing via the USB DFU bootloader. This method simplifies the process of updating images, although it doesn’t provide debugging capabilities. However, the board provides header pins for the Serial Wire Debug (SWD) interface, which can be used to connect an external debugger, such as ST-Link.

Flashing

To activate the bootloader, follow these steps:

  1. Press and hold the BOOT0 key.

  2. While still holding the BOOT0 key, press and release the RESET key.

  3. Wait for 0.5 seconds, then release the BOOT0 key.

Upon successful execution of these steps, the device will transition into bootloader mode and present itself as a USB DFU Mode device. You can program the device using the west tool or the STM32CubeProgrammer.

Flashing an application to weact_stm32h5_core

Here is an example for the Hello World application.

First, put the board in bootloader mode as described above. Then build and flash the application in the usual way. Just add CONFIG_BOOT_DELAY=5000 to the configuration, so that USB CDC ACM is initialized before any text is printed, as below:

# From the root of the zephyr repository
west build -b weact_stm32h5_core samples/hello_world -- -DCONFIG_BOOT_DELAY=5000
west flash

Run a serial host program to connect with your board:

$ minicom -D <tty_device> -b 115200

Then, press the RESET button, you should see the following message after few seconds:

Hello World! weact_stm32h5_core

Replace <tty_device> with the port where the board can be found. For example, under Linux, /dev/ttyACM0.

Debugging

This current Zephyr port does not support debugging.

Testing the LEDs in the weact_stm32h5_core

There is a sample that allows to test that LED on the board are working properly with Zephyr:

# From the root of the zephyr repository
west build -b weact_stm32h5_core samples/basic/blinky -- -DCONFIG_BOOT_DELAY=5000
west flash

You can build and flash the examples to make sure Zephyr is running correctly on your board. The LED definitions can be found in boards/weact/stm32h5_core/weact_stm32h5_core.dts.

Testing shell over USB in the weact_stm32h5_core

There is a sample that allows to test shell interface over USB CDC ACM interface with Zephyr:

# From the root of the zephyr repository
west build -b weact_stm32h5_core samples/subsys/shell/shell_module -- -DCONFIG_BOOT_DELAY=5000
west flash