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 |
|
ADC |
on-chip |
STM32 ADC2 |
|
CAN |
on-chip |
STM32 FDCAN CAN FD controller1 |
|
Clock control |
on-chip |
STM32 RCC (Reset and Clock controller)1 |
|
on-chip |
STM32 HSE Clock1 |
||
on-chip |
|||
on-chip |
STM32 LSE Clock1 |
||
on-chip |
STM32G4 main PLL1 |
||
Comparator |
on-chip |
STM32G4 series Comparator2 |
|
Counter |
on-chip |
STM32 counters10 |
|
CRC |
on-chip |
STM32 CRC calculation unit1 |
|
DAC |
on-chip |
STM32 family DAC2 |
|
DMA |
on-chip |
STM32 DMA controller (V2)2 |
|
on-chip |
STM32 DMAMUX controller1 |
||
Flash controller |
on-chip |
STM32 Family flash controller1 |
|
GPIO & Headers |
on-chip |
STM32 GPIO Controller7 |
|
I2C |
on-chip |
||
I2S |
on-chip |
STM32 SAI controller2 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
STM32 External Interrupt Controller1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
MTD |
on-chip |
STM32 flash memory1 |
|
on-board |
I2C EEPROMs compatible with Atmel’s AT24 family2 |
||
NVMEM |
on-chip |
Fixed layout for Non-Volatile memory1 |
|
OPAMP |
on-chip |
STM32G4 OPAMP3 |
|
OTP memory |
on-chip |
||
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP1 |
|
Pin control |
on-chip |
STM32 Pin controller1 |
|
PWM |
on-chip |
STM32 PWM8 |
|
Reset controller |
on-chip |
STM32 Reset and Clock Control (RCC) Controller1 |
|
RNG |
on-chip |
STM32 Random Number Generator1 |
|
RTC |
on-chip |
STM32 RTC1 |
|
Sensors |
on-chip |
STM32 quadrature decoder5 |
|
on-chip |
STM32 family TEMP node for production calibrated sensors with two calibration temperatures1 |
||
on-chip |
STM32 VREF+1 |
||
on-chip |
STM32 VBAT1 |
||
Serial controller |
on-chip |
STM32 USART3 |
|
on-chip |
STM32 UART1 |
||
on-chip |
STM32 LPUART1 |
||
SMbus |
on-chip |
STM32 SMBus controller3 |
|
SPI |
on-chip |
STM32 SPI controller with embedded Rx and Tx FIFOs3 |
|
USB Type-C Port Controller |
on-chip |
STM32 USB Type-C / Power Delivery1 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
on-chip |
STM32 low-power timer (LPTIM)1 |
||
on-chip |
STM32 timers10 |
||
USB |
on-chip |
STM32 USB controller1 |
|
Watchdog |
on-chip |
STM32 watchdog1 |
|
on-chip |
STM32 system window watchdog1 |
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 |