STM32G431 based Sertest-NG board

The Eurovibes STM32G431 based Sertest-NG board is a universal serial protocol test board. It supports one full RS232 port, a two wire RS232 board, a RS422, a RS485 and a CAN-FD port. LEDs show the different line status information. See the STM32G431RB website [2] for more information about the MCU. More information about the board, including schematics, is available from the Eurovibes GitHub [1].

Supported Features

The eurovibes_stm32g431_sertest-ng 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.

eurovibes_stm32g431_sertest-ng/stm32g431xx target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4F CPU1

arm,cortex-m4f

ADC

on-chip

STM32 ADC2

st,stm32-adc

CAN

on-chip

STM32 FDCAN CAN FD controller1

st,stm32-fdcan

Clock control

on-chip

STM32 RCC (Reset and Clock controller)1

st,stm32-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

Generic fixed-rate clock provider12

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32G4 main PLL1

st,stm32g4-pll-clock

Comparator

on-chip

STM32G4 series Comparator2

st,stm32g4-comp

Counter

on-chip

STM32 counters10

st,stm32-counter

CRC

on-chip

STM32 CRC calculation unit1

st,stm32-crc

DAC

on-chip

STM32 family DAC2

st,stm32-dac

DMA

on-chip

STM32 DMA controller (V2)2

st,stm32-dma-v2

on-chip

STM32 DMAMUX controller1

st,stm32-dmamux

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller7

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller12

st,stm32-i2c-v2

I2S

on-chip

STM32 SAI controller2

st,stm32-sai

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

on-board

I2C EEPROMs compatible with Atmel’s AT24 family2

atmel,at24

NVMEM

on-chip

Fixed layout for Non-Volatile memory1

fixed-layout

OPAMP

on-chip

STM32G4 OPAMP3

st,stm32g4-opamp

OTP memory

on-chip

STM32 embedded NVM OTP11

st,stm32-nvm-otp

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

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 quadrature decoder5

st,stm32-qdec

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 USART3

st,stm32-usart

on-chip

STM32 UART1

st,stm32-uart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller3

st,stm32-smbus

SPI

on-chip

STM32 SPI controller with embedded Rx and Tx FIFOs3

st,stm32-spi-fifo

USB Type-C Port Controller

on-chip

STM32 USB Type-C / Power Delivery1

st,stm32-ucpd

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

on-chip

STM32 timers10

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

Pin Mapping

Default Zephyr Peripheral Mapping:

  • FDCAN_1 TX/RX : PB9/PB8

  • I2C2 SDA/SCL : PA8/PA9

  • LED0 : PB4

  • LED1 : PB5

  • LED2 : PB6

  • LED3 : PB7

  • USART_1 TX/RX : PC4/PBC5

  • USART_2 TX/RX : PA2/PA3

  • USART_2 CTS/RTS: PA0/PA1

  • USART_3 TX/RX : PB10/PB11

Hardware Configuration

Solder bridge

Default

Description

JP101

Open

M24C64 write protection: close to enable WR

JP102

1-2

VBAT: 1-2: 1F Capacitor / 2-3: bypass

JP103

Open

BOOT0: close to enter programing mode

JP401

Open

connect CAN GND to GND

JP402

1-2

CAN TX: 1-2 default / 2-3 swap

JP403

1-2

CAN RX: 1-2 default / 2-3 swap

Clock Sources

The board has two external oscillators. The frequency of the slow clock (LSE) is 32.768 kHz. The frequency of the main clock (HSE) is 8 MHz.

The default configuration sources the system clock from the PLL, which is derived from HSE, and is set at 170 MHz. The 48 MHz clock used by the USB interface is derived from the internal 48 MHz oscillator.

Programming and Debugging

The eurovibes_stm32g431_sertest-ng board supports the runners and associated west commands listed below.

flash debug attach reset debugserver rtt
jlink
openocd ✅ (default) ✅ (default)

The MCU is normally programmed using the exposed SWD port (Tag-Connect TC2030).

Flashing an Application

Connect a Tag-Connect cable from a J-Link JTAG probe to the board and the board should power ON.

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

Debugging

The board can be debugged by connecting a JTAG probe to the Tag-Connect connector:

Tag-Connect TC2030 SWD pinout

Pin

Signal

1

VCC

2

SWDIO / TMS

3

nRESET

4

SWCLK / TCK

5

GND (also connected to GNDDetect)

6

SWO / TDO

References