ART-Pi2

Overview

The ART-Pi2 is an open-source hardware platform designed by the RT-Thread team specifically for embedded software engineers and open-source makers, offering extensive expandability for DIY projects.

Key Features

  • STM32H7R7L8HxH microcontroller featuring 64 Kbytes of Flash and 620 Kbytes of SRAM in an TFBGA225 package

  • On-board ST-LINK/V2.1 debugger/programmer

  • SDIO TF Card slot

  • SDIO WIFI:CYWL6208

  • HDC UART BuleTooth:CYWL6208

  • 32-MB HyperRAM

  • 64-MB HyperFlash

  • One Power LED (blue) for 3.3 V power-on

  • Two user LEDs blue and red

  • Two ST-LINK LEDs: blue and red

  • Two push-buttons (user and reset)

  • Board connectors:

    • USB OTG with Type-C connector

    • RGB888 FPC connector

More information about the board can be found at the ART-Pi2 website [1].

Hardware

ART-Pi2 provides the following hardware components:

The STM32H7R7xx devices are a high-performance microcontrollers family (STM32H7 Series) based on the high-performance Arm® Cortex®-M7 32-bit RISC core. They operate at a frequency of up to 600 MHz.

More information about STM32H7R7 can be found here:

Supported Features

The art_pi2 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.

art_pi2/stm32h7r7xx target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M7 CPU1

arm,cortex-m7

ADC

on-chip

STM32 ADC2

st,stm32-adc

Clock control

on-chip

STM32H7RS RCC (Reset and Clock controller)1

st,stm32h7rs-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

STM32H7RS main PLL1 2

st,stm32h7rs-pll-clock

on-chip

STM32 Clock multiplexer1

st,stm32-clock-mux

on-chip

STM32 Microcontroller Clock Output (MCO)2

st,stm32-clock-mco

Counter

on-chip

STM32 counters10

st,stm32-counter

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller12

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller3

st,stm32-i2c-v2

I2S

on-chip

STM32H7 I2S controller1

st,stm32h7-i2s

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32H7RS External Interrupt Controller1

st,stm32h7rs-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MMU / MPU

on-chip

ARMv7-M Memory Protection Unit (MPU)1

arm,armv7m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

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 PWM8

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

Sensors

on-chip

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

st,stm32-temp-cal

on-chip

STM32 VBAT1

st,stm32-vbat

on-chip

STM32 VREF+1

st,stm32-vref

Serial controller

on-chip

STM32 USART3

st,stm32-usart

on-chip

STM32 UART1 3

st,stm32-uart

on-chip

STM32 LPUART1

st,stm32-lpuart

SPI

on-chip

STM32H7 SPI controller5

st,stm32h7-spi

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 timers11

st,stm32-timers

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

USB

on-chip

STM32 OTGFS controller1

st,stm32-otgfs

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

xSPI

on-chip

STM32 XSPI Controller2

st,stm32-xspi

Default Zephyr Peripheral Mapping:

The ART-Pi2 board features a On-board ST-LINK/V2.1 debugger/programmer. Board is configured as follows:

  • UART4 TX/RX : PD1/PD0 (ST-Link Virtual Port Com)

  • LED1 (red) : PO1

  • LED2 (blue) : PO5

  • USER PUSH-BUTTON : PC13

System Clock

ART-Pi2 System Clock could be driven by an internal or external oscillator, as well as the main PLL clock. By default, the System clock is driven by the PLL clock at 250MHz, driven by an 24MHz high-speed external clock.

Serial Port

ART-Pi2 board has 4 UARTs and 3 USARTs plus one LowPower UART. The Zephyr console output is assigned to UART4. Default settings are 115200 8N1.

Backup SRAM

In order to test backup SRAM you may want to disconnect VBAT from VDD. You can do it by removing SB13 jumper on the back side of the board.

Programming and Debugging

The art_pi2 board supports the runners and associated west commands listed below.

flash debug rtt debugserver attach
pyocd ✅ (default)
stm32cubeprogrammer ✅ (default)

ART-Pi2 board includes an ST-LINK/V2.1 embedded debug tool interface.

Note

Check if your ST-LINK V2.1 has newest FW version. It can be done with STM32CubeProgrammer [4]

Flashing

The board is configured to be flashed using west STM32CubeProgrammer [4] runner, so its installation is required.

Flashing an application to ART-Pi2

First, connect the art_pi2 to your host computer using the USB port to prepare it for flashing. Then build and flash your application.

Here is an example for the Hello World application.

Run a serial host program to connect with your art_pi2 board.

$ minicom -b 115200 -D /dev/ttyACM0

or use screen:

$ screen /dev/ttyACM0 115200

Build and flash the application:

# From the root of the zephyr repository
west build -b art_pi2 samples/hello_world
west flash

You should see the following message on the console:

*** Booting Zephyr OS build v4.1.0-1907-g415ab379a8af ***
Hello World! art_pi2/stm32h7r7xx

Blinky example can also be used:

# From the root of the zephyr repository
west build -b art_pi2 samples/basic/blinky
west flash

Debugging

You can debug an application in the usual way. Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b art_pi2 samples/hello_world
west debug

References